blob: 7483718fcf6951fa6c0a6d6967a1bc617d3c4d19 (
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
32
33
34
|
//version 8:
import lombok.NonNull;
public class ConstructorsInAnonymousClass {
Object annonymous = new Object() {
class Inner {
private String string;
@NonNull
private String string2;
@java.lang.SuppressWarnings("all")
public Inner(final String string, @NonNull final String string2) {
if (string2 == null) {
throw new java.lang.NullPointerException("string2 is marked non-null but is null");
}
this.string = string;
this.string2 = string2;
}
@java.lang.SuppressWarnings("all")
public Inner(@NonNull final String string2) {
if (string2 == null) {
throw new java.lang.NullPointerException("string2 is marked non-null but is null");
}
this.string2 = string2;
}
@java.lang.SuppressWarnings("all")
public Inner() {
}
}
};
}
|