diff options
author | Roel Spilker <r.spilker@gmail.com> | 2014-06-06 02:56:05 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2014-06-06 02:56:05 +0200 |
commit | 33ead46639087a4e772d6535d0354f39fadc5724 (patch) | |
tree | 1a7806ed96d22727e7eda70fcd4231df55668f5e /src/utils/lombok/javac/java7/CommentCollectingParser.java | |
parent | 288a2236c0d5c4c129d837330ca16bfef8e5b2e2 (diff) | |
parent | 68c5b016f9a2663abc9cd4aeb0cc0034949469ca (diff) | |
download | lombok-33ead46639087a4e772d6535d0354f39fadc5724.tar.gz lombok-33ead46639087a4e772d6535d0354f39fadc5724.tar.bz2 lombok-33ead46639087a4e772d6535d0354f39fadc5724.zip |
Merge branch 'master' into configResolutionInEclipse
Diffstat (limited to 'src/utils/lombok/javac/java7/CommentCollectingParser.java')
-rw-r--r-- | src/utils/lombok/javac/java7/CommentCollectingParser.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/utils/lombok/javac/java7/CommentCollectingParser.java b/src/utils/lombok/javac/java7/CommentCollectingParser.java index 27d731ba..de93e5b4 100644 --- a/src/utils/lombok/javac/java7/CommentCollectingParser.java +++ b/src/utils/lombok/javac/java7/CommentCollectingParser.java @@ -21,9 +21,10 @@ */ package lombok.javac.java7; +import static lombok.javac.CommentCatcher.JCCompilationUnit_comments; + import java.util.List; -import lombok.core.ReferenceFieldAugment; import lombok.javac.CommentInfo; import com.sun.tools.javac.parser.EndPosParser; @@ -32,21 +33,19 @@ import com.sun.tools.javac.parser.ParserFactory; import com.sun.tools.javac.tree.JCTree.JCCompilationUnit; class CommentCollectingParser extends EndPosParser { - private final ReferenceFieldAugment<JCCompilationUnit, List<CommentInfo>> commentsField; private final Lexer lexer; protected CommentCollectingParser(ParserFactory fac, Lexer S, - boolean keepDocComments, boolean keepLineMap, ReferenceFieldAugment<JCCompilationUnit, List<CommentInfo>> commentsField) { + boolean keepDocComments, boolean keepLineMap) { super(fac, S, keepDocComments, keepLineMap); lexer = S; - this.commentsField = commentsField; } public JCCompilationUnit parseCompilationUnit() { JCCompilationUnit result = super.parseCompilationUnit(); if (lexer instanceof CommentCollectingScanner) { List<CommentInfo> comments = ((CommentCollectingScanner)lexer).getComments(); - commentsField.set(result, comments); + JCCompilationUnit_comments.set(result, comments); } return result; } |