Lombok Private Constructor

Viewed 19923

Is there any annotation available for Lombok private NoArgConstructor? Lombok @NoArgConstructor creates a public Constructor with no parameter. But I want private constructor annotation.

1 Answers

Use the access level element in the annotation. @NoArgsConstructor(access = AccessLevel.PRIVATE)

Related