Skip to content

Commit

Permalink
Don't 'claim' annotations in annotation processors
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 338299681
  • Loading branch information
cushon authored and glide-copybara-robot committed Oct 21, 2020
1 parent ddb3934 commit e9e5a2e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ public boolean process(Set<? extends TypeElement> set, RoundEnvironment env) {
if (isGeneratedAppGlideModuleWritten) {
throw new IllegalStateException("Cannot process annotations after writing AppGlideModule");
}
return true;
return false;
}

if (!isGeneratedAppGlideModuleWritten) {
isGeneratedAppGlideModuleWritten = appModuleProcessor.maybeWriteAppModule();
}
return true;
return false;
}
}

0 comments on commit e9e5a2e

Please sign in to comment.