.class final Lokhttp3/Dns$Companion$DnsSystem; .super Ljava/lang/Object; .source "Dns.kt" # interfaces .implements Lokhttp3/Dns; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lokhttp3/Dns$Companion; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x1a name = "DnsSystem" .end annotation .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\u0008\u0002\u0018\u00002\u00020\u0001B\u0005\u00a2\u0006\u0002\u0010\u0002J\u0016\u0010\u0003\u001a\u0008\u0012\u0004\u0012\u00020\u00050\u00042\u0006\u0010\u0006\u001a\u00020\u0007H\u0016\u00a8\u0006\u0008" } d2 = { "Lokhttp3/Dns$Companion$DnsSystem;", "Lokhttp3/Dns;", "()V", "lookup", "", "Ljava/net/InetAddress;", "hostname", "", "okhttp" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # direct methods .method public constructor ()V .locals 0 .line 46 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public lookup(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 p0, "hostname" invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 49 :try_start_0 invoke-static {p1}, Ljava/net/InetAddress;->getAllByName(Ljava/lang/String;)[Ljava/net/InetAddress; move-result-object p0 const-string v0, "InetAddress.getAllByName(hostname)" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-static {p0}, Lkotlin/collections/ArraysKt;->toList([Ljava/lang/Object;)Ljava/util/List; move-result-object p0 :try_end_0 .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0 return-object p0 :catch_0 move-exception p0 .line 51 new-instance v0, Ljava/net/UnknownHostException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "Broken system behaviour for dns lookup of " invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {v0, p1}, Ljava/net/UnknownHostException;->(Ljava/lang/String;)V .line 52 check-cast p0, Ljava/lang/Throwable; invoke-virtual {v0, p0}, Ljava/net/UnknownHostException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable; .line 51 check-cast v0, Ljava/lang/Throwable; throw v0 .end method