diff options
| author | Roel Spilker <r.spilker@gmail.com> | 2010-11-15 00:44:16 +0100 |
|---|---|---|
| committer | Roel Spilker <r.spilker@gmail.com> | 2010-11-15 00:44:16 +0100 |
| commit | 1c2556b1f7b26ea0b70d356d9eeefb638560a46f (patch) | |
| tree | 5d98d91d72ddf1c3029423bb1953eec409d94538 /src/delombok | |
| parent | d44421dada3d35750c08163ef76514018f89b055 (diff) | |
| download | lombok-1c2556b1f7b26ea0b70d356d9eeefb638560a46f.tar.gz lombok-1c2556b1f7b26ea0b70d356d9eeefb638560a46f.tar.bz2 lombok-1c2556b1f7b26ea0b70d356d9eeefb638560a46f.zip | |
In javac, use ListBuffer to append
Diffstat (limited to 'src/delombok')
| -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); } } |
