mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 14:16:11 +00:00
[i2078] Add possibility to generate assert on @NonNull
This commit is contained in:
1 parent
e4b61e1263
commit
4e7414038a
40 files changed
+261
-163
No files matched your search
@@ -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";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user