mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 00:26:04 +00:00
New feature: FieldDefaults can now be configured to apply to _every_ file, regardless of annotations.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
//CONF: lombok.fieldDefaults.defaultFinal = true
|
||||
//CONF: lombok.fieldDefaults.defaultPrivate = true
|
||||
class FieldDefaultsViaConfig1 {
|
||||
int x;
|
||||
@lombok.experimental.NonFinal int y;
|
||||
|
||||
FieldDefaultsViaConfig1(int x) {
|
||||
this.x = x;
|
||||
}
|
||||
}
|
||||
|
||||
@lombok.experimental.FieldDefaults(level = lombok.AccessLevel.PROTECTED)
|
||||
class FieldDefaultsViaConfig2 {
|
||||
@lombok.experimental.PackagePrivate int x = 2;
|
||||
int y = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user