aboutsummaryrefslogtreecommitdiff
path: root/src/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-06-16 13:58:28 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-06-16 13:58:28 +0200
commitaa6d2e262f3d6c43f6d89220cdc10c6954bb2bdd (patch)
treebb1967e7c3a53ce07d5684793fc9a1c718107ed9 /src/lombok
parentd289910196cd1a0eb5a7be190c04fcc2e72079dd (diff)
downloadlombok-aa6d2e262f3d6c43f6d89220cdc10c6954bb2bdd.tar.gz
lombok-aa6d2e262f3d6c43f6d89220cdc10c6954bb2bdd.tar.bz2
lombok-aa6d2e262f3d6c43f6d89220cdc10c6954bb2bdd.zip
Moved the generation of the Trees object to init(), as it seems to be the same on every round.
Diffstat (limited to 'src/lombok')
-rw-r--r--src/lombok/javac/apt/Processor.java2
1 files changed, 1 insertions, 1 deletions
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<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
if ( processingEnv == null ) return false;
- trees = Trees.instance(processingEnv);
for ( TypeElement annotationType : annotations ) {
if ( !handlers.hasHandlerFor(annotationType) ) continue;