aboutsummaryrefslogtreecommitdiff
path: root/src/utils/lombok/javac/java8
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2013-09-25 21:38:37 +0200
committerRoel Spilker <r.spilker@gmail.com>2013-09-25 21:38:37 +0200
commit7fc6e70b36c978ef230e3df41db151f3c0da3da1 (patch)
tree43f5546d16565d4d03f1e0ef9f156aa998cce939 /src/utils/lombok/javac/java8
parentf0cdc27a3f86c0ca728ad598893dd2b95ba38e20 (diff)
downloadlombok-7fc6e70b36c978ef230e3df41db151f3c0da3da1.tar.gz
lombok-7fc6e70b36c978ef230e3df41db151f3c0da3da1.tar.bz2
lombok-7fc6e70b36c978ef230e3df41db151f3c0da3da1.zip
Pre-emptive fix for the anticipated removal of ListBuffer.lb() in javac8
Diffstat (limited to 'src/utils/lombok/javac/java8')
-rw-r--r--src/utils/lombok/javac/java8/CommentCollectingTokenizer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/lombok/javac/java8/CommentCollectingTokenizer.java b/src/utils/lombok/javac/java8/CommentCollectingTokenizer.java
index 95945f8f..a81ebab1 100644
--- a/src/utils/lombok/javac/java8/CommentCollectingTokenizer.java
+++ b/src/utils/lombok/javac/java8/CommentCollectingTokenizer.java
@@ -12,12 +12,13 @@ import com.sun.tools.javac.parser.Tokens.Comment;
import com.sun.tools.javac.parser.Tokens.Token;
import com.sun.tools.javac.parser.Tokens.Comment.CommentStyle;
import com.sun.tools.javac.parser.UnicodeReader;
+import com.sun.tools.javac.tree.JCTree.JCExpression;
import com.sun.tools.javac.util.List;
import com.sun.tools.javac.util.ListBuffer;
class CommentCollectingTokenizer extends JavaTokenizer {
private int prevEndPosition = 0;
- private final ListBuffer<CommentInfo> comments = ListBuffer.lb();
+ private final ListBuffer<CommentInfo> comments = new ListBuffer<CommentInfo>();
private int endComment = 0;
CommentCollectingTokenizer(ScannerFactory fac, char[] buf, int inputLength) {