aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2011-01-08 16:35:07 -0300
committerReinier Zwitserloot <reinier@zwitserloot.com>2011-01-08 16:35:07 -0300
commit6d8cee3757d48ec83ff8fb0b6673053b9e5dae31 (patch)
tree3a092568c5d196a04efda120ef55dc8850096818 /src
parent1d83020a0c9f68b4175044cb937dc13b27ec0986 (diff)
downloadlombok-6d8cee3757d48ec83ff8fb0b6673053b9e5dae31.tar.gz
lombok-6d8cee3757d48ec83ff8fb0b6673053b9e5dae31.tar.bz2
lombok-6d8cee3757d48ec83ff8fb0b6673053b9e5dae31.zip
Making delombok compatible with post-resolution transformers meant delombok would fail with a 'duplicate context value' error.
Fixes issue #178 Thanks to Neildo for using the 0.10.0 beta and spotting the problem - the tests don't run 1 delombok with multiple files. Maybe we should change that.
Diffstat (limited to 'src')
-rw-r--r--src/delombok/lombok/delombok/Delombok.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/delombok/lombok/delombok/Delombok.java b/src/delombok/lombok/delombok/Delombok.java
index 0bc60877..7e8220a0 100644
--- a/src/delombok/lombok/delombok/Delombok.java
+++ b/src/delombok/lombok/delombok/Delombok.java
@@ -366,6 +366,7 @@ public class Delombok {
for (File fileToParse : filesToParse) {
Comments comments = new Comments();
+ context.put(Comments.class, (Comments) null);
context.put(Comments.class, comments);
@SuppressWarnings("deprecation")