mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 12:22:31 +00:00
14 lines
349 B
Java
14 lines
349 B
Java
//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");
|
|
}
|
|
}
|