Update Scene
This commit is contained in:
1 parent
781bf86ef1
commit
e8d1d92bfb
9 files changed
+294
-44
No files matched your search
@@ -17,6 +17,12 @@ package com.hippo.util;
|
||||
|
||||
public class AssertUtils {
|
||||
|
||||
public static void assertNull(String message, Object object) {
|
||||
if (object != null) {
|
||||
throw new AssertError(message);
|
||||
}
|
||||
}
|
||||
|
||||
public static void assertNotNull(String message, Object object) {
|
||||
if (object == null) {
|
||||
throw new AssertError(message);
|
||||
@@ -29,6 +35,13 @@ public class AssertUtils {
|
||||
}
|
||||
}
|
||||
|
||||
public static void assertNullEx(String message, Object object)
|
||||
throws AssertException {
|
||||
if (object != null) {
|
||||
throw new AssertException(message);
|
||||
}
|
||||
}
|
||||
|
||||
public static void assertNotNullEx(String message, Object object)
|
||||
throws AssertException {
|
||||
if (object == null) {
|
||||
|
||||
Reference in new issue
Block a user