aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers/HandleSetter.java
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/core/lombok/javac/handlers/HandleSetter.java
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/core/lombok/javac/handlers/HandleSetter.java')
-rw-r--r--src/core/lombok/javac/handlers/HandleSetter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/javac/handlers/HandleSetter.java b/src/core/lombok/javac/handlers/HandleSetter.java
index 6f345418..c4977b2b 100644
--- a/src/core/lombok/javac/handlers/HandleSetter.java
+++ b/src/core/lombok/javac/handlers/HandleSetter.java
@@ -204,7 +204,7 @@ public class HandleSetter extends JavacAnnotationHandler<Setter> {
JCExpression fieldRef = createFieldAccessor(treeMaker, field, FieldAccess.ALWAYS_FIELD);
JCAssign assign = treeMaker.Assign(fieldRef, treeMaker.Ident(fieldDecl.name));
- ListBuffer<JCStatement> statements = ListBuffer.lb();
+ ListBuffer<JCStatement> statements = new ListBuffer<JCStatement>();
List<JCAnnotation> nonNulls = findAnnotations(field, TransformationsUtil.NON_NULL_PATTERN);
List<JCAnnotation> nullables = findAnnotations(field, TransformationsUtil.NULLABLE_PATTERN);