mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-17 04:15:10 +00:00
[With] renaming lombok.experimental.Wither to lombok.experimental.With
This commit is contained in:
88 files changed
+912
-807
No files matched your search
@@ -0,0 +1,16 @@
|
||||
class WithPlain {
|
||||
int i;
|
||||
final int foo;
|
||||
WithPlain(int i, int foo) {
|
||||
this.i = i;
|
||||
this.foo = foo;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public WithPlain withI(final int i) {
|
||||
return this.i == i ? this : new WithPlain(i, this.foo);
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public WithPlain withFoo(final int foo) {
|
||||
return this.foo == foo ? this : new WithPlain(this.i, foo);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user