mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-20 02:17:52 +00:00
Added @NonNull on parameters feature (issue 514),
including docs and changelog.
This commit is contained in:
1 parent
7bbb7cf3ca
commit
5a3e9bd804
40 files changed
+674
-57
No files matched your search
@@ -8,7 +8,9 @@ import java.lang.annotation.*;
|
||||
public @java.beans.ConstructorProperties({"i", "s"}) @java.lang.SuppressWarnings("all") NonNullPlain(final @lombok.NonNull int i, final @lombok.NonNull String s) {
|
||||
super();
|
||||
if ((s == null))
|
||||
throw new java.lang.NullPointerException("s");
|
||||
{
|
||||
throw new java.lang.NullPointerException("s");
|
||||
}
|
||||
this.i = i;
|
||||
this.s = s;
|
||||
}
|
||||
@@ -26,7 +28,9 @@ 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");
|
||||
{
|
||||
throw new java.lang.NullPointerException("s");
|
||||
}
|
||||
this.s = s;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") void setO(final Object o) {
|
||||
|
||||
Reference in new issue
Block a user