aboutsummaryrefslogtreecommitdiff
path: root/website/templates/features
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2020-08-31 09:38:14 +0200
committerRawi01 <Rawi01@users.noreply.github.com>2020-08-31 09:38:14 +0200
commit23b80658bcf3ca0007a86d04ce6cc5f6c8db5ad4 (patch)
tree5e159ce51df5436a7ab5aeb18c0edb0605a1c2f1 /website/templates/features
parent2b4b5c983540af4a4c08cfb7a3d4057df0b84c39 (diff)
parent9148294f78a8e646ee131ca182a9b692bc028fdb (diff)
downloadlombok-23b80658bcf3ca0007a86d04ce6cc5f6c8db5ad4.tar.gz
lombok-23b80658bcf3ca0007a86d04ce6cc5f6c8db5ad4.tar.bz2
lombok-23b80658bcf3ca0007a86d04ce6cc5f6c8db5ad4.zip
Merge branch 'master' into eclipse-javadoc
Conflicts: src/core/lombok/javac/handlers/JavacHandlerUtil.java test/core/src/lombok/RunTestsViaEcj.java
Diffstat (limited to 'website/templates/features')
-rw-r--r--website/templates/features/Builder.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/website/templates/features/Builder.html b/website/templates/features/Builder.html
index f9897d03..1b6c6e62 100644
--- a/website/templates/features/Builder.html
+++ b/website/templates/features/Builder.html
@@ -132,7 +132,7 @@
</li>
</ul>
</p><p>
- If your identifiers are written in common english, lombok assumes that the name of any collection with <code>@Singular</code> on it is an english plural and will attempt to automatically singularize that name. If this is possible, the add-one method will use this name. For example, if your collection is called <code>statuses</code>, then the add-one method will automatically be called <code>status</code>. You can also specify the singular form of your identifier explictly by passing the singular form as argument to the annotation like so: <code>@Singular("axis") List&lt;Line&gt; axes;</code>.<br />
+ If your identifiers are written in common english, lombok assumes that the name of any collection with <code>@Singular</code> on it is an english plural and will attempt to automatically singularize that name. If this is possible, the add-one method will use this name. For example, if your collection is called <code>statuses</code>, then the add-one method will automatically be called <code>status</code>. You can also specify the singular form of your identifier explicitly by passing the singular form as argument to the annotation like so: <code>@Singular("axis") List&lt;Line&gt; axes;</code>.<br />
If lombok cannot singularize your identifier, or it is ambiguous, lombok will generate an error and force you to explicitly specify the singular name.
</p><p>
The snippet below does not show what lombok generates for a <code>@Singular</code> field/parameter because it is rather complicated. You can view a snippet <a href="builderSingular">here</a>.