2020-09-22 07:09:10 +00:00
|
|
|
.class public final Lg0/s;
|
2020-07-23 01:06:17 +00:00
|
|
|
.super Ljava/lang/Object;
|
2020-10-05 23:18:16 +00:00
|
|
|
.source "Dns.kt"
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
# interfaces
|
|
|
|
.implements Lg0/t;
|
2020-07-23 01:06:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-09-16 23:45:23 +00:00
|
|
|
.method public constructor <init>()V
|
2020-10-05 23:18:16 +00:00
|
|
|
.locals 0
|
2020-07-23 01:06:17 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
2020-07-23 01:06:17 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
# virtual methods
|
2020-10-05 23:18:16 +00:00
|
|
|
.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
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
const-string v0, "hostname"
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:try_start_0
|
|
|
|
invoke-static {p1}, Ljava/net/InetAddress;->getAllByName(Ljava/lang/String;)[Ljava/net/InetAddress;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result-object v0
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
const-string v1, "InetAddress.getAllByName(hostname)"
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v0}, Lf/h/a/f/f/n/f;->toList([Ljava/lang/Object;)Ljava/util/List;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result-object p1
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0
|
2020-09-29 21:44:44 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
:catch_0
|
|
|
|
move-exception v0
|
2020-09-29 21:44:44 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
new-instance v1, Ljava/net/UnknownHostException;
|
2020-09-29 21:44:44 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
const-string v2, "Broken system behaviour for dns lookup of "
|
2020-09-29 21:44:44 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v2, p1}, Lf/e/c/a/a;->q(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
2020-09-29 21:44:44 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
move-result-object p1
|
2020-09-29 21:44:44 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-direct {v1, p1}, Ljava/net/UnknownHostException;-><init>(Ljava/lang/String;)V
|
2020-09-29 21:44:44 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-virtual {v1, v0}, Ljava/net/UnknownHostException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
2020-09-29 21:44:44 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
throw v1
|
2020-07-23 01:06:17 +00:00
|
|
|
.end method
|