apkfuckery/com.discord/smali_classes2/okhttp3/r.smali
2019-11-28 01:30:53 +01:00

89 lines
2.2 KiB
Smali

.class public final Lokhttp3/r;
.super Ljava/lang/Object;
.source "Dns.kt"
# interfaces
.implements Lokhttp3/q;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/Dns$DefaultImpls;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# direct methods
.method constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final dA(Ljava/lang/String;)Ljava/util/List;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/util/List<",
"Ljava/net/InetAddress;",
">;"
}
.end annotation
const-string v0, "hostname"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:try_start_0
invoke-static {p1}, Ljava/net/InetAddress;->getAllByName(Ljava/lang/String;)[Ljava/net/InetAddress;
move-result-object v0
const-string v1, "InetAddress.getAllByName(hostname)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v0}, Lkotlin/a/g;->toList([Ljava/lang/Object;)Ljava/util/List;
move-result-object p1
:try_end_0
.catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0
return-object p1
:catch_0
move-exception v0
new-instance v1, Ljava/net/UnknownHostException;
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
const-string v2, "Broken system behaviour for dns lookup of "
invoke-virtual {v2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-direct {v1, p1}, Ljava/net/UnknownHostException;-><init>(Ljava/lang/String;)V
check-cast v0, Ljava/lang/Throwable;
invoke-virtual {v1, v0}, Ljava/net/UnknownHostException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
check-cast v1, Ljava/lang/Throwable;
throw v1
.end method