diff options
Diffstat (limited to 'test/transform/resource/after-delombok/NonNullOnParameterOfDefaultMethod.java')
-rw-r--r-- | test/transform/resource/after-delombok/NonNullOnParameterOfDefaultMethod.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/NonNullOnParameterOfDefaultMethod.java b/test/transform/resource/after-delombok/NonNullOnParameterOfDefaultMethod.java new file mode 100644 index 00000000..e220296f --- /dev/null +++ b/test/transform/resource/after-delombok/NonNullOnParameterOfDefaultMethod.java @@ -0,0 +1,10 @@ +// 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"); + } + System.out.println(arg); + } +} |