[Lombok] Constructor can have only non-static fields

When using the AllArgsConstructor annotation (directly or via
meta-annotation), only fields that are not static should be added as
arguments. Previously, all fields were being included regardless of
static-ness, which is not consistent with the behavior of Lombok.

^KT-54025 Fixed
This commit is contained in:
Brian Norman
2024-01-11 13:40:13 -06:00
committed by Space Team
parent 2ab1e712f8
commit be728d4291
6 changed files with 18 additions and 0 deletions
@@ -25,6 +25,9 @@ public class ConstructorExample {
@NonNull
private Long zzzz = 23L;
// Not required by annotation because static.
private static String constant;
static void javaUsage() {
ConstructorExample generated = new ConstructorExample("foo", true);
}