diff options
author | Jan Rieke <rieke@subshell.com> | 2018-05-31 14:53:20 +0200 |
---|---|---|
committer | Jan Rieke <rieke@subshell.com> | 2018-05-31 14:53:20 +0200 |
commit | 664ed48460eba30b9cab7f9298ac563c4a23c993 (patch) | |
tree | afe11ee58a5561dd6641a46f15d6cb5f13a18732 | |
parent | 65b248ec62ffe87d9f4fe234c47f786f420d58dc (diff) | |
download | lombok-664ed48460eba30b9cab7f9298ac563c4a23c993.tar.gz lombok-664ed48460eba30b9cab7f9298ac563c4a23c993.tar.bz2 lombok-664ed48460eba30b9cab7f9298ac563c4a23c993.zip |
javac: delete @SuperBuilder when processing it
4 files changed, 1 insertions, 6 deletions
diff --git a/src/core/lombok/javac/handlers/HandleSuperBuilder.java b/src/core/lombok/javac/handlers/HandleSuperBuilder.java index 116de47b..1055a11a 100644 --- a/src/core/lombok/javac/handlers/HandleSuperBuilder.java +++ b/src/core/lombok/javac/handlers/HandleSuperBuilder.java @@ -95,6 +95,7 @@ public class HandleSuperBuilder extends JavacAnnotationHandler<SuperBuilder> { @Override public void handle(AnnotationValues<SuperBuilder> annotation, JCAnnotation ast, JavacNode annotationNode) { SuperBuilder superbuilderAnnotation = annotation.getInstance(); + deleteAnnotationIfNeccessary(annotationNode, SuperBuilder.class); String builderMethodName = superbuilderAnnotation.builderMethodName(); String buildMethodName = superbuilderAnnotation.buildMethodName(); diff --git a/test/transform/resource/after-delombok/SuperBuilderBasic.java b/test/transform/resource/after-delombok/SuperBuilderBasic.java index 47f0ff3f..18a98af3 100644 --- a/test/transform/resource/after-delombok/SuperBuilderBasic.java +++ b/test/transform/resource/after-delombok/SuperBuilderBasic.java @@ -1,6 +1,5 @@ import java.util.List;
public class SuperBuilderBasic {
- @lombok.experimental.SuperBuilder
public static class Parent {
int field1;
List<String> items;
@@ -79,7 +78,6 @@ public class SuperBuilderBasic { return new ParentBuilderImpl();
}
}
- @lombok.experimental.SuperBuilder
public static class Child extends Parent {
double field3;
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/SuperBuilderWithCustomBuilderMethod.java b/test/transform/resource/after-delombok/SuperBuilderWithCustomBuilderMethod.java index 4d451558..21a9db07 100644 --- a/test/transform/resource/after-delombok/SuperBuilderWithCustomBuilderMethod.java +++ b/test/transform/resource/after-delombok/SuperBuilderWithCustomBuilderMethod.java @@ -1,6 +1,5 @@ import java.util.List;
public class SuperBuilderWithCustomBuilderMethod {
- @lombok.experimental.SuperBuilder
public static class Parent<A> {
A field1;
List<String> items;
@@ -79,7 +78,6 @@ public class SuperBuilderWithCustomBuilderMethod { return new ParentBuilderImpl<A>();
}
}
- @lombok.experimental.SuperBuilder
public static class Child<A> extends Parent<A> {
double field3;
public static <A> ChildBuilder<A, ?, ?> builder() {
diff --git a/test/transform/resource/after-delombok/SuperBuilderWithGenerics.java b/test/transform/resource/after-delombok/SuperBuilderWithGenerics.java index 34a61f09..c24b473e 100644 --- a/test/transform/resource/after-delombok/SuperBuilderWithGenerics.java +++ b/test/transform/resource/after-delombok/SuperBuilderWithGenerics.java @@ -1,6 +1,5 @@ import java.util.List;
public class SuperBuilderWithGenerics {
- @lombok.experimental.SuperBuilder
public static class Parent<A> {
A field1;
List<String> items;
@@ -79,7 +78,6 @@ public class SuperBuilderWithGenerics { return new ParentBuilderImpl<A>();
}
}
- @lombok.experimental.SuperBuilder
public static class Child<A> extends Parent<A> {
double field3;
@java.lang.SuppressWarnings("all")
|