aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/NonNullOnRecord.java
blob: 7acfab363ed5c23da4f931fe3b0dd1bb46a47b86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// version 14:
import lombok.NonNull;
record NonNullOnRecord(@NonNull String a, @NonNull String b) {
	@java.lang.SuppressWarnings("all")
	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");
		}
	}
}