diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-04-05 14:22:53 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-04-05 14:22:53 +0200 |
commit | 675699fccb27c664c8ef9d3ddad65e6935b36787 (patch) | |
tree | 8f4c9e52579eff0f56bc270f55472279ff745c54 /usage_examples/experimental | |
parent | c2f0736c5e6aa8153bd84062ee03f155babc2288 (diff) | |
parent | b6fb3c03fa35db3423ea4274f35d2c77859a3286 (diff) | |
download | lombok-675699fccb27c664c8ef9d3ddad65e6935b36787.tar.gz lombok-675699fccb27c664c8ef9d3ddad65e6935b36787.tar.bz2 lombok-675699fccb27c664c8ef9d3ddad65e6935b36787.zip |
Merge branch 'cheelio-FieldNameConstants'
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; +} |