aboutsummaryrefslogtreecommitdiff
path: root/website/features/Constructor.html
diff options
context:
space:
mode:
Diffstat (limited to 'website/features/Constructor.html')
-rw-r--r--website/features/Constructor.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/website/features/Constructor.html b/website/features/Constructor.html
index 6a7cfd2f..072e46ed 100644
--- a/website/features/Constructor.html
+++ b/website/features/Constructor.html
@@ -68,6 +68,9 @@
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.
+ </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>
</div>
</div>