aboutsummaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2018-11-01 16:38:25 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2018-11-01 16:38:25 +0100
commit2fd46a50b6125fd9f0e8177ffad5db8ee934fe34 (patch)
tree6662a3cb71b99b8c2b9fc058db8b735dc36145d0 /website
parent21878e253e331f6ea340ae44bf824890185e1938 (diff)
downloadlombok-2fd46a50b6125fd9f0e8177ffad5db8ee934fe34.tar.gz
lombok-2fd46a50b6125fd9f0e8177ffad5db8ee934fe34.tar.bz2
lombok-2fd46a50b6125fd9f0e8177ffad5db8ee934fe34.zip
[feature] FieldNameConstants now works like Builder: Make whatever bits it does by hand and lombok fills in whatever is missing.
Diffstat (limited to 'website')
-rw-r--r--website/templates/features/experimental/FieldNameConstants.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/website/templates/features/experimental/FieldNameConstants.html b/website/templates/features/experimental/FieldNameConstants.html
index a6fac99d..283ebe55 100644
--- a/website/templates/features/experimental/FieldNameConstants.html
+++ b/website/templates/features/experimental/FieldNameConstants.html
@@ -44,6 +44,9 @@
<@f.smallPrint>
<p>
+ Starting with lombok v1.18.5, lombok will silently skip generating anything that already exists. You can define the inner <code>Fields</code> enum/class yourself,
+ in which case lombok will add all the enum constants / public static final fields you haven't written yourself.
+ </p><p>
From lombok v1.16.22 to lombok v1.18.2, this feature generated constants inside the type directly; the name of these fields would for example turn field <code>exampleFieldName</code> into <code>public static final String FIELD_EXAMPLE_FIELD_NAME = "exampleFieldName";</code>. The prefix and suffix (here, <code>FIELD_</code>, and the empty string) were configurable. Starting with lombok v1.18.4 this feature has been redesigned into generating an inner type as described above.
</p><p>
Any parameters of lombok annotations that take strings need to be supplied actual string literals; you cannot have references to constants like those generated by <code>@FieldNameConstants</code>. If you'd like to use <code>@FieldNameConstants</code> to for example fill in the <code>of</code> and/or <code>exclude</code> parameters of <code>@ToString</code> and similar lombok annotations, use the <code>@ToString.Include</code> / <code>@ToString.Exclude</code> etc system instead; these are described at the feature pages for those features.