Shows that code like:
@RequiredArgsConstructor(staticName = "of")
@AllArgsConstructor(access = AccessLevel.PROTECTED)
public class ConstructorExample<T> {
private int x, y;
@NonNull private T description;
@NoArgsConstructor
public static class NoArgsExample {
@NonNull private String field;
}
}
... would generate code like:
public static <T> ConstructorExample<T> of(T description) {
return new ConstructorExample<T>(description);
}
But, I am experiencing this kind of constructor generated:
public static <T> ConstructorExample<T> of(T arg0) {
return new ConstructorExample<T>(description);
}
Is there any way to get lombok to generate constructors with the parameter names?
Thanks!
-Brian
p.s. My precise example is more basic than the docs:
@RequiredArgsConstructor
public class Term {
private Long courtCd;
private Date beginDate;
}
I would expect to have a constructor with the parameters names like:
public Term (Long courtCd, Date beginDate) {...}
But I'm experiencing:
public Term(Long arg0, Date arg1) {...}