aboutsummaryrefslogtreecommitdiff
path: root/website/templates/features/experimental
diff options
context:
space:
mode:
authorFatima Rami <frami.contact@gmail.com>2021-10-23 22:07:52 +0200
committerFatima Rami <frami.contact@gmail.com>2021-10-23 22:07:52 +0200
commit746ce5d4eece628b1d66a4c60b3bae422f8d0034 (patch)
tree6e094b3588e911d81c7e4009789a529fdfa6240d /website/templates/features/experimental
parentf6e897e486b76548d76a8b16f90516e0cab42985 (diff)
downloadlombok-746ce5d4eece628b1d66a4c60b3bae422f8d0034.tar.gz
lombok-746ce5d4eece628b1d66a4c60b3bae422f8d0034.tar.bz2
lombok-746ce5d4eece628b1d66a4c60b3bae422f8d0034.zip
#1990 fixed error documentation @FieldNameConstants
Diffstat (limited to 'website/templates/features/experimental')
-rw-r--r--website/templates/features/experimental/FieldNameConstants.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/website/templates/features/experimental/FieldNameConstants.html b/website/templates/features/experimental/FieldNameConstants.html
index e88b7670..06fa23b5 100644
--- a/website/templates/features/experimental/FieldNameConstants.html
+++ b/website/templates/features/experimental/FieldNameConstants.html
@@ -24,7 +24,7 @@
<p>
The <code>@FieldNameConstants</code> annotation generates an inner type which contains 1 constant for each field in your class; either string constants (fields marked <code>public static final</code>, of type <code>java.lang.String</code>) or if you prefer, an enum type with 1 value for each field - write <code>@FieldNameConstants(asEnum = true)</code> for the enum variant. <code>@FieldNameConstants</code> is useful for various marshalling and serialization frameworks. The constant field (whether enum value or string constant) always has the exact same name as the field, capitalization and all, unless you set the <code>lombok.fieldNameConstants.uppercase = true</code> option in your <code>lombok.config</code> file; in that case lombok will try to <code>UPPER_CASE</code> the name.
</p><p>
- The generated inner type is by default called <code>Fields</code> and is <code>public</code>. You can modify this via <code>@FieldNameConstants(innerTypeName = "FieldNames", access = AccessLevel.PACKAGE)</code> for example. The default inner type name can also be modified via configuration key <code>lombok.fieldNameConstants.innerTypeName</code>. The generated fields are always <code>public</code>.
+ The generated inner type is by default called <code>Fields</code> and is <code>public</code>. You can modify this via <code>@FieldNameConstants(innerTypeName = "FieldNames", level = AccessLevel.PACKAGE)</code> for example. The default inner type name can also be modified via configuration key <code>lombok.fieldNameConstants.innerTypeName</code>. The generated fields are always <code>public</code>.
</p><p>
Must be applied to classes (or enums, though you'd rarely want to do that). By default includes all non-transient, non-static fields. You can use <code>@FieldNameConstants.Include</code> in fields + <code>@FieldNameConstants(onlyExplicitlyIncluded = true)</code>, or <code>@FieldNameConstants.Exclude</code> for more fine-grained control.
</p>