aboutsummaryrefslogtreecommitdiff
path: root/src/delombok/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2010-11-09 20:35:34 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-11-09 20:35:34 +0100
commit0951ea38fe11189cdc4c2778fdad9e9e3ad6a6ae (patch)
treeae333b513a3cde5143405c0f7399faee880feddd /src/delombok/lombok
parent04d041a7dcb4f57c5b5bf460cf78cddfaba4853b (diff)
downloadlombok-0951ea38fe11189cdc4c2778fdad9e9e3ad6a6ae.tar.gz
lombok-0951ea38fe11189cdc4c2778fdad9e9e3ad6a6ae.tar.bz2
lombok-0951ea38fe11189cdc4c2778fdad9e9e3ad6a6ae.zip
Experiment to try and make java 'self referential' by deleting the Enter and MemberEnter state. So far it doesn't work yet.
Diffstat (limited to 'src/delombok/lombok')
-rw-r--r--src/delombok/lombok/delombok/Delombok.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/delombok/lombok/delombok/Delombok.java b/src/delombok/lombok/delombok/Delombok.java
index 6866d97f..846b448f 100644
--- a/src/delombok/lombok/delombok/Delombok.java
+++ b/src/delombok/lombok/delombok/Delombok.java
@@ -383,7 +383,8 @@ public class Delombok {
compiler.enterTrees(toJavacList(roots));
for (JCCompilationUnit unit : roots) {
- boolean changed = new JavacTransformer(messager).transform(context, Collections.singleton(unit));
+ // Run one single massive transform instead of a lot of singleton calls, as this causes a heck of a lot of refilling of the enter cache.
+ boolean changed = new JavacTransformer(messager).transform(context, Collections.singletonList(unit));
DelombokResult result = new DelombokResult(commentsMap.get(unit).comments, unit, force || changed);
if (verbose) feedback.printf("File: %s [%s]\n", unit.sourcefile.getName(), result.isChanged() ? "delomboked" : "unchanged");
Writer rawWriter;