diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-08-13 00:11:02 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-08-13 00:11:02 +0200 |
commit | 8850798a04e7f44925ed16b3450623b02f5b6295 (patch) | |
tree | 7e40b1f95e1ad082ee135bf3ae9b1de4e946d2d4 /usage_examples/experimental/FieldDefaultsExample_pre.jpage | |
parent | 42f5a55d69850603d951a65929f48a3b462b54ea (diff) | |
download | lombok-8850798a04e7f44925ed16b3450623b02f5b6295.tar.gz lombok-8850798a04e7f44925ed16b3450623b02f5b6295.tar.bz2 lombok-8850798a04e7f44925ed16b3450623b02f5b6295.zip |
Documentation for @Value, @FieldDefaults, @Wither
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; + } +} |