mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 18:18:48 +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
@@ -41,7 +41,7 @@ public class SuperBuilderWithNonNull {
|
||||
this.nonNullParentField = Parent.$default$nonNullParentField();
|
||||
if ((nonNullParentField == null))
|
||||
{
|
||||
throw new java.lang.NullPointerException("nonNullParentField is marked @NonNull but is null");
|
||||
throw new java.lang.NullPointerException("nonNullParentField is marked non-null but is null");
|
||||
}
|
||||
}
|
||||
public static @java.lang.SuppressWarnings("all") ParentBuilder<?, ?> builder() {
|
||||
@@ -81,7 +81,7 @@ public class SuperBuilderWithNonNull {
|
||||
this.nonNullChildField = b.nonNullChildField;
|
||||
if ((nonNullChildField == null))
|
||||
{
|
||||
throw new java.lang.NullPointerException("nonNullChildField is marked @NonNull but is null");
|
||||
throw new java.lang.NullPointerException("nonNullChildField is marked non-null but is null");
|
||||
}
|
||||
}
|
||||
public static @java.lang.SuppressWarnings("all") ChildBuilder<?, ?> builder() {
|
||||
|
||||
Reference in new issue
Block a user