diff options
author | Roel Spilker <r.spilker@gmail.com> | 2011-11-01 00:13:22 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2011-11-01 00:13:22 +0100 |
commit | a9f334fde93a0b07820962bff0b602ef0be731cf (patch) | |
tree | 4b330e1907f27d36a685cef0458cab7a65e6f2ec /src/delombok | |
parent | 70f778daa560a899abe91a4908cd37c70ff1f3b4 (diff) | |
download | lombok-a9f334fde93a0b07820962bff0b602ef0be731cf.tar.gz lombok-a9f334fde93a0b07820962bff0b602ef0be731cf.tar.bz2 lombok-a9f334fde93a0b07820962bff0b602ef0be731cf.zip |
Fixed issue 284 now also for java7, introduced more stubbing
Diffstat (limited to 'src/delombok')
-rw-r--r-- | src/delombok/lombok/delombok/Delombok.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/delombok/lombok/delombok/Delombok.java b/src/delombok/lombok/delombok/Delombok.java index c6d3444a..a66c3264 100644 --- a/src/delombok/lombok/delombok/Delombok.java +++ b/src/delombok/lombok/delombok/Delombok.java @@ -358,8 +358,9 @@ public class Delombok { options.put("compilePolicy", "attr"); + registerCommentsCollectingScannerFactory(context); JavaCompiler compiler = new JavaCompiler(context); - + Map<JCCompilationUnit, com.sun.tools.javac.util.List<Comment>> commentsMap = new IdentityHashMap<JCCompilationUnit, com.sun.tools.javac.util.List<Comment>>(); setInCompiler(compiler, context, commentsMap); @@ -369,7 +370,6 @@ public class Delombok { List<JCCompilationUnit> roots = new ArrayList<JCCompilationUnit>(); Map<JCCompilationUnit, File> baseMap = new IdentityHashMap<JCCompilationUnit, File>(); - registerCommentsCollectingScannerFactory(context); compiler.initProcessAnnotations(Collections.singleton(new lombok.javac.apt.Processor())); |