From ae54fa51ac6162a53dc0ac424d0ba17cdac89ba3 Mon Sep 17 00:00:00 2001
From: Roel Spilker
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