mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 09:32:27 -06:00
25 lines
511 B
Java
25 lines
511 B
Java
|
package io.flutter.util;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class Preconditions {
|
||
|
private Preconditions() {
|
||
|
}
|
||
|
|
||
|
public static <T> T checkNotNull(T t) {
|
||
|
t.getClass();
|
||
|
return t;
|
||
|
}
|
||
|
|
||
|
public static void checkState(boolean z) {
|
||
|
if (!z) {
|
||
|
throw new IllegalStateException();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static void checkState(boolean z, Object obj) {
|
||
|
if (!z) {
|
||
|
throw new IllegalStateException(String.valueOf(obj));
|
||
|
}
|
||
|
}
|
||
|
}
|