Annotation Type FieldDefaults
Adds modifiers to each field in the type with this annotation.
Complete documentation is found at the project lombok features page for @FieldDefaults.
If makeFinal
is true
, then each (instance) field that is not annotated with @NonFinal
will have the final
modifier added.
If level
is set, then each (instance) field that is package private (i.e. no access modifier) and does not have the @PackagePrivate
annotation will
have the appropriate access level modifier added.
-
Optional Element Summary
-
Element Details
-
level
AccessLevel level- Default:
NONE
-
makeFinal
boolean makeFinal- Default:
false
-