Skip to content
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

new check for @dagger.Provides used outside of Dagger Modules. #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sgoldfed
Copy link
Owner

PTAL

@ghost ghost assigned cgruber Aug 23, 2013
for (Compound c : ASTHelpers.getSymbol(getEnclosingClass(state)).getAnnotationMirrors()) {
if (((TypeElement) c.getAnnotationType().asElement()).getQualifiedName()
.contentEquals(DAGGER_MODULE_ANNOTATION)) {
isModule = true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you not break here? You only need this once, right? Or even return and avoid isModule entirely, and return false out the back.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yup, can definitely return here. Will change.

@cgruber
Copy link
Collaborator

cgruber commented Aug 26, 2013

One issue, and then it's in good shape.

@cgruber cgruber removed their assignment Feb 19, 2020
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.

2 participants