blob: c3d271a6eabbdb54ad08325ab14aba8d1b013339 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//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");
}
}
|