apkfuckery/com.discord/smali_classes2/n0/r$a.smali

89 lines
2 KiB
Smali
Raw Normal View History

2020-07-08 16:44:49 +00:00
.class public final Ln0/r$a;
2020-05-17 12:40:10 +00:00
.super Ljava/lang/Object;
.source "Dns.kt"
# interfaces
2020-07-08 16:44:49 +00:00
.implements Ln0/s;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Ln0/r;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
2020-05-17 12:40:10 +00:00
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public a(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
if-eqz p1, :cond_0
: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)"
2020-07-08 16:44:49 +00:00
invoke-static {v0, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {v0}, Lf/i/a/b/i1/e;->toList([Ljava/lang/Object;)Ljava/util/List;
2020-05-17 12:40:10 +00:00
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;
const-string v2, "Broken system behaviour for dns lookup of "
2020-07-08 16:44:49 +00:00
invoke-static {v2, p1}, Lf/e/b/a/a;->p(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
move-result-object p1
invoke-direct {v1, p1}, Ljava/net/UnknownHostException;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, v0}, Ljava/net/UnknownHostException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
throw v1
:cond_0
const-string p1, "hostname"
2020-07-08 16:44:49 +00:00
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
const/4 p1, 0x0
throw p1
.end method