public ObjectDeserializer getDeserializer(Type type) { ObjectDeserializer derializer = (ObjectDeserializer) this.derializers.get(type); if (derializer != null) { return derializer; } if (type instanceof Class) { return getDeserializer((Class) type, type); } if (!(type instanceof ParameterizedType)) { return JavaObjectDeserializer.instance; } Type rawType = ((ParameterizedType) type).getRawType(); if (rawType instanceof Class) { return getDeserializer((Class) rawType, type); } return getDeserializer(rawType); }
public ObjectDeserializer getDeserializer(Type type) { ObjectDeserializer derializer = this.derializers.get(type); if (derializer != null) { return derializer; } if (type instanceof Class<?>) { return getDeserializer((Class<?>) type, type); } if (type instanceof ParameterizedType) { Type rawType = ((ParameterizedType) type).getRawType(); if (rawType instanceof Class<?>) { return getDeserializer((Class<?>) rawType, type); } else { return getDeserializer(rawType); } } return JavaObjectDeserializer.instance; }