apkfuckery/com.discord/smali/b/j$h.smali
2019-07-26 08:05:06 +02:00

178 lines
4.2 KiB
Smali

.class final Lb/j$h;
.super Lb/j;
.source "ParameterHandler.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lb/j;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "h"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lb/j<",
"TT;>;"
}
.end annotation
# instance fields
.field private final bFm:Lb/e;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lb/e<",
"TT;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private final bFn:Z
.field private final name:Ljava/lang/String;
# direct methods
.method constructor <init>(Ljava/lang/String;Lb/e;Z)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Lb/e<",
"TT;",
"Ljava/lang/String;",
">;Z)V"
}
.end annotation
invoke-direct {p0}, Lb/j;-><init>()V
const-string v0, "name == null"
invoke-static {p1, v0}, Lb/p;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/String;
iput-object p1, p0, Lb/j$h;->name:Ljava/lang/String;
iput-object p2, p0, Lb/j$h;->bFm:Lb/e;
iput-boolean p3, p0, Lb/j$h;->bFn:Z
return-void
.end method
# virtual methods
.method final a(Lb/l;Ljava/lang/Object;)V
.locals 5
.param p2 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lb/l;",
"TT;)V"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-eqz p2, :cond_1
iget-object v0, p0, Lb/j$h;->name:Ljava/lang/String;
iget-object v1, p0, Lb/j$h;->bFm:Lb/e;
invoke-interface {v1, p2}, Lb/e;->convert(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
check-cast p2, Ljava/lang/String;
iget-boolean v1, p0, Lb/j$h;->bFn:Z
iget-object v2, p1, Lb/l;->bFt:Ljava/lang/String;
if-eqz v2, :cond_0
iget-object v2, p1, Lb/l;->bFt:Ljava/lang/String;
new-instance v3, Ljava/lang/StringBuilder;
const-string v4, "{"
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, "}"
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {p2, v1}, Lb/l;->k(Ljava/lang/String;Z)Ljava/lang/String;
move-result-object p2
invoke-virtual {v2, v0, p2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
move-result-object p2
iput-object p2, p1, Lb/l;->bFt:Ljava/lang/String;
return-void
:cond_0
new-instance p1, Ljava/lang/AssertionError;
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
throw p1
:cond_1
new-instance p1, Ljava/lang/IllegalArgumentException;
new-instance p2, Ljava/lang/StringBuilder;
const-string v0, "Path parameter \""
invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v0, p0, Lb/j$h;->name:Ljava/lang/String;
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, "\" value must not be null."
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method