c.smali
.class public final Lretrofit2/converter/protobuf/c;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lretrofit2/j;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T::",
"Lcom/google/protobuf/o1;",
">",
"Ljava/lang/Object;",
"Lretrofit2/j<",
"Lokhttp3/ResponseBody;",
"TT;>;"
}
.end annotation
# instance fields
.field public final a:Lcom/google/protobuf/f2;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/protobuf/f2<",
"TT;>;"
}
.end annotation
.end field
.field public final b:Lcom/google/protobuf/d0;
# direct methods
.method public constructor <init>(Lcom/google/protobuf/f2;Lcom/google/protobuf/d0;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/protobuf/f2<",
"TT;>;",
"Lcom/google/protobuf/d0;",
")V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lretrofit2/converter/protobuf/c;->a:Lcom/google/protobuf/f2;
.line 3
iput-object p2, p0, Lretrofit2/converter/protobuf/c;->b:Lcom/google/protobuf/d0;
return-void
.end method
# virtual methods
.method public final convert(Ljava/lang/Object;)Ljava/lang/Object;
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
check-cast p1, Lokhttp3/ResponseBody;
.line 2
:try_start_2
iget-object v0, p0, Lretrofit2/converter/protobuf/c;->a:Lcom/google/protobuf/f2;
invoke-virtual {p1}, Lokhttp3/ResponseBody;->byteStream()Ljava/io/InputStream;
move-result-object v1
iget-object v2, p0, Lretrofit2/converter/protobuf/c;->b:Lcom/google/protobuf/d0;
invoke-interface {v0, v1, v2}, Lcom/google/protobuf/f2;->parseFrom(Ljava/io/InputStream;Lcom/google/protobuf/d0;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/protobuf/o1;
:try_end_10
.catch Lcom/google/protobuf/t0; {:try_start_2 .. :try_end_10} :catch_16
.catchall {:try_start_2 .. :try_end_10} :catchall_14
.line 3
invoke-virtual {p1}, Lokhttp3/ResponseBody;->close()V
return-object v0
:catchall_14
move-exception v0
goto :goto_1d
:catch_16
move-exception v0
.line 4
:try_start_17
new-instance v1, Ljava/lang/RuntimeException;
invoke-direct {v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw v1
:try_end_1d
.catchall {:try_start_17 .. :try_end_1d} :catchall_14
.line 5
:goto_1d
invoke-virtual {p1}, Lokhttp3/ResponseBody;->close()V
throw v0
.end method