From aa6d2e262f3d6c43f6d89220cdc10c6954bb2bdd Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 16 Jun 2009 13:58:28 +0200 Subject: Moved the generation of the Trees object to init(), as it seems to be the same on every round. --- src/lombok/javac/apt/Processor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lombok/javac/apt/Processor.java b/src/lombok/javac/apt/Processor.java index 012161fd..864ef52c 100644 --- a/src/lombok/javac/apt/Processor.java +++ b/src/lombok/javac/apt/Processor.java @@ -31,13 +31,13 @@ public class Processor extends AbstractProcessor { else { this.processingEnv = (JavacProcessingEnvironment) processingEnv; handlers = HandlerLibrary.load(processingEnv.getMessager()); + trees = Trees.instance(processingEnv); } } @Override public boolean process(Set annotations, RoundEnvironment roundEnv) { if ( processingEnv == null ) return false; - trees = Trees.instance(processingEnv); for ( TypeElement annotationType : annotations ) { if ( !handlers.hasHandlerFor(annotationType) ) continue; -- cgit