apkfuckery/com.discord/smali_classes2/d0/w.smali

125 lines
3.1 KiB
Smali
Raw Normal View History

2020-11-12 02:11:44 +00:00
.class public final Ld0/w;
2020-11-14 03:19:56 +00:00
.super Ld0/b;
.source "JvmOkio.kt"
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
# instance fields
.field public final l:Ljava/util/logging/Logger;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
.field public final m:Ljava/net/Socket;
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
# direct methods
.method public constructor <init>(Ljava/net/Socket;)V
.locals 1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const-string v0, "socket"
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {p1, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ld0/b;-><init>()V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-object p1, p0, Ld0/w;->m:Ljava/net/Socket;
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
const-string p1, "okio.Okio"
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {p1}, Ljava/util/logging/Logger;->getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;
move-result-object p1
iput-object p1, p0, Ld0/w;->l:Ljava/util/logging/Logger;
2020-11-12 02:11:44 +00:00
return-void
.end method
# virtual methods
2020-11-14 03:19:56 +00:00
.method public k(Ljava/io/IOException;)Ljava/io/IOException;
.locals 2
new-instance v0, Ljava/net/SocketTimeoutException;
const-string v1, "timeout"
invoke-direct {v0, v1}, Ljava/net/SocketTimeoutException;-><init>(Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz p1, :cond_0
2020-11-13 01:15:36 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v0, p1}, Ljava/net/SocketTimeoutException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
:cond_0
2020-11-12 02:11:44 +00:00
return-object v0
.end method
2020-11-14 03:19:56 +00:00
.method public l()V
.locals 5
const-string v0, "Failed to close timed out socket "
:try_start_0
iget-object v1, p0, Ld0/w;->m:Ljava/net/Socket;
invoke-virtual {v1}, 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
goto :goto_0
:catch_0
move-exception v1
invoke-static {v1}, Lz/a/g0;->s(Ljava/lang/AssertionError;)Z
move-result v2
if-eqz v2, :cond_0
iget-object v2, p0, Ld0/w;->l:Ljava/util/logging/Logger;
sget-object v3, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level;
invoke-static {v0}, Lf/e/c/a/a;->F(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v4, p0, Ld0/w;->m:Ljava/net/Socket;
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v3, v0, v1}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
goto :goto_0
:cond_0
throw v1
:catch_1
move-exception v1
iget-object v2, p0, Ld0/w;->l:Ljava/util/logging/Logger;
sget-object v3, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level;
invoke-static {v0}, Lf/e/c/a/a;->F(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v4, p0, Ld0/w;->m:Ljava/net/Socket;
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v3, v0, v1}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
:goto_0
return-void
.end method