[issue #2369] [reproduction-test] inner types not detected as static if in interface/enum.

This commit is contained in:
Reinier Zwitserloot committed 2020-02-14 14:50:38 +01:00
1 parent 62d2d73712
commit a6fb86359a
3 files changed
+32

No files matched your search

@@ -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);
}
}
}
@@ -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;
}
}
}
@@ -0,0 +1,7 @@
public interface WithNested<Z> {
@lombok.RequiredArgsConstructor
class IAmStaticReally {
@lombok.With final String x;
}
}