mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 12:16:49 +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
@@ -9,7 +9,7 @@ import java.lang.annotation.*;
|
||||
super();
|
||||
if ((s == null))
|
||||
{
|
||||
throw new java.lang.NullPointerException("s is marked @NonNull but is null");
|
||||
throw new java.lang.NullPointerException("s is marked non-null but is null");
|
||||
}
|
||||
this.i = i;
|
||||
this.s = s;
|
||||
@@ -29,7 +29,7 @@ import java.lang.annotation.*;
|
||||
public @java.lang.SuppressWarnings("all") void setS(final @lombok.NonNull String s) {
|
||||
if ((s == null))
|
||||
{
|
||||
throw new java.lang.NullPointerException("s is marked @NonNull but is null");
|
||||
throw new java.lang.NullPointerException("s is marked non-null but is null");
|
||||
}
|
||||
this.s = s;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user