diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2016-12-13 00:52:32 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-01-19 21:53:00 +0100 |
commit | b867f81b8a251a8a32e42f53c2be34d520938bd7 (patch) | |
tree | 2f1e248439cf2d0bf9cc6667f66aa8b073e004e7 /src/launch/lombok | |
parent | cc28ef24ecda90862b42df4fa3072b924bb8b5ab (diff) | |
download | lombok-b867f81b8a251a8a32e42f53c2be34d520938bd7.tar.gz lombok-b867f81b8a251a8a32e42f53c2be34d520938bd7.tar.bz2 lombok-b867f81b8a251a8a32e42f53c2be34d520938bd7.zip |
Lombok will now also fix the typemirror info when generating bean-related methods/constructors, to allow other annotation processors to see these generated methods/constructors too.
Diffstat (limited to 'src/launch/lombok')
-rw-r--r-- | src/launch/lombok/launch/AnnotationProcessor.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/launch/lombok/launch/AnnotationProcessor.java b/src/launch/lombok/launch/AnnotationProcessor.java index 93fba196..eb1f9b2c 100644 --- a/src/launch/lombok/launch/AnnotationProcessor.java +++ b/src/launch/lombok/launch/AnnotationProcessor.java @@ -36,6 +36,11 @@ import javax.lang.model.element.TypeElement; class AnnotationProcessorHider { public static class AnnotationProcessor extends AbstractProcessor { + private static final long START = System.currentTimeMillis(); + + private void log(String txt) { + System.out.printf("***[%3d]: %s\n", System.currentTimeMillis() - START, txt); + } private final AbstractProcessor instance = createWrappedInstance(); @Override public Set<String> getSupportedOptions() { @@ -51,11 +56,15 @@ class AnnotationProcessorHider { } @Override public void init(ProcessingEnvironment processingEnv) { + log("Lombok in init"); instance.init(processingEnv); super.init(processingEnv); } + private int roundCounter = 0; @Override public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { + roundCounter++; + log("Lombok in round " + roundCounter); return instance.process(annotations, roundEnv); } |