2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/esotericsoftware/kryo/serializers/FieldSerializerAnnotationsUtil;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "FieldSerializerAnnotationsUtil.java"
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/esotericsoftware/kryo/serializers/FieldSerializer;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public processAnnotatedFields(Lcom/esotericsoftware/kryo/serializers/FieldSerializer;)V
|
|
|
|
.locals 14
|
|
|
|
|
|
|
|
const-class v0, Ljava/lang/Object;
|
|
|
|
|
|
|
|
const-class v1, Lcom/esotericsoftware/kryo/Serializer;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer;->getFields()[Lcom/esotericsoftware/kryo/serializers/FieldSerializer$CachedField;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
array-length v3, v2
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge v4, v3, :cond_11
|
|
|
|
|
|
|
|
aget-object v5, v2, v4
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$CachedField;->getField()Ljava/lang/reflect/Field;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
const-class v6, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$Bind;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v6}, Ljava/lang/reflect/Field;->isAnnotationPresent(Ljava/lang/Class;)Z
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
if-eqz v6, :cond_0
|
|
|
|
|
|
|
|
const-class v6, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$Bind;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v6}, Ljava/lang/reflect/Field;->getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
check-cast v6, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$Bind;
|
|
|
|
|
|
|
|
invoke-interface {v6}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$Bind;->value()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer;->getKryo()Lcom/esotericsoftware/kryo/Kryo;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
invoke-static {v7, v6, v8}, Lcom/esotericsoftware/kryo/factories/ReflectionSerializerFactory;->makeSerializer(Lcom/esotericsoftware/kryo/Kryo;Ljava/lang/Class;Ljava/lang/Class;)Lcom/esotericsoftware/kryo/Serializer;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
aget-object v7, v2, v4
|
|
|
|
|
|
|
|
invoke-virtual {v7, v6}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$CachedField;->setSerializer(Lcom/esotericsoftware/kryo/Serializer;)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-class v6, Lcom/esotericsoftware/kryo/serializers/CollectionSerializer$BindCollection;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v6}, Ljava/lang/reflect/Field;->isAnnotationPresent(Ljava/lang/Class;)Z
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
|
|
|
|
const-class v6, Lcom/esotericsoftware/kryo/serializers/MapSerializer$BindMap;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v6}, Ljava/lang/reflect/Field;->isAnnotationPresent(Ljava/lang/Class;)Z
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-class v6, Lcom/esotericsoftware/kryo/serializers/CollectionSerializer$BindCollection;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v6}, Ljava/lang/reflect/Field;->isAnnotationPresent(Ljava/lang/Class;)Z
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
const-string v7, " does not implement it."
|
|
|
|
|
|
|
|
const-string v8, ", because it has a serializer already."
|
|
|
|
|
|
|
|
const-string v9, "."
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
if-eqz v6, :cond_7
|
|
|
|
|
|
|
|
aget-object v6, v2, v4
|
|
|
|
|
|
|
|
iget-object v6, v6, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$CachedField;->serializer:Lcom/esotericsoftware/kryo/Serializer;
|
|
|
|
|
|
|
|
if-nez v6, :cond_6
|
|
|
|
|
|
|
|
const-class v6, Lcom/esotericsoftware/kryo/serializers/CollectionSerializer$BindCollection;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v6}, Ljava/lang/reflect/Field;->getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
check-cast v6, Lcom/esotericsoftware/kryo/serializers/CollectionSerializer$BindCollection;
|
|
|
|
|
|
|
|
const-class v11, Ljava/util/Collection;
|
|
|
|
|
|
|
|
aget-object v12, v2, v4
|
|
|
|
|
|
|
|
iget-object v12, v12, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$CachedField;->field:Ljava/lang/reflect/Field;
|
|
|
|
|
|
|
|
invoke-virtual {v12}, Ljava/lang/reflect/Field;->getType()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v12
|
|
|
|
|
|
|
|
invoke-virtual {v11, v12}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
|
|
|
|
move-result v11
|
|
|
|
|
|
|
|
if-eqz v11, :cond_5
|
|
|
|
|
|
|
|
invoke-interface {v6}, Lcom/esotericsoftware/kryo/serializers/CollectionSerializer$BindCollection;->elementSerializer()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
if-ne v11, v1, :cond_2
|
|
|
|
|
|
|
|
move-object v11, v10
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
if-nez v11, :cond_3
|
|
|
|
|
|
|
|
move-object v11, v10
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-virtual {p1}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer;->getKryo()Lcom/esotericsoftware/kryo/Kryo;
|
|
|
|
|
|
|
|
move-result-object v12
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v13
|
|
|
|
|
|
|
|
invoke-static {v12, v11, v13}, Lcom/esotericsoftware/kryo/factories/ReflectionSerializerFactory;->makeSerializer(Lcom/esotericsoftware/kryo/Kryo;Ljava/lang/Class;Ljava/lang/Class;)Lcom/esotericsoftware/kryo/Serializer;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-interface {v6}, Lcom/esotericsoftware/kryo/serializers/CollectionSerializer$BindCollection;->elementsCanBeNull()Z
|
|
|
|
|
|
|
|
move-result v12
|
|
|
|
|
|
|
|
invoke-interface {v6}, Lcom/esotericsoftware/kryo/serializers/CollectionSerializer$BindCollection;->elementClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
if-ne v6, v0, :cond_4
|
|
|
|
|
|
|
|
move-object v6, v10
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
new-instance v13, Lcom/esotericsoftware/kryo/serializers/CollectionSerializer;
|
|
|
|
|
|
|
|
invoke-direct {v13}, Lcom/esotericsoftware/kryo/serializers/CollectionSerializer;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {v13, v12}, Lcom/esotericsoftware/kryo/serializers/CollectionSerializer;->setElementsCanBeNull(Z)V
|
|
|
|
|
|
|
|
invoke-virtual {v13, v6, v11}, Lcom/esotericsoftware/kryo/serializers/CollectionSerializer;->setElementClass(Ljava/lang/Class;Lcom/esotericsoftware/kryo/Serializer;)V
|
|
|
|
|
|
|
|
aget-object v6, v2, v4
|
|
|
|
|
|
|
|
invoke-virtual {v6, v13}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$CachedField;->setSerializer(Lcom/esotericsoftware/kryo/Serializer;)V
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
new-instance p1, Ljava/lang/RuntimeException;
|
|
|
|
|
|
|
|
const-string v0, "CollectionSerialier.Bind should be used only with fields implementing java.util.Collection, but field "
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
aget-object v1, v2, v4
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$CachedField;->getField()Ljava/lang/reflect/Field;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/reflect/Field;->getDeclaringClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
aget-object v1, v2, v4
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$CachedField;->getField()Ljava/lang/reflect/Field;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/reflect/Field;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
new-instance p1, Ljava/lang/RuntimeException;
|
|
|
|
|
|
|
|
const-string v0, "CollectionSerialier.Bind cannot be used with field "
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
aget-object v1, v2, v4
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$CachedField;->getField()Ljava/lang/reflect/Field;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/reflect/Field;->getDeclaringClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
aget-object v1, v2, v4
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$CachedField;->getField()Ljava/lang/reflect/Field;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/reflect/Field;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
:goto_2
|
|
|
|
const-class v6, Lcom/esotericsoftware/kryo/serializers/MapSerializer$BindMap;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v6}, Ljava/lang/reflect/Field;->isAnnotationPresent(Ljava/lang/Class;)Z
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
if-eqz v6, :cond_10
|
|
|
|
|
|
|
|
aget-object v6, v2, v4
|
|
|
|
|
|
|
|
iget-object v6, v6, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$CachedField;->serializer:Lcom/esotericsoftware/kryo/Serializer;
|
|
|
|
|
|
|
|
if-nez v6, :cond_f
|
|
|
|
|
|
|
|
const-class v6, Lcom/esotericsoftware/kryo/serializers/MapSerializer$BindMap;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v6}, Ljava/lang/reflect/Field;->getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
check-cast v6, Lcom/esotericsoftware/kryo/serializers/MapSerializer$BindMap;
|
|
|
|
|
|
|
|
const-class v8, Ljava/util/Map;
|
|
|
|
|
|
|
|
aget-object v11, v2, v4
|
|
|
|
|
|
|
|
iget-object v11, v11, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$CachedField;->field:Ljava/lang/reflect/Field;
|
|
|
|
|
|
|
|
invoke-virtual {v11}, Ljava/lang/reflect/Field;->getType()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
invoke-virtual {v8, v11}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
|
|
|
if-eqz v8, :cond_e
|
|
|
|
|
|
|
|
invoke-interface {v6}, Lcom/esotericsoftware/kryo/serializers/MapSerializer$BindMap;->valueSerializer()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
invoke-interface {v6}, Lcom/esotericsoftware/kryo/serializers/MapSerializer$BindMap;->keySerializer()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
if-ne v7, v1, :cond_8
|
|
|
|
|
|
|
|
move-object v7, v10
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
if-ne v8, v1, :cond_9
|
|
|
|
|
|
|
|
move-object v8, v10
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
if-nez v7, :cond_a
|
|
|
|
|
|
|
|
move-object v7, v10
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
invoke-virtual {p1}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer;->getKryo()Lcom/esotericsoftware/kryo/Kryo;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
invoke-static {v9, v7, v11}, Lcom/esotericsoftware/kryo/factories/ReflectionSerializerFactory;->makeSerializer(Lcom/esotericsoftware/kryo/Kryo;Ljava/lang/Class;Ljava/lang/Class;)Lcom/esotericsoftware/kryo/Serializer;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
if-nez v8, :cond_b
|
|
|
|
|
|
|
|
move-object v5, v10
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
invoke-virtual {p1}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer;->getKryo()Lcom/esotericsoftware/kryo/Kryo;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-static {v9, v8, v5}, Lcom/esotericsoftware/kryo/factories/ReflectionSerializerFactory;->makeSerializer(Lcom/esotericsoftware/kryo/Kryo;Ljava/lang/Class;Ljava/lang/Class;)Lcom/esotericsoftware/kryo/Serializer;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
invoke-interface {v6}, Lcom/esotericsoftware/kryo/serializers/MapSerializer$BindMap;->valuesCanBeNull()Z
|
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
|
|
|
invoke-interface {v6}, Lcom/esotericsoftware/kryo/serializers/MapSerializer$BindMap;->keysCanBeNull()Z
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
invoke-interface {v6}, Lcom/esotericsoftware/kryo/serializers/MapSerializer$BindMap;->keyClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
invoke-interface {v6}, Lcom/esotericsoftware/kryo/serializers/MapSerializer$BindMap;->valueClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
if-ne v11, v0, :cond_c
|
|
|
|
|
|
|
|
move-object v11, v10
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
if-ne v6, v0, :cond_d
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_d
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object v10, v6
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
new-instance v6, Lcom/esotericsoftware/kryo/serializers/MapSerializer;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v6}, Lcom/esotericsoftware/kryo/serializers/MapSerializer;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v6, v9}, Lcom/esotericsoftware/kryo/serializers/MapSerializer;->setKeysCanBeNull(Z)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v6, v8}, Lcom/esotericsoftware/kryo/serializers/MapSerializer;->setValuesCanBeNull(Z)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v6, v11, v5}, Lcom/esotericsoftware/kryo/serializers/MapSerializer;->setKeyClass(Ljava/lang/Class;Lcom/esotericsoftware/kryo/Serializer;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v6, v10, v7}, Lcom/esotericsoftware/kryo/serializers/MapSerializer;->setValueClass(Ljava/lang/Class;Lcom/esotericsoftware/kryo/Serializer;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
aget-object v5, v2, v4
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v5, v6}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$CachedField;->setSerializer(Lcom/esotericsoftware/kryo/Serializer;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_e
|
|
|
|
new-instance p1, Ljava/lang/RuntimeException;
|
|
|
|
|
|
|
|
const-string v0, "MapSerialier.Bind should be used only with fields implementing java.util.Map, but field "
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
aget-object v1, v2, v4
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$CachedField;->getField()Ljava/lang/reflect/Field;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/reflect/Field;->getDeclaringClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
aget-object v1, v2, v4
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$CachedField;->getField()Ljava/lang/reflect/Field;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/reflect/Field;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_f
|
|
|
|
new-instance p1, Ljava/lang/RuntimeException;
|
|
|
|
|
|
|
|
const-string v0, "MapSerialier.Bind cannot be used with field "
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
aget-object v1, v2, v4
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$CachedField;->getField()Ljava/lang/reflect/Field;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/reflect/Field;->getDeclaringClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
aget-object v1, v2, v4
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/esotericsoftware/kryo/serializers/FieldSerializer$CachedField;->getField()Ljava/lang/reflect/Field;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/reflect/Field;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_10
|
2020-07-08 16:44:49 +00:00
|
|
|
:goto_6
|
2020-05-17 12:40:10 +00:00
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:cond_11
|
|
|
|
return-void
|
|
|
|
.end method
|