diff options
author | Roel Spilker <r.spilker@gmail.com> | 2010-11-15 00:44:16 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-11-18 13:04:08 +0100 |
commit | 423a9610a84aa98c6369f0c9d8a5016c30debfd8 (patch) | |
tree | 4181b9597da1109f62ca2485454187a899610285 /src/delombok/lombok | |
parent | 80982cc9d6f22de35d9db23d547d580800976794 (diff) | |
download | lombok-423a9610a84aa98c6369f0c9d8a5016c30debfd8.tar.gz lombok-423a9610a84aa98c6369f0c9d8a5016c30debfd8.tar.bz2 lombok-423a9610a84aa98c6369f0c9d8a5016c30debfd8.zip |
In javac, use ListBuffer to append
Diffstat (limited to 'src/delombok/lombok')
-rw-r--r-- | src/delombok/lombok/delombok/Delombok.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/delombok/lombok/delombok/Delombok.java b/src/delombok/lombok/delombok/Delombok.java index 6fc77c59..f3069c25 100644 --- a/src/delombok/lombok/delombok/Delombok.java +++ b/src/delombok/lombok/delombok/Delombok.java @@ -389,7 +389,7 @@ public class Delombok { JavaCompiler delegate = compiler.processAnnotations(compiler.enterTrees(toJavacList(roots))); for (JCCompilationUnit unit : roots) { - DelombokResult result = new DelombokResult(commentsMap.get(unit).comments, unit, force || tca.changed.contains(unit)); + DelombokResult result = new DelombokResult(commentsMap.get(unit).comments.toList(), unit, force || tca.changed.contains(unit)); if (verbose) feedback.printf("File: %s [%s]\n", unit.sourcefile.getName(), result.isChanged() ? "delomboked" : "unchanged"); Writer rawWriter; if (presetWriter != null) rawWriter = presetWriter; @@ -408,10 +408,10 @@ public class Delombok { } public static class Comments { - public com.sun.tools.javac.util.List<Comment> comments = com.sun.tools.javac.util.List.nil(); + public com.sun.tools.javac.util.ListBuffer<Comment> comments = com.sun.tools.javac.util.ListBuffer.lb(); void add(Comment comment) { - comments = comments.append(comment); + comments.append(comment); } } |