aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/NonNullOnParameter.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before/NonNullOnParameter.java')
-rw-r--r--test/transform/resource/before/NonNullOnParameter.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/transform/resource/before/NonNullOnParameter.java b/test/transform/resource/before/NonNullOnParameter.java
index 7eb4c565..22aceac7 100644
--- a/test/transform/resource/before/NonNullOnParameter.java
+++ b/test/transform/resource/before/NonNullOnParameter.java
@@ -27,4 +27,13 @@ class NonNullOnParameter extends Thread {
System.out.println("Hey");
if (arg == null) throw new NullPointerException();
}
+
+ public void testWithAssert(@lombok.NonNull String param) {
+ assert param != null;
+ }
+
+ public void testWithAssertAndMessage(@lombok.NonNull String param) {
+ assert param != null : "Oops";
+ }
+
} \ No newline at end of file