mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-31 22:17:45 +00:00
[With] renaming lombok.experimental.Wither to lombok.experimental.With
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
@lombok.With
|
||||
class WithOnClass1 {
|
||||
@lombok.With(lombok.AccessLevel.NONE)
|
||||
boolean isNone;
|
||||
|
||||
boolean isPublic;
|
||||
|
||||
WithOnClass1(boolean isNone, boolean isPublic) {
|
||||
}
|
||||
}
|
||||
|
||||
@lombok.With(lombok.AccessLevel.PROTECTED)
|
||||
class WithOnClass2 {
|
||||
@lombok.With(lombok.AccessLevel.NONE)
|
||||
boolean isNone;
|
||||
|
||||
boolean isProtected;
|
||||
|
||||
@lombok.With(lombok.AccessLevel.PACKAGE)
|
||||
boolean isPackage;
|
||||
|
||||
WithOnClass2(boolean isNone, boolean isProtected, boolean isPackage) {
|
||||
}
|
||||
}
|
||||
|
||||
@lombok.With
|
||||
class WithOnClass3 {
|
||||
String couldBeNull;
|
||||
|
||||
@lombok.NonNull String nonNull;
|
||||
|
||||
WithOnClass3(String couldBeNull, String nonNull) {
|
||||
}
|
||||
}
|
||||
|
||||
@lombok.With @lombok.experimental.Accessors(prefix="f")
|
||||
class WithOnClass4 {
|
||||
final int fX = 10;
|
||||
|
||||
final int fY;
|
||||
|
||||
WithOnClass4(int y) {
|
||||
this.fY = y;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user