Rabbit-R1/switch port/smali/smali_classes3/io/flutter/util/Preconditions.smali
2024-05-21 17:08:36 -04:00

66 lines
1.3 KiB
Smali

.class public final Lio/flutter/util/Preconditions;
.super Ljava/lang/Object;
.source "Preconditions.java"
# direct methods
.method private constructor <init>()V
.locals 0
.line 14
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;)TT;"
}
.end annotation
.line 25
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
return-object p0
.end method
.method public static checkState(Z)V
.locals 0
if-eqz p0, :cond_0
return-void
.line 38
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
invoke-direct {p0}, Ljava/lang/IllegalStateException;-><init>()V
throw p0
.end method
.method public static checkState(ZLjava/lang/Object;)V
.locals 0
if-eqz p0, :cond_0
return-void
.line 52
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p0
.end method