mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-11 03:13:38 +00:00
11 lines
290 B
Java
11 lines
290 B
Java
// version 8:
|
|
interface NonNullOnParameterOfDefaultMethod {
|
|
void test(@lombok.NonNull String arg);
|
|
default void test2(@lombok.NonNull String arg) {
|
|
if (arg == null) {
|
|
throw new java.lang.NullPointerException("arg is marked non-null but is null");
|
|
}
|
|
System.out.println(arg);
|
|
}
|
|
}
|