From 6d8cee3757d48ec83ff8fb0b6673053b9e5dae31 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sat, 8 Jan 2011 16:35:07 -0300 Subject: 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. --- src/delombok/lombok/delombok/Delombok.java | 1 + 1 file changed, 1 insertion(+) 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") -- cgit