2022-06-10 21:38:30 +09:00

239 lines
5.0 KiB
Smali

.class public Ldg/m;
.super Ljava/lang/Object;
.source "CloseableHttpResponseProxy.java"
# interfaces
.implements Ljava/lang/reflect/InvocationHandler;
# annotations
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
.end annotation
# static fields
.field public static final b:Ljava/lang/reflect/Constructor;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/reflect/Constructor<",
"*>;"
}
.end annotation
.end field
# instance fields
.field public final a:Ldf/t;
# direct methods
.method public static constructor <clinit>()V
.locals 5
.line 1
:try_start_0
const-class v0, Ldg/m;
invoke-virtual {v0}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v0
const/4 v1, 0x1
new-array v2, v1, [Ljava/lang/Class;
const-class v3, Lkf/c;
const/4 v4, 0x0
aput-object v3, v2, v4
invoke-static {v0, v2}, Ljava/lang/reflect/Proxy;->getProxyClass(Ljava/lang/ClassLoader;[Ljava/lang/Class;)Ljava/lang/Class;
move-result-object v0
new-array v1, v1, [Ljava/lang/Class;
const-class v2, Ljava/lang/reflect/InvocationHandler;
aput-object v2, v1, v4
.line 2
invoke-virtual {v0, v1}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
move-result-object v0
sput-object v0, Ldg/m;->b:Ljava/lang/reflect/Constructor;
:try_end_0
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception v0
.line 3
new-instance v1, Ljava/lang/IllegalStateException;
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method public constructor <init>(Ldf/t;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Ldg/m;->a:Ldf/t;
return-void
.end method
.method public static b(Ldf/t;)Lkf/c;
.locals 4
.line 1
:try_start_0
sget-object v0, Ldg/m;->b:Ljava/lang/reflect/Constructor;
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
new-instance v3, Ldg/m;
invoke-direct {v3, p0}, Ldg/m;-><init>(Ldf/t;)V
aput-object v3, v1, v2
invoke-virtual {v0, v1}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Lkf/c;
:try_end_0
.catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_0} :catch_2
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
move-exception p0
.line 2
new-instance v0, Ljava/lang/IllegalStateException;
invoke-direct {v0, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/Throwable;)V
throw v0
:catch_1
move-exception p0
.line 3
new-instance v0, Ljava/lang/IllegalStateException;
invoke-direct {v0, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/Throwable;)V
throw v0
:catch_2
move-exception p0
.line 4
new-instance v0, Ljava/lang/IllegalStateException;
invoke-direct {v0, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/Throwable;)V
throw v0
.end method
# virtual methods
.method public a()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Ldg/m;->a:Ldf/t;
invoke-interface {v0}, Ldf/t;->getEntity()Ldf/l;
move-result-object v0
.line 2
invoke-static {v0}, Lqg/e;->a(Ldf/l;)V
return-void
.end method
.method public invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.line 1
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
move-result-object p1
const-string v0, "close"
.line 2
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
.line 3
invoke-virtual {p0}, Ldg/m;->a()V
const/4 p1, 0x0
return-object p1
.line 4
:cond_0
:try_start_0
iget-object p1, p0, Ldg/m;->a:Ldf/t;
invoke-virtual {p2, p1, p3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
:try_end_0
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
return-object p1
:catch_0
move-exception p1
.line 5
invoke-virtual {p1}, Ljava/lang/reflect/InvocationTargetException;->getCause()Ljava/lang/Throwable;
move-result-object p2
if-eqz p2, :cond_1
.line 6
throw p2
.line 7
:cond_1
throw p1
.end method