mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-03 09:13:36 +00:00
17 lines
466 B
Java
17 lines
466 B
Java
public class NonNullWithAlternateException {
|
|
@lombok.NonNull
|
|
private String test;
|
|
public void testMethod(@lombok.NonNull String arg) {
|
|
if (arg == null) {
|
|
throw new java.lang.IllegalArgumentException("arg is null");
|
|
}
|
|
System.out.println(arg);
|
|
}
|
|
@java.lang.SuppressWarnings("all")
|
|
public void setTest(@lombok.NonNull final String test) {
|
|
if (test == null) {
|
|
throw new java.lang.IllegalArgumentException("test is null");
|
|
}
|
|
this.test = test;
|
|
}
|
|
} |