apkfuckery/com.discord/smali_classes2/okhttp3/Headers$a.smali

258 lines
5.5 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lokhttp3/Headers$a;
.super Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
.source "Headers.kt"
2019-07-24 11:27:29 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/Headers;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public final a:Ljava/util/List;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/util/ArrayList;
const/16 v1, 0x14
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
2019-12-06 03:29:40 +00:00
iput-object v0, p0, Lokhttp3/Headers$a;->a:Ljava/util/List;
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public final a(Ljava/lang/String;)Lokhttp3/Headers$a;
2019-11-28 00:30:53 +00:00
.locals 3
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:goto_0
iget-object v1, p0, Lokhttp3/Headers$a;->a:Ljava/util/List;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v1}, Ljava/util/List;->size()I
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-ge v0, v1, :cond_1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Lokhttp3/Headers$a;->a:Ljava/util/List;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
check-cast v1, Ljava/lang/String;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v2, 0x1
2019-11-28 00:30:53 +00:00
2019-12-12 08:58:10 +00:00
invoke-static {p1, v1, v2}, Lm/a0/p;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Lokhttp3/Headers$a;->a:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v1, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Lokhttp3/Headers$a;->a:Ljava/util/List;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v1, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
add-int/lit8 v0, v0, -0x2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
add-int/lit8 v0, v0, 0x2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_1
return-object p0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_2
const-string p1, "name"
2019-11-28 00:30:53 +00:00
2019-12-12 08:58:10 +00:00
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
throw p1
2019-07-24 11:27:29 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public final a(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
.locals 1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p2, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v0, Lokhttp3/Headers;->e:Lokhttp3/Headers$b;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, p1}, Lokhttp3/Headers$b;->a(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v0, Lokhttp3/Headers;->e:Lokhttp3/Headers$b;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, p2, p1}, Lokhttp3/Headers$b;->a(Ljava/lang/String;Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p1, p2}, Lokhttp3/Headers$a;->b(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
return-object p0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "value"
2019-07-24 11:27:29 +00:00
2019-12-12 08:58:10 +00:00
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
throw v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_1
const-string p1, "name"
2019-11-28 00:30:53 +00:00
2019-12-12 08:58:10 +00:00
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw v0
2019-07-24 11:27:29 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public final a()Lokhttp3/Headers;
.locals 3
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Lokhttp3/Headers$a;->a:Ljava/util/List;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
new-array v1, v1, [Ljava/lang/String;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v0, v1}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
check-cast v0, [Ljava/lang/String;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
new-instance v2, Lokhttp3/Headers;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v2, v0, v1}, Lokhttp3/Headers;-><init>([Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
return-object v2
2019-11-28 00:30:53 +00:00
:cond_0
2019-12-12 08:58:10 +00:00
new-instance v0, Lm/l;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const-string v1, "null cannot be cast to non-null type kotlin.Array<T>"
2019-11-28 00:30:53 +00:00
2019-12-12 08:58:10 +00:00
invoke-direct {v0, v1}, Lm/l;-><init>(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw v0
2019-11-28 00:30:53 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public final b(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
.locals 1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p2, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Lokhttp3/Headers$a;->a:Ljava/util/List;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object p1, p0, Lokhttp3/Headers$a;->a:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-12-12 08:58:10 +00:00
invoke-static {p2}, Lm/a0/u;->trim(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
return-object p0
2019-11-28 00:30:53 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
const-string p1, "value"
2019-11-28 00:30:53 +00:00
2019-12-12 08:58:10 +00:00
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw v0
2019-11-28 00:30:53 +00:00
:cond_1
2019-12-06 03:29:40 +00:00
const-string p1, "name"
2019-07-24 11:27:29 +00:00
2019-12-12 08:58:10 +00:00
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
throw v0
.end method
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
.method public final c(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
.locals 1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p2, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
sget-object v0, Lokhttp3/Headers;->e:Lokhttp3/Headers$b;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, p1}, Lokhttp3/Headers$b;->a(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
sget-object v0, Lokhttp3/Headers;->e:Lokhttp3/Headers$b;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, p2, p1}, Lokhttp3/Headers$b;->a(Ljava/lang/String;Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p1}, Lokhttp3/Headers$a;->a(Ljava/lang/String;)Lokhttp3/Headers$a;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p1, p2}, Lokhttp3/Headers$a;->b(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
return-object p0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "value"
2019-11-28 00:30:53 +00:00
2019-12-12 08:58:10 +00:00
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw v0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_1
const-string p1, "name"
2019-07-24 11:27:29 +00:00
2019-12-12 08:58:10 +00:00
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
throw v0
2019-07-24 11:27:29 +00:00
.end method