aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/experimental
diff options
context:
space:
mode:
Diffstat (limited to 'usage_examples/experimental')
-rw-r--r--usage_examples/experimental/FieldNameConstantsExample_post.jpage7
-rw-r--r--usage_examples/experimental/FieldNameConstantsExample_pre.jpage9
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;
+}