From b867f81b8a251a8a32e42f53c2be34d520938bd7 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 13 Dec 2016 00:52:32 +0100 Subject: 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. --- src/launch/lombok/launch/AnnotationProcessor.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/launch') 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 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 annotations, RoundEnvironment roundEnv) { + roundCounter++; + log("Lombok in round " + roundCounter); return instance.process(annotations, roundEnv); } -- cgit