blob: 1e282ffa4b8048b0d009549de7656aa04aa3716c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//version 8:
//CONF: lombok.nonNull.exceptionType = Assertion
public class NonNullWithAssertion {
@lombok.NonNull @lombok.Setter private String test;
public void testMethod(@lombok.NonNull String arg) {
System.out.println(arg);
}
public void testMethodWithIf(@lombok.NonNull String arg) {
if (arg == null) throw new NullPointerException("Oops");
}
}
|