aboutsummaryrefslogtreecommitdiff
path: root/src/delombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2014-01-14 22:52:29 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2014-01-14 22:52:29 +0100
commitae4864ebc3974b17a512849e7018556c4a3d1935 (patch)
treedf83b317449f387493214770602fe4bba6f5ce64 /src/delombok
parent20ac40f20110aa363d2bdf4cc1a1407d2c84135a (diff)
downloadlombok-ae4864ebc3974b17a512849e7018556c4a3d1935.tar.gz
lombok-ae4864ebc3974b17a512849e7018556c4a3d1935.tar.bz2
lombok-ae4864ebc3974b17a512849e7018556c4a3d1935.zip
[#626] introduction of formatting options triggered a longer standing bug about wonky timing on replacing Options with LombokOptions, causing javac to complain about not recognizing i.e. a Getter annotation when using it more than once in a file.
Diffstat (limited to 'src/delombok')
-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 9cb78a82..f64e36a1 100644
--- a/src/delombok/lombok/delombok/Delombok.java
+++ b/src/delombok/lombok/delombok/Delombok.java
@@ -467,6 +467,7 @@ public class Delombok {
public boolean delombok() throws IOException {
LombokOptions options = LombokOptionsFactory.getDelombokOptions(context);
+ options.deleteLombokAnnotations();
options.putJavacOption("ENCODING", charset.name());
if (classpath != null) options.putJavacOption("CLASSPATH", classpath);
if (sourcepath != null) options.putJavacOption("SOURCEPATH", sourcepath);