diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-11-21 23:53:00 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-11-21 23:53:00 +0100 |
commit | e24ac22aaa286cb91a0dcdbff1f95d09fb62f8ef (patch) | |
tree | 5bc8791be6f63268a959d4313ec383830aba3aa1 /src/utils/lombok/javac/java7/CommentCollectingParser.java | |
parent | 3fd3ca32a68c728bebd04d41720f2d1f636a3695 (diff) | |
download | lombok-e24ac22aaa286cb91a0dcdbff1f95d09fb62f8ef.tar.gz lombok-e24ac22aaa286cb91a0dcdbff1f95d09fb62f8ef.tar.bz2 lombok-e24ac22aaa286cb91a0dcdbff1f95d09fb62f8ef.zip |
Made an API for creating a (oracle javac) JavaCompiler which tracks comments on a per Compilation Unit basis. The old way involved making reflective calls and detecting whether you need the 1.6 or the 1.7 variant to do this. These shenanigans are now hidden behind a nice API (lombok.javac.CommentCatcher).
Diffstat (limited to 'src/utils/lombok/javac/java7/CommentCollectingParser.java')
-rw-r--r-- | src/utils/lombok/javac/java7/CommentCollectingParser.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/lombok/javac/java7/CommentCollectingParser.java b/src/utils/lombok/javac/java7/CommentCollectingParser.java index 7c3cdc71..54cdb6a9 100644 --- a/src/utils/lombok/javac/java7/CommentCollectingParser.java +++ b/src/utils/lombok/javac/java7/CommentCollectingParser.java @@ -1,5 +1,6 @@ package lombok.javac.java7; +import java.util.List; import java.util.Map; import lombok.javac.Comment; @@ -8,10 +9,8 @@ import com.sun.tools.javac.parser.EndPosParser; import com.sun.tools.javac.parser.Lexer; import com.sun.tools.javac.parser.ParserFactory; import com.sun.tools.javac.tree.JCTree.JCCompilationUnit; -import com.sun.tools.javac.util.List; class CommentCollectingParser extends EndPosParser { - private final Map<JCCompilationUnit, List<Comment>> commentsMap; private final Lexer lexer; |