.class final Lokio/w; .super Lokio/d; .source "Okio.kt" # instance fields .field private final Ij:Ljava/util/logging/Logger; .field private final bvM:Ljava/net/Socket; # direct methods .method public constructor (Ljava/net/Socket;)V .locals 1 const-string v0, "socket" invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-direct {p0}, Lokio/d;->()V iput-object p1, p0, Lokio/w;->bvM:Ljava/net/Socket; const-string p1, "okio.Okio" invoke-static {p1}, Ljava/util/logging/Logger;->getLogger(Ljava/lang/String;)Ljava/util/logging/Logger; move-result-object p1 iput-object p1, p0, Lokio/w;->Ij:Ljava/util/logging/Logger; return-void .end method # virtual methods .method protected final Hf()V .locals 5 const-string v0, "Failed to close timed out socket " :try_start_0 iget-object v1, p0, Lokio/w;->bvM: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 return-void :catch_0 move-exception v1 invoke-static {v1}, Lokio/n;->a(Ljava/lang/AssertionError;)Z move-result v2 if-eqz v2, :cond_0 iget-object v2, p0, Lokio/w;->Ij:Ljava/util/logging/Logger; sget-object v3, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level; new-instance v4, Ljava/lang/StringBuilder; invoke-direct {v4, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-object v0, p0, Lokio/w;->bvM:Ljava/net/Socket; invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 check-cast v1, Ljava/lang/Throwable; invoke-virtual {v2, v3, v0, v1}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V return-void :cond_0 check-cast v1, Ljava/lang/Throwable; throw v1 :catch_1 move-exception v1 iget-object v2, p0, Lokio/w;->Ij:Ljava/util/logging/Logger; sget-object v3, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level; new-instance v4, Ljava/lang/StringBuilder; invoke-direct {v4, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-object v0, p0, Lokio/w;->bvM:Ljava/net/Socket; invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 check-cast v1, Ljava/lang/Throwable; invoke-virtual {v2, v3, v0, v1}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V return-void .end method .method protected final f(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;->(Ljava/lang/String;)V if-eqz p1, :cond_0 check-cast p1, Ljava/lang/Throwable; invoke-virtual {v0, p1}, Ljava/net/SocketTimeoutException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable; :cond_0 check-cast v0, Ljava/io/IOException; return-object v0 .end method