mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 08:15:48 +00:00
New feature: FieldDefaults can now be configured to apply to _every_ file, regardless of annotations.
This commit is contained in:
1 parent
b4d69f5cb8
commit
9d8c4e4099
14 files changed
+219
-61
No files matched your search
@@ -0,0 +1,15 @@
|
||||
class FieldDefaultsViaConfig1 {
|
||||
private final int x;
|
||||
private @lombok.experimental.NonFinal int y;
|
||||
FieldDefaultsViaConfig1(int x) {
|
||||
super();
|
||||
this.x = x;
|
||||
}
|
||||
}
|
||||
@lombok.experimental.FieldDefaults(level = lombok.AccessLevel.PROTECTED) class FieldDefaultsViaConfig2 {
|
||||
final @lombok.experimental.PackagePrivate int x = 2;
|
||||
protected final int y = 0;
|
||||
FieldDefaultsViaConfig2() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user