diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-02-14 14:50:38 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-02-14 14:50:38 +0100 |
commit | a6fb86359a53742a549235e73f633f1b85c33bb5 (patch) | |
tree | 8b41b76b67a71d8394f89065bd4c1fdfd265cf6b /test/transform | |
parent | 62d2d737123b7e0ffa5f89043a973f15fde0188f (diff) | |
download | lombok-a6fb86359a53742a549235e73f633f1b85c33bb5.tar.gz lombok-a6fb86359a53742a549235e73f633f1b85c33bb5.tar.bz2 lombok-a6fb86359a53742a549235e73f633f1b85c33bb5.zip |
[issue #2369] [reproduction-test] inner types not detected as static if in interface/enum.
Diffstat (limited to 'test/transform')
-rw-r--r-- | test/transform/resource/after-delombok/WithNested.java | 13 | ||||
-rw-r--r-- | test/transform/resource/after-ecj/WithNested.java | 12 | ||||
-rw-r--r-- | test/transform/resource/before/WithNested.java | 7 |
3 files changed, 32 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/WithNested.java b/test/transform/resource/after-delombok/WithNested.java new file mode 100644 index 00000000..27b65577 --- /dev/null +++ b/test/transform/resource/after-delombok/WithNested.java @@ -0,0 +1,13 @@ +public interface WithNested<Z> { + class IAmStaticReally { + final String x; + @java.lang.SuppressWarnings("all") + public IAmStaticReally(final String x) { + this.x = x; + } + @java.lang.SuppressWarnings("all") + public WithNested.IAmStaticReally withX(final String x) { + return this.x == x ? this : new WithNested.IAmStaticReally(x); + } + } +} diff --git a/test/transform/resource/after-ecj/WithNested.java b/test/transform/resource/after-ecj/WithNested.java new file mode 100644 index 00000000..55f6edb2 --- /dev/null +++ b/test/transform/resource/after-ecj/WithNested.java @@ -0,0 +1,12 @@ +public interface WithNested<Z> { + @lombok.RequiredArgsConstructor class IAmStaticReally { + final @lombok.With String x; + public @java.lang.SuppressWarnings("all") WithNested.IAmStaticReally withX(final String x) { + return ((this.x == x) ? this : new WithNested.IAmStaticReally(x)); + } + public @java.lang.SuppressWarnings("all") IAmStaticReally(final String x) { + super(); + this.x = x; + } + } +} diff --git a/test/transform/resource/before/WithNested.java b/test/transform/resource/before/WithNested.java new file mode 100644 index 00000000..782821fc --- /dev/null +++ b/test/transform/resource/before/WithNested.java @@ -0,0 +1,7 @@ +public interface WithNested<Z> { + @lombok.RequiredArgsConstructor + class IAmStaticReally { + @lombok.With final String x; + } +} + |