mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 18:18:48 +00:00
14 lines
323 B
Java
14 lines
323 B
Java
//version 8:
|
|
class NonNullWithSneakyThrows {
|
|
void test(@lombok.NonNull String in) {
|
|
try {
|
|
if (in == null) {
|
|
throw new java.lang.NullPointerException("in is marked non-null but is null");
|
|
}
|
|
System.out.println(in);
|
|
} catch (final java.lang.Throwable $ex) {
|
|
throw lombok.Lombok.sneakyThrow($ex);
|
|
}
|
|
}
|
|
}
|