mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 00:16:47 +00:00
[Fixes #807] The NonNull annotation can now be used documentary style on params of abstract methods. The warning has been eliminated.
This commit is contained in:
1 parent
264c66b53f
commit
e94a5f9ee3
10 files changed
+32
-6
No files matched your search
@@ -0,0 +1,10 @@
|
||||
interface NonNullOnParameterOfDefaultMethod {
|
||||
void test(@lombok.NonNull String arg);
|
||||
default void test2(@lombok.NonNull String arg) {
|
||||
if ((arg == null))
|
||||
{
|
||||
throw new java.lang.NullPointerException("arg");
|
||||
}
|
||||
System.out.println(arg);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user