diff options
Diffstat (limited to 'test/transform/resource/after-delombok/NonNullOnRecord.java')
-rw-r--r-- | test/transform/resource/after-delombok/NonNullOnRecord.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/test/transform/resource/after-delombok/NonNullOnRecord.java b/test/transform/resource/after-delombok/NonNullOnRecord.java index 2ff4a8f7..7acfab36 100644 --- a/test/transform/resource/after-delombok/NonNullOnRecord.java +++ b/test/transform/resource/after-delombok/NonNullOnRecord.java @@ -1,21 +1,13 @@ // version 14: import lombok.NonNull; record NonNullOnRecord(@NonNull String a, @NonNull String b) { - 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"; - } @java.lang.SuppressWarnings("all") - public NonNullOnRecord(@NonNull final String a, @NonNull final String b) { + public NonNullOnRecord { if (a == null) { throw new java.lang.NullPointerException("a is marked non-null but is null"); } if (b == null) { throw new java.lang.NullPointerException("b is marked non-null but is null"); } - this.a = a; - this.b = b; } } |