Files
rr3-apk/decompiled-community/sources/com/google/android/gms/common/internal/Asserts.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

75 lines
2.2 KiB
Java

package com.google.android.gms.common.internal;
import android.os.Looper;
import android.util.Log;
import androidx.annotation.NonNull;
import com.google.android.gms.common.annotation.KeepForSdk;
@KeepForSdk
/* loaded from: classes2.dex */
public final class Asserts {
private Asserts() {
throw new AssertionError("Uninstantiable");
}
@KeepForSdk
public static void checkMainThread(@NonNull String str) {
if (Looper.getMainLooper().getThread() == Thread.currentThread()) {
return;
}
Log.e("Asserts", "checkMainThread: current thread " + String.valueOf(Thread.currentThread()) + " IS NOT the main thread " + String.valueOf(Looper.getMainLooper().getThread()) + "!");
throw new IllegalStateException(str);
}
@KeepForSdk
public static void checkNotMainThread(@NonNull String str) {
if (Looper.getMainLooper().getThread() != Thread.currentThread()) {
return;
}
Log.e("Asserts", "checkNotMainThread: current thread " + String.valueOf(Thread.currentThread()) + " IS the main thread " + String.valueOf(Looper.getMainLooper().getThread()) + "!");
throw new IllegalStateException(str);
}
@KeepForSdk
public static void checkNotNull(Object obj) {
if (obj == null) {
throw new IllegalArgumentException("null reference");
}
}
@KeepForSdk
public static void checkNull(Object obj) {
if (obj != null) {
throw new IllegalArgumentException("non-null reference");
}
}
@KeepForSdk
public static void checkState(boolean z) {
if (!z) {
throw new IllegalStateException();
}
}
@KeepForSdk
public static void checkNotNull(Object obj, @NonNull Object obj2) {
if (obj == null) {
throw new IllegalArgumentException(String.valueOf(obj2));
}
}
@KeepForSdk
public static void checkNull(Object obj, @NonNull Object obj2) {
if (obj != null) {
throw new IllegalArgumentException(String.valueOf(obj2));
}
}
@KeepForSdk
public static void checkState(boolean z, @NonNull Object obj) {
if (!z) {
throw new IllegalStateException(String.valueOf(obj));
}
}
}