From 7fc6e70b36c978ef230e3df41db151f3c0da3da1 Mon Sep 17 00:00:00 2001
From: Roel Spilker <r.spilker@gmail.com>
Date: Wed, 25 Sep 2013 21:38:37 +0200
Subject: Pre-emptive fix for the anticipated removal of ListBuffer.lb() in
 javac8

---
 src/utils/lombok/javac/java7/CommentCollectingScanner.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/utils/lombok/javac/java7')

diff --git a/src/utils/lombok/javac/java7/CommentCollectingScanner.java b/src/utils/lombok/javac/java7/CommentCollectingScanner.java
index 86c474ea..f97c20a7 100644
--- a/src/utils/lombok/javac/java7/CommentCollectingScanner.java
+++ b/src/utils/lombok/javac/java7/CommentCollectingScanner.java
@@ -28,11 +28,12 @@ import lombok.javac.CommentInfo.EndConnection;
 import lombok.javac.CommentInfo.StartConnection;
 
 import com.sun.tools.javac.parser.Scanner;
+import com.sun.tools.javac.tree.JCTree.JCExpression;
 import com.sun.tools.javac.util.List;
 import com.sun.tools.javac.util.ListBuffer;
 
 public class CommentCollectingScanner extends Scanner {
-	private final ListBuffer<CommentInfo> comments = ListBuffer.lb();
+	private final ListBuffer<CommentInfo> comments = new ListBuffer<CommentInfo>();
 	private int endComment = 0;
 	
 	public CommentCollectingScanner(CommentCollectingScannerFactory factory, CharBuffer charBuffer) {
-- 
cgit