117 lines
2.8 KiB
Smali
117 lines
2.8 KiB
Smali
|
.class final Lokio/j$3;
|
||
|
.super Lokio/a;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lokio/j;->d(Ljava/net/Socket;)Lokio/a;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x0
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final synthetic chb:Ljava/net/Socket;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Ljava/net/Socket;)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Lokio/j$3;->chb:Ljava/net/Socket;
|
||
|
|
||
|
invoke-direct {p0}, Lokio/a;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method protected final Iy()V
|
||
|
.locals 5
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lokio/j$3;->chb:Ljava/net/Socket;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/net/Socket;->close()V
|
||
|
:try_end_0
|
||
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
|
||
|
.catch Ljava/lang/AssertionError; {:try_start_0 .. :try_end_0} :catch_0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:catch_0
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-static {v0}, Lokio/j;->a(Ljava/lang/AssertionError;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
sget-object v1, Lokio/j;->logger:Ljava/util/logging/Logger;
|
||
|
|
||
|
sget-object v2, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level;
|
||
|
|
||
|
new-instance v3, Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v4, "Failed to close timed out socket "
|
||
|
|
||
|
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
iget-object v4, p0, Lokio/j$3;->chb:Ljava/net/Socket;
|
||
|
|
||
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-virtual {v1, v2, v3, v0}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
throw v0
|
||
|
|
||
|
:catch_1
|
||
|
move-exception v0
|
||
|
|
||
|
sget-object v1, Lokio/j;->logger:Ljava/util/logging/Logger;
|
||
|
|
||
|
sget-object v2, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level;
|
||
|
|
||
|
new-instance v3, Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v4, "Failed to close timed out socket "
|
||
|
|
||
|
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method protected final c(Ljava/io/IOException;)Ljava/io/IOException;
|
||
|
.locals 2
|
||
|
.param p1 # Ljava/io/IOException;
|
||
|
.annotation runtime Ljavax/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
new-instance v0, Ljava/net/SocketTimeoutException;
|
||
|
|
||
|
const-string v1, "timeout"
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/net/SocketTimeoutException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
invoke-virtual {v0, p1}, Ljava/io/InterruptedIOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
||
|
|
||
|
:cond_0
|
||
|
return-object v0
|
||
|
.end method
|