aboutsummaryrefslogtreecommitdiff
path: root/website2/templates/features/constructor.html
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2017-05-08 21:11:15 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2017-05-29 21:02:53 +0200
commit72fd50b9f1db1ab6bfc1753ba6a1e686a2f0f22c (patch)
tree33600cd03751879fdae5426c7c78fc815915cf11 /website2/templates/features/constructor.html
parent6f39b962f02348b4ffd3f45589bab5f2c7b87e2b (diff)
downloadlombok-72fd50b9f1db1ab6bfc1753ba6a1e686a2f0f22c.tar.gz
lombok-72fd50b9f1db1ab6bfc1753ba6a1e686a2f0f22c.tar.bz2
lombok-72fd50b9f1db1ab6bfc1753ba6a1e686a2f0f22c.zip
moved an update to the website text about the jdk8 onX support to the new website templates.
Diffstat (limited to 'website2/templates/features/constructor.html')
-rw-r--r--website2/templates/features/constructor.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/website2/templates/features/constructor.html b/website2/templates/features/constructor.html
index fb331113..6a12fa2a 100644
--- a/website2/templates/features/constructor.html
+++ b/website2/templates/features/constructor.html
@@ -45,7 +45,7 @@
<p>
Even if a field is explicitly initialized with <code>null</code>, lombok will consider the requirement to avoid null as fulfilled, and will <em>NOT</em> consider the field as a 'required' argument. The assumption is that if you explicitly assign <code>null</code> to a field that you've also marked as <code>@NonNull</code> signals you must know what you're doing.
</p><p>
- The <code>@java.beans.ConstructorProperties</code> annotation is never generated for a constructor with no arguments. This also explains why <code>@NoArgsConstructor</code> lacks the <code>suppressConstructorProperties</code> annotation method. The <code>@ConstructorProperties</code> annotation is also omitted for private constructors. The generated static factory methods also do not get <code>@ConstructorProperties</code>, as this annotation can only be added to real constructors.
+ The <code>@java.beans.ConstructorProperties</code> annotation is never generated for a constructor with no arguments. This also explains why <code>@NoArgsConstructor</code> lacks the <code>suppressConstructorProperties</code> annotation method. The generated static factory methods also do not get <code>@ConstructorProperties</code>, as this annotation can only be added to real constructors.
</p><p>
<code>@XArgsConstructor</code> can also be used on an enum definition. The generated constructor will always be private, because non-private constructors aren't legal in enums. You don't have to specify <code>AccessLevel.PRIVATE</code>.
</p><p>