mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-08 14:18:09 +00:00
Added tests for @FieldDefaults and @Value.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
@lombok.experimental.FieldDefaults(makeFinal = true)
|
||||
class FieldDefaults1 {
|
||||
int x;
|
||||
@lombok.experimental.NonFinal int y;
|
||||
|
||||
FieldDefaults1(int x) {
|
||||
this.x = x;
|
||||
}
|
||||
}
|
||||
|
||||
@lombok.experimental.FieldDefaults(level = lombok.AccessLevel.PRIVATE)
|
||||
class FieldDefaults2 {
|
||||
@lombok.experimental.PackagePrivate int x;
|
||||
int y;
|
||||
}
|
||||
Reference in New Issue
Block a user