apkfuckery/com.discord/smali_classes2/b0/v.smali

132 lines
3.2 KiB
Smali
Raw Normal View History

2020-02-20 19:33:18 +00:00
.class public final Lb0/v;
.super Lb0/b;
2019-11-28 00:30:53 +00:00
.source "Okio.kt"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public final l:Ljava/util/logging/Logger;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final m:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
# direct methods
.method public constructor <init>(Ljava/net/Socket;)V
2019-12-06 03:29:40 +00:00
.locals 0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
invoke-direct {p0}, Lb0/b;-><init>()V
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
iput-object p1, p0, Lb0/v;->m:Ljava/net/Socket;
2019-11-28 00:30:53 +00:00
const-string p1, "okio.Okio"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p1}, Ljava/util/logging/Logger;->getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object p1
2020-02-20 19:33:18 +00:00
iput-object p1, p0, Lb0/v;->l:Ljava/util/logging/Logger;
2019-07-24 11:27:29 +00:00
return-void
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "socket"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
2019-07-24 11:27:29 +00:00
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public b(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
if-eqz p1, :cond_0
invoke-virtual {v0, p1}, Ljava/net/SocketTimeoutException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
:cond_0
return-object v0
.end method
.method public i()V
2019-07-24 11:27:29 +00:00
.locals 5
const-string v0, "Failed to close timed out socket "
:try_start_0
2020-02-20 19:33:18 +00:00
iget-object v1, p0, Lb0/v;->m:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:catch_0
move-exception v1
2020-02-20 19:33:18 +00:00
invoke-static {v1}, Lx/a/a2/w;->a(Ljava/lang/AssertionError;)Z
2019-07-24 11:27:29 +00:00
move-result v2
if-eqz v2, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v2, p0, Lb0/v;->l:Ljava/util/logging/Logger;
2019-07-24 11:27:29 +00:00
sget-object v3, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level;
2019-12-06 03:29:40 +00:00
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
iget-object v4, p0, Lb0/v;->m:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
throw v1
:catch_1
move-exception v1
2020-02-20 19:33:18 +00:00
iget-object v2, p0, Lb0/v;->l:Ljava/util/logging/Logger;
2019-07-24 11:27:29 +00:00
sget-object v3, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level;
2019-12-06 03:29:40 +00:00
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
iget-object v4, p0, Lb0/v;->m:Ljava/net/Socket;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-void
.end method