Annotation processing, RoundEnvironment.processingOver()
While reading the code of a custom annotation processor in Java, I noticed this piece of code in the processor's process method: @Override public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { if (!roundEnv.errorRaised() && !roundEnv.processingOver()) { processRound(annotations, roundEnv); } return false; } It happened that I'm working on a custom Annotation processor too, & I wanted to use the snippet above in my annotation processor. I tried the code above this way: if (!roundEnv.errorRaised() && !roundEnv.processingOver()) { processRound(annotations,