123
This commit is contained in:
1 parent
f084d04808
commit
208376906d
12 files changed
+30
-8
No files matched your search
@@ -40,6 +40,7 @@ public abstract class Assert {
|
||||
* @throws IllegalArgumentException 如果不是true
|
||||
*/
|
||||
public static void isTrue(boolean expression, String message) {
|
||||
|
||||
if (!expression) {
|
||||
throw new IllegalArgumentException(message);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user