aboutsummaryrefslogtreecommitdiff
path: root/website/features/Constructor.html
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2010-12-28 16:50:19 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-12-28 16:51:02 +0100
commit52582dc10ea1b5ea4a1dbb71831a442056354990 (patch)
treeafd0794b7360e5c174a79a54c54a50aacfe31efc /website/features/Constructor.html
parentd80139fa8f21b1e6c7fad0a0607986d7b246a06f (diff)
downloadlombok-52582dc10ea1b5ea4a1dbb71831a442056354990.tar.gz
lombok-52582dc10ea1b5ea4a1dbb71831a442056354990.tar.bz2
lombok-52582dc10ea1b5ea4a1dbb71831a442056354990.zip
@ToString, @Getter, and @XArgsConstructor now work on, and are legal on, enums. Docs have been updated.
Behaviour of @XArgsConstructor when its placement makes no sense (i.e. when annotating an interface with them) is no longer 'throw weird errors', but has been brought in line with the others: A nice error message is generated. Fixes issue #175
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>