mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-11 12:19:00 +00:00
[issue #2369] [reproduction-test] inner types not detected as static if in interface/enum.
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user