From 0727c8bfd305408074d908dc4f8c31c0bff54789 Mon Sep 17 00:00:00 2001
From: Roel Spilker final
to each field in the annotated class or enum.
- To add final
to each field, use @FieldDefaults(makeFinal=true)
. Any non-final field which must remain nonfinal
+ To add final
to each (instance) field, use @FieldDefaults(makeFinal=true)
. Any non-final field which must remain nonfinal
can be annotated with @NonFinal
(also in the lombok.experimental
package).
- To add an access modifier to each field, use @FieldDefaults(level=AccessLevel.PRIVATE)
. Any field that does not already have an
+ To add an access modifier to each (instance) field, use @FieldDefaults(level=AccessLevel.PRIVATE)
. Any field that does not already have an
access modifier (i.e. any field that looks like package private access) is changed to have the appropriate access modifier. Any package private
field which must remain package private can be annotated with @PackagePrivate
(also in the lombok.experimental
package).