@Target(TYPE)
@Retention(SOURCE)
public @interface FieldDefaults
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.
| Modifier and Type | Optional Element | Description |
|---|---|---|
AccessLevel |
level |
|
boolean |
makeFinal |
AccessLevel level
Copyright © 2009-2018 The Project Lombok Authors, licensed under the MIT licence.