8000 Id provider by dapp · Pull Request #19 · Comcast/resourceprovider-utils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Id provider #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Nov 8, 2018
Merged

Id provider #19

merged 9 commits into from
Nov 8, 2018

Conversation

dapp
Copy link
Collaborator
@dapp dapp commented Nov 6, 2018

Generate a new provider that gives APIs to access Id values for layout items. Also generate mocking utility for Ids and add a sample.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


mark_dappollone@comcast.com seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@dapp
Copy link
Collaborator Author
dapp commented Nov 6, 2018

This PR addresses #20

@dapp dapp requested a review from Kusand November 7, 2018 22:37
Copy link
@Kusand Kusand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks solid. More fiddly stuff than anything that affects the code quality.

@@ -78,6 +87,10 @@ TypeSpec generateResourceProviderClass() {
FieldSpec integerProvider = FieldSpec.builder(integerProviderClassName, "integerProvider")
.addModifiers(Modifier.PRIVATE, Modifier.FINAL).build();

ClassName idProviderClassName = get(packageName, "IdProvider");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking, since this is fiddly - should this also be scoped to only get made if the user requested Id provision?

.addStatement("this.context = context")
.build();

TypeSpec.Builder classBuilder = classBuilder("IdProvider")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indents are messed up here - because classBuilder doesn't make an immediate chained call on the same line, the subsequent calls are aligned to the . in the TypeSpec.Builder, not to the related calls.

@dapp dapp merged commit 55ee0da into master Nov 8, 2018
@dapp dapp deleted the id-provider branch February 15, 2019 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0