add test for #2230

This commit is contained in:
Roel Spilker committed 2019-09-12 21:56:21 +02:00
1 parent 693af13472
commit 80c1b2d2e7
3 files changed
+29

No files matched your search

@@ -0,0 +1,10 @@
class WitherLegacyStar {
int i;
WitherLegacyStar(int i) {
this.i = i;
}
@java.lang.SuppressWarnings("all")
public WitherLegacyStar withI(final int i) {
return this.i == i ? this : new WitherLegacyStar(i);
}
}
@@ -0,0 +1,11 @@
import lombok.experimental.*;
class WitherLegacyStar {
@Wither int i;
WitherLegacyStar(int i) {
super();
this.i = i;
}
public @java.lang.SuppressWarnings("all") WitherLegacyStar withI(final int i) {
return ((this.i == i) ? this : new WitherLegacyStar(i));
}
}
@@ -0,0 +1,8 @@
import lombok.experimental.*;
class WitherLegacyStar {
@Wither int i;
WitherLegacyStar(int i) {
this.i = i;
}
}