[fixes #3366] Handle @NonNull type annotations on record components

This commit is contained in:
Rawi01 authored and Roel Spilker committed 2023-03-21 17:13:54 +01:00
1 parent 13642eb896
commit 6f204d98c4
17 files changed
+110 -81

No files matched your search

@@ -0,0 +1,16 @@
// version 19:
import lombok.NonNull;
public record NonNullOnRecordExistingSetter(String a) {
/* Implicit */ private final String a;
public NonNullOnRecordExistingSetter(String a) {
super();
this.a = a;
}
public void method(@NonNull String param) {
if ((param == null))
{
throw new java.lang.NullPointerException("param is marked non-null but is null");
}
String asd = "a";
}
}