I have this simple code:
@Data
@Builder
public class RegistrationInfo {
private String mail;
private String password;
public RegistrationInfo(R
Presumably, @Builder
generates an all-args constructor iff there are no other constructors defined.
@Data
@Builder
@AllArgsConstructor(access = AccessLevel.PRIVATE)
class RegistrationInfo {
private String mail;
private String password;
private RegistrationInfo(RegistrationInfo registrationInfo) {
this(registrationInfo.mail, registrationInfo.password);
}
}