aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/ConstructorsInAnonymousClass.java
blob: 56e96ae3fd8e868bc1913752d1c7a88c57865bd9 (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
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() {
			}
		}
	};
}