diff options
Diffstat (limited to 'usage_examples/experimental/FieldDefaultsExample_pre.jpage')
-rw-r--r-- | usage_examples/experimental/FieldDefaultsExample_pre.jpage | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/usage_examples/experimental/FieldDefaultsExample_pre.jpage b/usage_examples/experimental/FieldDefaultsExample_pre.jpage new file mode 100644 index 00000000..a0a38f7a --- /dev/null +++ b/usage_examples/experimental/FieldDefaultsExample_pre.jpage @@ -0,0 +1,18 @@ +import lombok.AccessLevel; +import lombok.experimental.FieldDefaults; +import lombok.experimental.NonFinal; +import lombok.experimental.PackagePrivate; + +@FieldDefaults(makeFinal = true, level=AccessLevel.PRIVATE) +public class FieldDefaultsExample { + public final int a; + int b; + @NonFinal int c; + @PackagePrivate int d; + + FieldDefaultsExample() { + a = 0; + b = 0; + d = 0; + } +} |