mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 02:16:18 +00:00
Fixes #1254: Value and FieldDefaults should skip static fields
This commit is contained in:
1 parent
7969951125
commit
0727c8bfd3
13 files changed
+33
-18
No files matched your search
@@ -1,14 +1,20 @@
|
||||
@lombok.experimental.FieldDefaults(makeFinal = true) class FieldDefaults1 {
|
||||
static int STATIC = 3;
|
||||
final int x;
|
||||
@lombok.experimental.NonFinal int y;
|
||||
<clinit>() {
|
||||
}
|
||||
FieldDefaults1(int x) {
|
||||
super();
|
||||
this.x = x;
|
||||
}
|
||||
}
|
||||
@lombok.experimental.FieldDefaults(level = lombok.AccessLevel.PRIVATE) class FieldDefaults2 {
|
||||
static int STATIC = 3;
|
||||
@lombok.experimental.PackagePrivate int x;
|
||||
private int y;
|
||||
<clinit>() {
|
||||
}
|
||||
FieldDefaults2() {
|
||||
super();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user