Skip to content

Commit

Permalink
not skipping rounds. androidannotations#213
Browse files Browse the repository at this point in the history
  • Loading branch information
pyricau committed Jun 13, 2012
1 parent 552ced7 commit 36fd751
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,6 @@
@SupportedSourceVersion(SourceVersion.RELEASE_6)
public class AndroidAnnotationProcessor extends AnnotatedAbstractProcessor {

/**
* We do not need multiple round processing, since the generated classes do
* not need to be processed.
*/
private boolean alreadyProcessed = false;

private final TimeStats timeStats = new TimeStats();

@Override
Expand Down Expand Up @@ -336,8 +330,6 @@ private void processThrowing(Set<? extends TypeElement> annotations, RoundEnviro
return;
}

alreadyProcessed = true;

AnnotationElementsHolder extractedModel = extractAnnotations(annotations, roundEnv);

AndroidManifest androidManifest = extractAndroidManifest();
Expand All @@ -354,7 +346,7 @@ private void processThrowing(Set<? extends TypeElement> annotations, RoundEnviro
}

private boolean nothingToDo(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
return roundEnv.processingOver() || annotations.size() == 0 || alreadyProcessed;
return roundEnv.processingOver() || annotations.size() == 0;
}

private AnnotationElementsHolder extractAnnotations(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
Expand Down

0 comments on commit 36fd751

Please sign in to comment.