diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-04-05 14:22:40 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-04-05 14:22:40 +0200 |
commit | b6fb3c03fa35db3423ea4274f35d2c77859a3286 (patch) | |
tree | 4e34a00e9684baedba46fdf635e5382679c2188d /usage_examples/experimental | |
parent | 2c93d336c1d694a286b53710cbeaa01339ba3f1c (diff) | |
download | lombok-b6fb3c03fa35db3423ea4274f35d2c77859a3286.tar.gz lombok-b6fb3c03fa35db3423ea4274f35d2c77859a3286.tar.bz2 lombok-b6fb3c03fa35db3423ea4274f35d2c77859a3286.zip |
[fieldNameConstants] code review, docs, tests, fixup.
Diffstat (limited to 'usage_examples/experimental')
-rw-r--r-- | usage_examples/experimental/FieldNameConstantsExample_post.jpage | 7 | ||||
-rw-r--r-- | usage_examples/experimental/FieldNameConstantsExample_pre.jpage | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/usage_examples/experimental/FieldNameConstantsExample_post.jpage b/usage_examples/experimental/FieldNameConstantsExample_post.jpage new file mode 100644 index 00000000..6300ed0e --- /dev/null +++ b/usage_examples/experimental/FieldNameConstantsExample_post.jpage @@ -0,0 +1,7 @@ +public class FieldNameConstantsExample { + public static final String I_AM_A_FIELD = "iAmAField"; + static final String AND_SO_AM_I = "andSoAmI"; + + private final String iAmAField; + private final int andSoAmI; +} diff --git a/usage_examples/experimental/FieldNameConstantsExample_pre.jpage b/usage_examples/experimental/FieldNameConstantsExample_pre.jpage new file mode 100644 index 00000000..dc6376eb --- /dev/null +++ b/usage_examples/experimental/FieldNameConstantsExample_pre.jpage @@ -0,0 +1,9 @@ +import lombok.experimental.FieldNameConstants; +import lombok.AccessLevel; + +@FieldNameConstants +public class FieldNameConstantsExample { + private final String iAmAField; + @FieldNameConstants(level = AccessLevel.PACKAGE) + private final int andSoAmI; +} |