From ae54fa51ac6162a53dc0ac424d0ba17cdac89ba3 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Thu, 23 Mar 2017 01:07:56 +0100 Subject: [i1180] generate ConstructorProperties also for (package) private constructors --- website/features/Constructor.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'website/features/Constructor.html') diff --git a/website/features/Constructor.html b/website/features/Constructor.html index 88a8f6ac..407f54ad 100644 --- a/website/features/Constructor.html +++ b/website/features/Constructor.html @@ -76,8 +76,7 @@ signals you must know what you're doing.

The @java.beans.ConstructorProperties annotation is never generated for a constructor with no arguments. This also explains why @NoArgsConstructor - lacks the suppressConstructorProperties annotation method. The @ConstructorProperties annotation is also omitted for private constructors. The - generated static factory methods also do not get @ConstructorProperties, as this annotation can only be added to real constructors. + lacks the suppressConstructorProperties annotation method. The generated static factory methods also do not get @ConstructorProperties, as this annotation can only be added to real constructors.

@XArgsConstructor 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 AccessLevel.PRIVATE. -- cgit