aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/NonNullOnRecord.java
blob: c8efdbe650bbe1e0e434f4d6365ad5a9b7d8b863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// version 14:
import lombok.NonNull;
record NonNullOnRecord(String a, String b) {
/* Implicit */  private final String a;
/* Implicit */  private final String b;
  public NonNullOnRecord(String a, String b) {
    super();
    .a = a;
    .b = 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";
  }
  public @java.lang.SuppressWarnings("all") NonNullOnRecord(final String a, final String b) {
    super();
    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;
  }
}