1 2 3 4 5 6 7 8 9 10 11 12 13
// version 14: import lombok.NonNull; public record NonNullOnRecordExistingSetter(@NonNull String a) { public NonNullOnRecordExistingSetter(String a) { this.a = a; } public void method(@NonNull String param) { String asd = "a"; } }