aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/SuperBuilderSingularCustomized.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2023-01-12 01:44:52 +0100
committerGitHub <noreply@github.com>2023-01-12 01:44:52 +0100
commite90d497c93ecc7db1d5a901d40f11fc919f31447 (patch)
treee85b974b9c8bd42e1e9241d2bd3231cfecaa3ebc /test/transform/resource/after-ecj/SuperBuilderSingularCustomized.java
parentef916881ad85371b905b0104072df2a2b133eee8 (diff)
parentd2ae62ac71ebf55406d308dc41e76f36e7cb5ea8 (diff)
downloadlombok-e90d497c93ecc7db1d5a901d40f11fc919f31447.tar.gz
lombok-e90d497c93ecc7db1d5a901d40f11fc919f31447.tar.bz2
lombok-e90d497c93ecc7db1d5a901d40f11fc919f31447.zip
Merge pull request #3232 from janrieke/superBuilderFixMethodExistsChecks
Fix SuperBuilder for fields named "build" or "self"
Diffstat (limited to 'test/transform/resource/after-ecj/SuperBuilderSingularCustomized.java')
-rw-r--r--test/transform/resource/after-ecj/SuperBuilderSingularCustomized.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/transform/resource/after-ecj/SuperBuilderSingularCustomized.java b/test/transform/resource/after-ecj/SuperBuilderSingularCustomized.java
index 613edb03..da9d0c3b 100644
--- a/test/transform/resource/after-ecj/SuperBuilderSingularCustomized.java
+++ b/test/transform/resource/after-ecj/SuperBuilderSingularCustomized.java
@@ -8,8 +8,6 @@ import java.util.Set;
public B custom(final String value) {
return self();
}
- protected abstract @java.lang.SuppressWarnings("all") B self();
- public abstract @java.lang.SuppressWarnings("all") C build();
public @java.lang.SuppressWarnings("all") B foo(final String foo) {
if ((this.foos == null))
this.foos = new java.util.ArrayList<String>();
@@ -31,6 +29,8 @@ import java.util.Set;
this.foos.clear();
return self();
}
+ protected abstract @java.lang.SuppressWarnings("all") B self();
+ public abstract @java.lang.SuppressWarnings("all") C build();
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (("SuperBuilderSingularCustomized.SuperBuilderSingularCustomizedBuilder(foos=" + this.foos) + ")");
}