diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2023-01-12 01:44:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-12 01:44:52 +0100 |
commit | e90d497c93ecc7db1d5a901d40f11fc919f31447 (patch) | |
tree | e85b974b9c8bd42e1e9241d2bd3231cfecaa3ebc /test/transform/resource/after-delombok/SuperBuilderSingularCustomized.java | |
parent | ef916881ad85371b905b0104072df2a2b133eee8 (diff) | |
parent | d2ae62ac71ebf55406d308dc41e76f36e7cb5ea8 (diff) | |
download | lombok-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-delombok/SuperBuilderSingularCustomized.java')
-rw-r--r-- | test/transform/resource/after-delombok/SuperBuilderSingularCustomized.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/transform/resource/after-delombok/SuperBuilderSingularCustomized.java b/test/transform/resource/after-delombok/SuperBuilderSingularCustomized.java index 04cfd9f2..1f07c448 100644 --- a/test/transform/resource/after-delombok/SuperBuilderSingularCustomized.java +++ b/test/transform/resource/after-delombok/SuperBuilderSingularCustomized.java @@ -8,10 +8,6 @@ class SuperBuilderSingularCustomized { return self(); } @java.lang.SuppressWarnings("all") - protected abstract B self(); - @java.lang.SuppressWarnings("all") - public abstract C build(); - @java.lang.SuppressWarnings("all") public B foo(final String foo) { if (this.foos == null) this.foos = new java.util.ArrayList<String>(); this.foos.add(foo); @@ -31,6 +27,10 @@ class SuperBuilderSingularCustomized { if (this.foos != null) this.foos.clear(); return self(); } + @java.lang.SuppressWarnings("all") + protected abstract B self(); + @java.lang.SuppressWarnings("all") + public abstract C build(); @java.lang.Override @java.lang.SuppressWarnings("all") public java.lang.String toString() { |