1791 lines
48 KiB
Smali
1791 lines
48 KiB
Smali
.class public Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;
|
|
.super Lcom/thoughtworks/xstream/converters/reflection/SerializableConverter;
|
|
.source "CGLIBEnhancedConverter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter$ReverseEngineeredCallbackFilter;,
|
|
Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter$ReverseEngineeringInvocationHandler;,
|
|
Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter$CGLIBFilteringReflectionProvider;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static CALLBACK_MARKER:Ljava/lang/String; = "CGLIB$CALLBACK_"
|
|
|
|
.field private static DEFAULT_NAMING_MARKER:Ljava/lang/String; = "$$EnhancerByCGLIB$$"
|
|
|
|
|
|
# instance fields
|
|
.field private transient fieldCache:Ljava/util/Map;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/thoughtworks/xstream/mapper/Mapper;Lcom/thoughtworks/xstream/converters/reflection/ReflectionProvider;)V
|
|
.locals 1
|
|
|
|
.line 5
|
|
new-instance v0, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter$CGLIBFilteringReflectionProvider;
|
|
|
|
invoke-direct {v0, p2}, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter$CGLIBFilteringReflectionProvider;-><init>(Lcom/thoughtworks/xstream/converters/reflection/ReflectionProvider;)V
|
|
|
|
const-class p2, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p0, p1, v0, p2}, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;-><init>(Lcom/thoughtworks/xstream/mapper/Mapper;Lcom/thoughtworks/xstream/converters/reflection/ReflectionProvider;Ljava/lang/ClassLoader;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/thoughtworks/xstream/mapper/Mapper;Lcom/thoughtworks/xstream/converters/reflection/ReflectionProvider;Lcom/thoughtworks/xstream/core/ClassLoaderReference;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter$CGLIBFilteringReflectionProvider;
|
|
|
|
invoke-direct {v0, p2}, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter$CGLIBFilteringReflectionProvider;-><init>(Lcom/thoughtworks/xstream/converters/reflection/ReflectionProvider;)V
|
|
|
|
invoke-direct {p0, p1, v0, p3}, Lcom/thoughtworks/xstream/converters/reflection/SerializableConverter;-><init>(Lcom/thoughtworks/xstream/mapper/Mapper;Lcom/thoughtworks/xstream/converters/reflection/ReflectionProvider;Lcom/thoughtworks/xstream/core/ClassLoaderReference;)V
|
|
|
|
.line 2
|
|
new-instance p1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;->fieldCache:Ljava/util/Map;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/thoughtworks/xstream/mapper/Mapper;Lcom/thoughtworks/xstream/converters/reflection/ReflectionProvider;Ljava/lang/ClassLoader;)V
|
|
.locals 1
|
|
|
|
.line 3
|
|
new-instance v0, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter$CGLIBFilteringReflectionProvider;
|
|
|
|
invoke-direct {v0, p2}, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter$CGLIBFilteringReflectionProvider;-><init>(Lcom/thoughtworks/xstream/converters/reflection/ReflectionProvider;)V
|
|
|
|
invoke-direct {p0, p1, v0, p3}, Lcom/thoughtworks/xstream/converters/reflection/SerializableConverter;-><init>(Lcom/thoughtworks/xstream/mapper/Mapper;Lcom/thoughtworks/xstream/converters/reflection/ReflectionProvider;Ljava/lang/ClassLoader;)V
|
|
|
|
.line 4
|
|
new-instance p1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;->fieldCache:Ljava/util/Map;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private create(Lnet/sf/cglib/proxy/Enhancer;Ljava/util/List;Z)Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Lnet/sf/cglib/proxy/Enhancer;->create()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 2
|
|
move-object p3, p1
|
|
|
|
check-cast p3, Lnet/sf/cglib/proxy/Factory;
|
|
|
|
invoke-interface {p2}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
new-array v0, v0, [Lnet/sf/cglib/proxy/Callback;
|
|
|
|
invoke-interface {p2, v0}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, [Lnet/sf/cglib/proxy/Callback;
|
|
|
|
check-cast p2, [Lnet/sf/cglib/proxy/Callback;
|
|
|
|
invoke-interface {p3, p2}, Lnet/sf/cglib/proxy/Factory;->setCallbacks([Lnet/sf/cglib/proxy/Callback;)V
|
|
|
|
:cond_0
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private createCallbackIndexMap(Lnet/sf/cglib/proxy/Factory;)Ljava/util/Map;
|
|
.locals 12
|
|
|
|
.line 1
|
|
invoke-interface {p1}, Lnet/sf/cglib/proxy/Factory;->getCallbacks()[Lnet/sf/cglib/proxy/Callback;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
array-length v1, v0
|
|
|
|
new-array v1, v1, [Lnet/sf/cglib/proxy/Callback;
|
|
|
|
.line 3
|
|
new-instance v2, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v2}, Ljava/util/HashMap;-><init>()V
|
|
|
|
const/4 v3, -0x1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
.line 4
|
|
:goto_0
|
|
array-length v5, v0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
if-ge v4, v5, :cond_2
|
|
|
|
.line 5
|
|
aget-object v5, v0, v4
|
|
|
|
if-nez v5, :cond_0
|
|
|
|
.line 6
|
|
aput-object v6, v1, v4
|
|
|
|
goto :goto_1
|
|
|
|
.line 7
|
|
:cond_0
|
|
const-class v6, Lnet/sf/cglib/proxy/NoOp;
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
.line 8
|
|
sget-object v3, Lnet/sf/cglib/proxy/NoOp;->INSTANCE:Lnet/sf/cglib/proxy/NoOp;
|
|
|
|
aput-object v3, v1, v4
|
|
|
|
move v3, v4
|
|
|
|
goto :goto_1
|
|
|
|
.line 9
|
|
:cond_1
|
|
invoke-direct {p0, v5, v4, v2}, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;->createReverseEngineeredCallbackOfProperType(Lnet/sf/cglib/proxy/Callback;ILjava/util/Map;)Lnet/sf/cglib/proxy/Callback;
|
|
|
|
move-result-object v5
|
|
|
|
aput-object v5, v1, v4
|
|
|
|
:goto_1
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 10
|
|
:cond_2
|
|
:try_start_0
|
|
invoke-interface {p1, v1}, Lnet/sf/cglib/proxy/Factory;->setCallbacks([Lnet/sf/cglib/proxy/Callback;)V
|
|
|
|
.line 11
|
|
new-instance v1, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v1}, Ljava/util/HashSet;-><init>()V
|
|
|
|
.line 12
|
|
new-instance v4, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v4}, Ljava/util/HashSet;-><init>()V
|
|
|
|
.line 13
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v5
|
|
|
|
.line 14
|
|
:cond_3
|
|
invoke-virtual {v5}, Ljava/lang/Class;->getDeclaredMethods()[Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-static {v7}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-interface {v4, v7}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z
|
|
|
|
.line 15
|
|
invoke-virtual {v5}, Ljava/lang/Class;->getMethods()[Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-static {v7}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-interface {v4, v7}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z
|
|
|
|
.line 16
|
|
invoke-virtual {v5}, Ljava/lang/Class;->getInterfaces()[Ljava/lang/Class;
|
|
|
|
move-result-object v7
|
|
|
|
.line 17
|
|
invoke-static {v7}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-interface {v1, v7}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z
|
|
|
|
.line 18
|
|
invoke-virtual {v5}, Ljava/lang/Class;->getSuperclass()Ljava/lang/Class;
|
|
|
|
move-result-object v5
|
|
|
|
if-nez v5, :cond_3
|
|
|
|
.line 19
|
|
invoke-virtual {v1}, Ljava/util/HashSet;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_2
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_4
|
|
|
|
.line 20
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Ljava/lang/Class;
|
|
|
|
.line 21
|
|
invoke-virtual {v5}, Ljava/lang/Class;->getDeclaredMethods()[Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-static {v7}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-interface {v4, v7}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z
|
|
|
|
goto :goto_2
|
|
|
|
.line 22
|
|
:cond_4
|
|
invoke-virtual {v4}, Ljava/util/HashSet;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_5
|
|
:goto_3
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_a
|
|
|
|
.line 23
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v7
|
|
|
|
check-cast v7, Ljava/lang/reflect/Method;
|
|
|
|
const/4 v8, 0x1
|
|
|
|
.line 24
|
|
invoke-virtual {v7, v8}, Ljava/lang/reflect/Method;->setAccessible(Z)V
|
|
|
|
.line 25
|
|
const-class v8, Lnet/sf/cglib/proxy/Factory;
|
|
|
|
invoke-virtual {v7}, Ljava/lang/reflect/Method;->getDeclaringClass()Ljava/lang/Class;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-virtual {v8, v9}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v8
|
|
|
|
if-nez v8, :cond_9
|
|
|
|
invoke-virtual {v7}, Ljava/lang/reflect/Method;->getModifiers()I
|
|
|
|
move-result v8
|
|
|
|
and-int/lit8 v8, v8, 0x18
|
|
|
|
if-lez v8, :cond_6
|
|
|
|
goto/16 :goto_8
|
|
|
|
.line 26
|
|
:cond_6
|
|
invoke-virtual {v7}, Ljava/lang/reflect/Method;->getParameterTypes()[Ljava/lang/Class;
|
|
|
|
move-result-object v8
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 27
|
|
:try_start_1
|
|
invoke-virtual {v7}, Ljava/lang/reflect/Method;->getModifiers()I
|
|
|
|
move-result v9
|
|
|
|
and-int/lit16 v9, v9, 0x400
|
|
|
|
if-lez v9, :cond_7
|
|
|
|
.line 28
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-virtual {v7}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v10
|
|
|
|
invoke-virtual {v7}, Ljava/lang/reflect/Method;->getParameterTypes()[Ljava/lang/Class;
|
|
|
|
move-result-object v11
|
|
|
|
invoke-virtual {v9, v10, v11}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v9
|
|
:try_end_1
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_1 .. :try_end_1} :catch_3
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_1 .. :try_end_1} :catch_2
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
move-object v9, v7
|
|
|
|
.line 29
|
|
:goto_4
|
|
:try_start_2
|
|
invoke-virtual {v2, v6, v7}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
if-nez v8, :cond_8
|
|
|
|
move-object v8, v6
|
|
|
|
goto :goto_5
|
|
|
|
.line 30
|
|
:cond_8
|
|
invoke-direct {p0, v8}, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;->createNullArguments([Ljava/lang/Class;)[Ljava/lang/Object;
|
|
|
|
move-result-object v8
|
|
|
|
:goto_5
|
|
invoke-virtual {v9, p1, v8}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_2
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_2 .. :try_end_2} :catch_0
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_2 .. :try_end_2} :catch_2
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_2 .. :try_end_2} :catch_1
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
goto :goto_6
|
|
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
move-object v7, v9
|
|
|
|
goto :goto_7
|
|
|
|
.line 31
|
|
:catch_1
|
|
:try_start_3
|
|
new-instance v1, Lcom/thoughtworks/xstream/converters/ConversionException;
|
|
|
|
const-string v2, "CGLIB enhanced proxies wit abstract nethod that has not been implemented"
|
|
|
|
invoke-direct {v1, v2}, Lcom/thoughtworks/xstream/converters/ConversionException;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v2, "proxy superclass"
|
|
|
|
.line 32
|
|
invoke-virtual {v5}, Ljava/lang/Class;->getSuperclass()Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v1, v2, v3}, Lcom/thoughtworks/xstream/converters/ConversionException;->add(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string v2, "method"
|
|
|
|
.line 33
|
|
invoke-virtual {v7}, Ljava/lang/reflect/Method;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v1, v2, v3}, Lcom/thoughtworks/xstream/converters/ConversionException;->add(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 34
|
|
throw v1
|
|
|
|
.line 35
|
|
:catch_2
|
|
:goto_6
|
|
invoke-virtual {v2, v7}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_5
|
|
|
|
.line 36
|
|
invoke-interface {v1}, Ljava/util/Iterator;->remove()V
|
|
|
|
goto :goto_3
|
|
|
|
:catch_3
|
|
move-exception v1
|
|
|
|
.line 37
|
|
:goto_7
|
|
new-instance v2, Lcom/thoughtworks/xstream/converters/reflection/ObjectAccessException;
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v4, "Access to "
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v4, " not allowed"
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-direct {v2, v3, v1}, Lcom/thoughtworks/xstream/converters/reflection/ObjectAccessException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v2
|
|
|
|
.line 38
|
|
:cond_9
|
|
:goto_8
|
|
invoke-interface {v1}, Ljava/util/Iterator;->remove()V
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_a
|
|
if-ltz v3, :cond_b
|
|
|
|
.line 39
|
|
new-instance v1, Ljava/lang/Integer;
|
|
|
|
invoke-direct {v1, v3}, Ljava/lang/Integer;-><init>(I)V
|
|
|
|
.line 40
|
|
invoke-virtual {v4}, Ljava/util/HashSet;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v3
|
|
|
|
:goto_9
|
|
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_b
|
|
|
|
.line 41
|
|
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v2, v4, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
goto :goto_9
|
|
|
|
.line 42
|
|
:cond_b
|
|
invoke-interface {p1, v0}, Lnet/sf/cglib/proxy/Factory;->setCallbacks([Lnet/sf/cglib/proxy/Callback;)V
|
|
|
|
.line 43
|
|
invoke-virtual {v2, v6}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-object v2
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 44
|
|
invoke-interface {p1, v0}, Lnet/sf/cglib/proxy/Factory;->setCallbacks([Lnet/sf/cglib/proxy/Callback;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method private createNullArguments([Ljava/lang/Class;)[Ljava/lang/Object;
|
|
.locals 7
|
|
|
|
.line 1
|
|
array-length v0, p1
|
|
|
|
new-array v1, v0, [Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
move v3, v2
|
|
|
|
:goto_0
|
|
if-ge v3, v0, :cond_8
|
|
|
|
.line 2
|
|
aget-object v4, p1, v3
|
|
|
|
.line 3
|
|
invoke-virtual {v4}, Ljava/lang/Class;->isPrimitive()Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_7
|
|
|
|
.line 4
|
|
sget-object v5, Ljava/lang/Byte;->TYPE:Ljava/lang/Class;
|
|
|
|
if-ne v4, v5, :cond_0
|
|
|
|
.line 5
|
|
new-instance v4, Ljava/lang/Byte;
|
|
|
|
invoke-direct {v4, v2}, Ljava/lang/Byte;-><init>(B)V
|
|
|
|
aput-object v4, v1, v3
|
|
|
|
goto :goto_1
|
|
|
|
.line 6
|
|
:cond_0
|
|
sget-object v5, Ljava/lang/Short;->TYPE:Ljava/lang/Class;
|
|
|
|
if-ne v4, v5, :cond_1
|
|
|
|
.line 7
|
|
new-instance v4, Ljava/lang/Short;
|
|
|
|
invoke-direct {v4, v2}, Ljava/lang/Short;-><init>(S)V
|
|
|
|
aput-object v4, v1, v3
|
|
|
|
goto :goto_1
|
|
|
|
.line 8
|
|
:cond_1
|
|
sget-object v5, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
|
|
|
|
if-ne v4, v5, :cond_2
|
|
|
|
.line 9
|
|
new-instance v4, Ljava/lang/Integer;
|
|
|
|
invoke-direct {v4, v2}, Ljava/lang/Integer;-><init>(I)V
|
|
|
|
aput-object v4, v1, v3
|
|
|
|
goto :goto_1
|
|
|
|
.line 10
|
|
:cond_2
|
|
sget-object v5, Ljava/lang/Long;->TYPE:Ljava/lang/Class;
|
|
|
|
if-ne v4, v5, :cond_3
|
|
|
|
.line 11
|
|
new-instance v4, Ljava/lang/Long;
|
|
|
|
const-wide/16 v5, 0x0
|
|
|
|
invoke-direct {v4, v5, v6}, Ljava/lang/Long;-><init>(J)V
|
|
|
|
aput-object v4, v1, v3
|
|
|
|
goto :goto_1
|
|
|
|
.line 12
|
|
:cond_3
|
|
sget-object v5, Ljava/lang/Float;->TYPE:Ljava/lang/Class;
|
|
|
|
if-ne v4, v5, :cond_4
|
|
|
|
.line 13
|
|
new-instance v4, Ljava/lang/Float;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-direct {v4, v5}, Ljava/lang/Float;-><init>(F)V
|
|
|
|
aput-object v4, v1, v3
|
|
|
|
goto :goto_1
|
|
|
|
.line 14
|
|
:cond_4
|
|
sget-object v5, Ljava/lang/Double;->TYPE:Ljava/lang/Class;
|
|
|
|
if-ne v4, v5, :cond_5
|
|
|
|
.line 15
|
|
new-instance v4, Ljava/lang/Double;
|
|
|
|
const-wide/16 v5, 0x0
|
|
|
|
invoke-direct {v4, v5, v6}, Ljava/lang/Double;-><init>(D)V
|
|
|
|
aput-object v4, v1, v3
|
|
|
|
goto :goto_1
|
|
|
|
.line 16
|
|
:cond_5
|
|
sget-object v5, Ljava/lang/Character;->TYPE:Ljava/lang/Class;
|
|
|
|
if-ne v4, v5, :cond_6
|
|
|
|
.line 17
|
|
new-instance v4, Ljava/lang/Character;
|
|
|
|
invoke-direct {v4, v2}, Ljava/lang/Character;-><init>(C)V
|
|
|
|
aput-object v4, v1, v3
|
|
|
|
goto :goto_1
|
|
|
|
.line 18
|
|
:cond_6
|
|
sget-object v4, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
|
|
|
|
aput-object v4, v1, v3
|
|
|
|
:cond_7
|
|
:goto_1
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_8
|
|
return-object v1
|
|
.end method
|
|
|
|
.method private createReverseEngineeredCallbackOfProperType(Lnet/sf/cglib/proxy/Callback;ILjava/util/Map;)Lnet/sf/cglib/proxy/Callback;
|
|
.locals 7
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getInterfaces()[Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
move v3, v1
|
|
|
|
.line 2
|
|
:goto_0
|
|
array-length v4, v0
|
|
|
|
const/4 v5, 0x1
|
|
|
|
if-ge v3, v4, :cond_3
|
|
|
|
.line 3
|
|
const-class v4, Lnet/sf/cglib/proxy/Callback;
|
|
|
|
aget-object v6, v0, v3
|
|
|
|
invoke-virtual {v4, v6}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
.line 4
|
|
aget-object v2, v0, v3
|
|
|
|
.line 5
|
|
const-class v0, Lnet/sf/cglib/proxy/Callback;
|
|
|
|
if-eq v2, v0, :cond_1
|
|
|
|
.line 6
|
|
invoke-virtual {v2}, Ljava/lang/Class;->getInterfaces()[Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v3
|
|
|
|
const-class v4, Lnet/sf/cglib/proxy/Callback;
|
|
|
|
invoke-interface {v3, v4}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
const/4 v3, -0x1
|
|
|
|
goto :goto_1
|
|
|
|
.line 8
|
|
:cond_1
|
|
new-instance p2, Lcom/thoughtworks/xstream/converters/ConversionException;
|
|
|
|
const-string p3, "Cannot handle CGLIB callback"
|
|
|
|
invoke-direct {p2, p3}, Lcom/thoughtworks/xstream/converters/ConversionException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 9
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p3, "CGLIB callback type"
|
|
|
|
invoke-virtual {p2, p3, p1}, Lcom/thoughtworks/xstream/converters/ConversionException;->add(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 10
|
|
throw p2
|
|
|
|
:cond_2
|
|
:goto_1
|
|
add-int/2addr v3, v5
|
|
|
|
goto :goto_0
|
|
|
|
.line 11
|
|
:cond_3
|
|
:goto_2
|
|
invoke-virtual {v2}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object p1
|
|
|
|
new-array v0, v5, [Ljava/lang/Class;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
new-instance v1, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter$ReverseEngineeringInvocationHandler;
|
|
|
|
invoke-direct {v1, p2, p3}, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter$ReverseEngineeringInvocationHandler;-><init>(ILjava/util/Map;)V
|
|
|
|
invoke-static {p1, v0, v1}, Ljava/lang/reflect/Proxy;->newProxyInstance(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lnet/sf/cglib/proxy/Callback;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private getCallbacks(Ljava/lang/Object;)[Lnet/sf/cglib/proxy/Callback;
|
|
.locals 6
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
iget-object v1, p0, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;->fieldCache:Ljava/util/Map;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/util/List;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 3
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 4
|
|
iget-object v3, p0, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;->fieldCache:Ljava/util/Map;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v3, v4, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move v3, v2
|
|
|
|
.line 5
|
|
:goto_0
|
|
:try_start_0
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
sget-object v5, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;->CALLBACK_MARKER:Ljava/lang/String;
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v0, v4}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
|
|
|
move-result-object v4
|
|
|
|
const/4 v5, 0x1
|
|
|
|
.line 6
|
|
invoke-virtual {v4, v5}, Ljava/lang/reflect/Field;->setAccessible(Z)V
|
|
|
|
.line 7
|
|
invoke-virtual {v1, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
:try_end_0
|
|
.catch Ljava/lang/NoSuchFieldException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:catch_0
|
|
:cond_0
|
|
new-instance v3, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 9
|
|
:goto_1
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
if-ge v2, v4, :cond_1
|
|
|
|
.line 10
|
|
:try_start_1
|
|
invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Ljava/lang/reflect/Field;
|
|
|
|
.line 11
|
|
invoke-virtual {v4, p1}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
.line 12
|
|
invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
:try_end_1
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
.line 13
|
|
new-instance v1, Lcom/thoughtworks/xstream/converters/reflection/ObjectAccessException;
|
|
|
|
const-string v3, "Access to "
|
|
|
|
invoke-static {v3}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "."
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
sget-object v0, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;->CALLBACK_MARKER:Ljava/lang/String;
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, " not allowed"
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v1, v0, p1}, Lcom/thoughtworks/xstream/converters/reflection/ObjectAccessException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
|
|
.line 14
|
|
:cond_1
|
|
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result p1
|
|
|
|
new-array p1, p1, [Lnet/sf/cglib/proxy/Callback;
|
|
|
|
invoke-virtual {v3, p1}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, [Lnet/sf/cglib/proxy/Callback;
|
|
|
|
check-cast p1, [Lnet/sf/cglib/proxy/Callback;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private readCallback(Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;Lcom/thoughtworks/xstream/converters/UnmarshallingContext;Ljava/util/List;Ljava/util/List;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/thoughtworks/xstream/converters/reflection/AbstractReflectionConverter;->mapper:Lcom/thoughtworks/xstream/mapper/Mapper;
|
|
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->getNodeName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {v0, p1}, Lcom/thoughtworks/xstream/mapper/Mapper;->realClass(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-interface {p2, v0, p1}, Lcom/thoughtworks/xstream/converters/UnmarshallingContext;->convertAnother(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lnet/sf/cglib/proxy/Callback;
|
|
|
|
.line 2
|
|
invoke-interface {p4, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 3
|
|
sget-object p1, Lnet/sf/cglib/proxy/NoOp;->INSTANCE:Lnet/sf/cglib/proxy/NoOp;
|
|
|
|
invoke-interface {p3, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 4
|
|
:cond_0
|
|
invoke-interface {p3, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private readResolve()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;->fieldCache:Ljava/util/Map;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public canConvert(Ljava/lang/Class;)Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-static {p1}, Lnet/sf/cglib/proxy/Enhancer;->isEnhanced(Ljava/lang/Class;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;->DEFAULT_NAMING_MARKER:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I
|
|
|
|
move-result v0
|
|
|
|
if-gtz v0, :cond_1
|
|
|
|
:cond_0
|
|
const-class v0, Lcom/thoughtworks/xstream/mapper/CGLIBMapper$Marker;
|
|
|
|
if-ne p1, v0, :cond_2
|
|
|
|
:cond_1
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public hierarchyFor(Ljava/lang/Class;)Ljava/util/List;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Lcom/thoughtworks/xstream/converters/reflection/SerializableConverter;->hierarchyFor(Ljava/lang/Class;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
.line 2
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public marshal(Ljava/lang/Object;Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;Lcom/thoughtworks/xstream/converters/MarshallingContext;)V
|
|
.locals 10
|
|
|
|
const-string v0, "serialVersionUID"
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
.line 2
|
|
const-class v2, Lnet/sf/cglib/proxy/Factory;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v2
|
|
|
|
const-string/jumbo v3, "type"
|
|
|
|
.line 3
|
|
invoke-static {p2, v3, v1}, Lcom/thoughtworks/xstream/io/ExtendedHierarchicalStreamWriterHelper;->startNode(Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;Ljava/lang/String;Ljava/lang/Class;)V
|
|
|
|
.line 4
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getSuperclass()Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {p3, v3}, Lcom/thoughtworks/xstream/converters/MarshallingContext;->convertAnother(Ljava/lang/Object;)V
|
|
|
|
.line 5
|
|
invoke-interface {p2}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->endNode()V
|
|
|
|
const-string v3, "interfaces"
|
|
|
|
.line 6
|
|
invoke-interface {p2, v3}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->startNode(Ljava/lang/String;)V
|
|
|
|
.line 7
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getInterfaces()[Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
move v5, v4
|
|
|
|
.line 8
|
|
:goto_0
|
|
array-length v6, v3
|
|
|
|
if-ge v5, v6, :cond_1
|
|
|
|
.line 9
|
|
aget-object v6, v3, v5
|
|
|
|
const-class v7, Lnet/sf/cglib/proxy/Factory;
|
|
|
|
if-ne v6, v7, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 10
|
|
:cond_0
|
|
iget-object v6, p0, Lcom/thoughtworks/xstream/converters/reflection/AbstractReflectionConverter;->mapper:Lcom/thoughtworks/xstream/mapper/Mapper;
|
|
|
|
aget-object v7, v3, v5
|
|
|
|
invoke-virtual {v7}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-interface {v6, v7}, Lcom/thoughtworks/xstream/mapper/Mapper;->serializedClass(Ljava/lang/Class;)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
aget-object v7, v3, v5
|
|
|
|
invoke-virtual {v7}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-static {p2, v6, v7}, Lcom/thoughtworks/xstream/io/ExtendedHierarchicalStreamWriterHelper;->startNode(Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;Ljava/lang/String;Ljava/lang/Class;)V
|
|
|
|
.line 11
|
|
aget-object v6, v3, v5
|
|
|
|
invoke-interface {p3, v6}, Lcom/thoughtworks/xstream/converters/MarshallingContext;->convertAnother(Ljava/lang/Object;)V
|
|
|
|
.line 12
|
|
invoke-interface {p2}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->endNode()V
|
|
|
|
:goto_1
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 13
|
|
:cond_1
|
|
invoke-interface {p2}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->endNode()V
|
|
|
|
const-string v3, "hasFactory"
|
|
|
|
.line 14
|
|
invoke-interface {p2, v3}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->startNode(Ljava/lang/String;)V
|
|
|
|
.line 15
|
|
invoke-static {v2}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {p2, v3}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->setValue(Ljava/lang/String;)V
|
|
|
|
.line 16
|
|
invoke-interface {p2}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->endNode()V
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 17
|
|
move-object v3, p1
|
|
|
|
check-cast v3, Lnet/sf/cglib/proxy/Factory;
|
|
|
|
invoke-interface {v3}, Lnet/sf/cglib/proxy/Factory;->getCallbacks()[Lnet/sf/cglib/proxy/Callback;
|
|
|
|
move-result-object v3
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
invoke-direct {p0, p1}, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;->getCallbacks(Ljava/lang/Object;)[Lnet/sf/cglib/proxy/Callback;
|
|
|
|
move-result-object v3
|
|
|
|
.line 18
|
|
:goto_2
|
|
array-length v5, v3
|
|
|
|
const/4 v6, 0x1
|
|
|
|
if-le v5, v6, :cond_4
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
.line 19
|
|
move-object v2, p1
|
|
|
|
check-cast v2, Lnet/sf/cglib/proxy/Factory;
|
|
|
|
invoke-direct {p0, v2}, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;->createCallbackIndexMap(Lnet/sf/cglib/proxy/Factory;)Ljava/util/Map;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v5, "callbacks"
|
|
|
|
.line 20
|
|
invoke-interface {p2, v5}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->startNode(Ljava/lang/String;)V
|
|
|
|
const-string v5, "mapping"
|
|
|
|
.line 21
|
|
invoke-interface {p2, v5}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->startNode(Ljava/lang/String;)V
|
|
|
|
.line 22
|
|
invoke-interface {p3, v2}, Lcom/thoughtworks/xstream/converters/MarshallingContext;->convertAnother(Ljava/lang/Object;)V
|
|
|
|
.line 23
|
|
invoke-interface {p2}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->endNode()V
|
|
|
|
goto :goto_3
|
|
|
|
.line 24
|
|
:cond_3
|
|
new-instance p1, Lcom/thoughtworks/xstream/converters/ConversionException;
|
|
|
|
const-string p2, "Cannot handle CGLIB enhanced proxies without factory that have multiple callbacks"
|
|
|
|
invoke-direct {p1, p2}, Lcom/thoughtworks/xstream/converters/ConversionException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 25
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getSuperclass()Ljava/lang/Class;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
const-string p3, "proxy superclass"
|
|
|
|
invoke-virtual {p1, p3, p2}, Lcom/thoughtworks/xstream/converters/ConversionException;->add(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 26
|
|
array-length p2, v3
|
|
|
|
invoke-static {p2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
const-string p3, "number of callbacks"
|
|
|
|
invoke-virtual {p1, p3, p2}, Lcom/thoughtworks/xstream/converters/ConversionException;->add(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 27
|
|
throw p1
|
|
|
|
:cond_4
|
|
:goto_3
|
|
move v2, v4
|
|
|
|
move v5, v2
|
|
|
|
.line 28
|
|
:goto_4
|
|
array-length v7, v3
|
|
|
|
const/4 v8, 0x0
|
|
|
|
if-ge v2, v7, :cond_8
|
|
|
|
.line 29
|
|
aget-object v7, v3, v2
|
|
|
|
if-nez v7, :cond_5
|
|
|
|
.line 30
|
|
iget-object v7, p0, Lcom/thoughtworks/xstream/converters/reflection/AbstractReflectionConverter;->mapper:Lcom/thoughtworks/xstream/mapper/Mapper;
|
|
|
|
invoke-interface {v7, v8}, Lcom/thoughtworks/xstream/mapper/Mapper;->serializedClass(Ljava/lang/Class;)Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
.line 31
|
|
invoke-interface {p2, v7}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->startNode(Ljava/lang/String;)V
|
|
|
|
.line 32
|
|
invoke-interface {p2}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->endNode()V
|
|
|
|
goto :goto_7
|
|
|
|
:cond_5
|
|
if-nez v5, :cond_7
|
|
|
|
.line 33
|
|
const-class v5, Lnet/sf/cglib/proxy/MethodInterceptor;
|
|
|
|
invoke-virtual {v7}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v5, v8}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_6
|
|
|
|
goto :goto_5
|
|
|
|
:cond_6
|
|
move v5, v4
|
|
|
|
goto :goto_6
|
|
|
|
:cond_7
|
|
:goto_5
|
|
move v5, v6
|
|
|
|
.line 34
|
|
:goto_6
|
|
iget-object v8, p0, Lcom/thoughtworks/xstream/converters/reflection/AbstractReflectionConverter;->mapper:Lcom/thoughtworks/xstream/mapper/Mapper;
|
|
|
|
invoke-virtual {v7}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-interface {v8, v9}, Lcom/thoughtworks/xstream/mapper/Mapper;->serializedClass(Ljava/lang/Class;)Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v7}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-static {p2, v8, v9}, Lcom/thoughtworks/xstream/io/ExtendedHierarchicalStreamWriterHelper;->startNode(Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;Ljava/lang/String;Ljava/lang/Class;)V
|
|
|
|
.line 35
|
|
invoke-interface {p3, v7}, Lcom/thoughtworks/xstream/converters/MarshallingContext;->convertAnother(Ljava/lang/Object;)V
|
|
|
|
.line 36
|
|
invoke-interface {p2}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->endNode()V
|
|
|
|
:goto_7
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
.line 37
|
|
:cond_8
|
|
array-length v2, v3
|
|
|
|
if-le v2, v6, :cond_9
|
|
|
|
.line 38
|
|
invoke-interface {p2}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->endNode()V
|
|
|
|
.line 39
|
|
:cond_9
|
|
:try_start_0
|
|
invoke-virtual {v1, v0}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
|
|
|
move-result-object v2
|
|
|
|
.line 40
|
|
invoke-virtual {v2, v6}, Ljava/lang/reflect/Field;->setAccessible(Z)V
|
|
|
|
.line 41
|
|
invoke-virtual {v2, v8}, Ljava/lang/reflect/Field;->getLong(Ljava/lang/Object;)J
|
|
|
|
move-result-wide v2
|
|
|
|
.line 42
|
|
const-class v4, Ljava/lang/String;
|
|
|
|
invoke-static {p2, v0, v4}, Lcom/thoughtworks/xstream/io/ExtendedHierarchicalStreamWriterHelper;->startNode(Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;Ljava/lang/String;Ljava/lang/Class;)V
|
|
|
|
.line 43
|
|
invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {p2, v0}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->setValue(Ljava/lang/String;)V
|
|
|
|
.line 44
|
|
invoke-interface {p2}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->endNode()V
|
|
:try_end_0
|
|
.catch Ljava/lang/NoSuchFieldException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_8
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 45
|
|
new-instance p2, Lcom/thoughtworks/xstream/converters/reflection/ObjectAccessException;
|
|
|
|
const-string p3, "Access to serialVersionUID of "
|
|
|
|
invoke-static {p3}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p3
|
|
|
|
const-string v0, " not allowed"
|
|
|
|
invoke-static {v1, p3, v0}, Landroidx/navigation/o0;->a(Ljava/lang/Class;Ljava/lang/StringBuilder;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-direct {p2, p3, p1}, Lcom/thoughtworks/xstream/converters/reflection/ObjectAccessException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw p2
|
|
|
|
:catch_1
|
|
:goto_8
|
|
if-eqz v5, :cond_a
|
|
|
|
const-string v0, "instance"
|
|
|
|
.line 46
|
|
invoke-interface {p2, v0}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->startNode(Ljava/lang/String;)V
|
|
|
|
.line 47
|
|
invoke-super {p0, p1, p2, p3}, Lcom/thoughtworks/xstream/converters/reflection/SerializableConverter;->doMarshalConditionally(Ljava/lang/Object;Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;Lcom/thoughtworks/xstream/converters/MarshallingContext;)V
|
|
|
|
.line 48
|
|
invoke-interface {p2}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->endNode()V
|
|
|
|
:cond_a
|
|
return-void
|
|
.end method
|
|
|
|
.method public unmarshal(Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;Lcom/thoughtworks/xstream/converters/UnmarshallingContext;)Ljava/lang/Object;
|
|
.locals 7
|
|
|
|
.line 1
|
|
new-instance v0, Lnet/sf/cglib/proxy/Enhancer;
|
|
|
|
invoke-direct {v0}, Lnet/sf/cglib/proxy/Enhancer;-><init>()V
|
|
|
|
.line 2
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveDown()V
|
|
|
|
.line 3
|
|
const-class v1, Ljava/lang/Class;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-interface {p2, v2, v1}, Lcom/thoughtworks/xstream/converters/UnmarshallingContext;->convertAnother(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/Class;
|
|
|
|
invoke-virtual {v0, v1}, Lnet/sf/cglib/proxy/Enhancer;->setSuperclass(Ljava/lang/Class;)V
|
|
|
|
.line 4
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveUp()V
|
|
|
|
.line 5
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveDown()V
|
|
|
|
.line 6
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 7
|
|
:goto_0
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->hasMoreChildren()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 8
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveDown()V
|
|
|
|
.line 9
|
|
iget-object v3, p0, Lcom/thoughtworks/xstream/converters/reflection/AbstractReflectionConverter;->mapper:Lcom/thoughtworks/xstream/mapper/Mapper;
|
|
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->getNodeName()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v3, v4}, Lcom/thoughtworks/xstream/mapper/Mapper;->realClass(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {p2, v2, v3}, Lcom/thoughtworks/xstream/converters/UnmarshallingContext;->convertAnother(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 10
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveUp()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 11
|
|
:cond_0
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v3
|
|
|
|
new-array v3, v3, [Ljava/lang/Class;
|
|
|
|
invoke-virtual {v1, v3}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, [Ljava/lang/Class;
|
|
|
|
invoke-virtual {v0, v1}, Lnet/sf/cglib/proxy/Enhancer;->setInterfaces([Ljava/lang/Class;)V
|
|
|
|
.line 12
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveUp()V
|
|
|
|
.line 13
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveDown()V
|
|
|
|
.line 14
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->getValue()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Ljava/lang/String;)Ljava/lang/Boolean;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v1
|
|
|
|
.line 15
|
|
invoke-virtual {v0, v1}, Lnet/sf/cglib/proxy/Enhancer;->setUseFactory(Z)V
|
|
|
|
.line 16
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveUp()V
|
|
|
|
.line 17
|
|
new-instance v3, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 18
|
|
new-instance v4, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 19
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveDown()V
|
|
|
|
.line 20
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->getNodeName()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v6, "callbacks"
|
|
|
|
invoke-virtual {v6, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
.line 21
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveDown()V
|
|
|
|
.line 22
|
|
const-class v5, Ljava/util/HashMap;
|
|
|
|
invoke-interface {p2, v2, v5}, Lcom/thoughtworks/xstream/converters/UnmarshallingContext;->convertAnother(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Ljava/util/Map;
|
|
|
|
.line 23
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveUp()V
|
|
|
|
.line 24
|
|
:goto_1
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->hasMoreChildren()Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_2
|
|
|
|
.line 25
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveDown()V
|
|
|
|
.line 26
|
|
invoke-direct {p0, p1, p2, v3, v4}, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;->readCallback(Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;Lcom/thoughtworks/xstream/converters/UnmarshallingContext;Ljava/util/List;Ljava/util/List;)V
|
|
|
|
.line 27
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveUp()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 28
|
|
:cond_1
|
|
invoke-direct {p0, p1, p2, v3, v4}, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;->readCallback(Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;Lcom/thoughtworks/xstream/converters/UnmarshallingContext;Ljava/util/List;Ljava/util/List;)V
|
|
|
|
move-object v5, v2
|
|
|
|
.line 29
|
|
:cond_2
|
|
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v6
|
|
|
|
new-array v6, v6, [Lnet/sf/cglib/proxy/Callback;
|
|
|
|
invoke-virtual {v3, v6}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, [Lnet/sf/cglib/proxy/Callback;
|
|
|
|
check-cast v3, [Lnet/sf/cglib/proxy/Callback;
|
|
|
|
invoke-virtual {v0, v3}, Lnet/sf/cglib/proxy/Enhancer;->setCallbacks([Lnet/sf/cglib/proxy/Callback;)V
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
.line 30
|
|
new-instance v3, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter$ReverseEngineeredCallbackFilter;
|
|
|
|
invoke-direct {v3, v5}, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter$ReverseEngineeredCallbackFilter;-><init>(Ljava/util/Map;)V
|
|
|
|
invoke-virtual {v0, v3}, Lnet/sf/cglib/proxy/Enhancer;->setCallbackFilter(Lnet/sf/cglib/proxy/CallbackFilter;)V
|
|
|
|
.line 31
|
|
:cond_3
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveUp()V
|
|
|
|
.line 32
|
|
:goto_2
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->hasMoreChildren()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
.line 33
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveDown()V
|
|
|
|
.line 34
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->getNodeName()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v5, "serialVersionUID"
|
|
|
|
invoke-virtual {v3, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
.line 35
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->getValue()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3}, Ljava/lang/Long;->valueOf(Ljava/lang/String;)Ljava/lang/Long;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v3}, Lnet/sf/cglib/proxy/Enhancer;->setSerialVersionUID(Ljava/lang/Long;)V
|
|
|
|
goto :goto_3
|
|
|
|
.line 36
|
|
:cond_4
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->getNodeName()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v5, "instance"
|
|
|
|
invoke-virtual {v3, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_5
|
|
|
|
.line 37
|
|
invoke-direct {p0, v0, v4, v1}, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;->create(Lnet/sf/cglib/proxy/Enhancer;Ljava/util/List;Z)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
.line 38
|
|
invoke-super {p0, v2, p1, p2}, Lcom/thoughtworks/xstream/converters/reflection/SerializableConverter;->doUnmarshalConditionally(Ljava/lang/Object;Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;Lcom/thoughtworks/xstream/converters/UnmarshallingContext;)Ljava/lang/Object;
|
|
|
|
.line 39
|
|
:cond_5
|
|
:goto_3
|
|
invoke-interface {p1}, Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;->moveUp()V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
if-nez v2, :cond_7
|
|
|
|
.line 40
|
|
invoke-direct {p0, v0, v4, v1}, Lcom/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter;->create(Lnet/sf/cglib/proxy/Enhancer;Ljava/util/List;Z)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
.line 41
|
|
:cond_7
|
|
iget-object p1, p0, Lcom/thoughtworks/xstream/converters/reflection/AbstractReflectionConverter;->serializationMethodInvoker:Lcom/thoughtworks/xstream/converters/reflection/SerializationMethodInvoker;
|
|
|
|
invoke-virtual {p1, v2}, Lcom/thoughtworks/xstream/converters/reflection/SerializationMethodInvoker;->callReadResolve(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|