Lombok - v0.11.4

lombok.experimental
Annotation Type FieldDefaults


@Target(value=TYPE)
@Retention(value=SOURCE)
public @interface FieldDefaults

Adds modifiers to each field in the type with this annotation. If makeFinal is true, then each field that is not annotated with @NonFinal will have the final modifier added.

If level is set, then each 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.

The only fields that are skipped are those that start with a '$'; everything else, including static, volatile, and transient fields, are modified.


Optional Element Summary
 AccessLevel level
           
 boolean makeFinal
           
 

level

public abstract AccessLevel level
Default:
lombok.AccessLevel.NONE

makeFinal

public abstract boolean makeFinal
Default:
false

Lombok - v0.11.4

Copyright © 2009-2011 The Project Lombok Authors, licensed under the MIT licence.