122 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			122 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .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 = 0x19
 | |
|     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 <init>()V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public lookup(Ljava/lang/String;)Ljava/util/List;
 | |
|     .locals 3
 | |
|     .param p1    # Ljava/lang/String;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Ljava/lang/String;",
 | |
|             ")",
 | |
|             "Ljava/util/List<",
 | |
|             "Ljava/net/InetAddress;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "hostname"
 | |
| 
 | |
|     invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     .line 1
 | |
|     :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/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
 | |
| 
 | |
|     invoke-static {v0}, Lkotlin/collections/ArraysKt___ArraysKt;->ey([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
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v1, Ljava/net/UnknownHostException;
 | |
| 
 | |
|     const-string v2, "Broken system behaviour for dns lookup of "
 | |
| 
 | |
|     invoke-static {v2, p1}, Lc/g;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-direct {v1, p1}, Ljava/net/UnknownHostException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v1, v0}, Ljava/net/UnknownHostException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
 | |
| 
 | |
|     .line 4
 | |
|     throw v1
 | |
| .end method
 |