what-the-bank/sources/o/C13140fRv.java

24 lines
897 B
Java

package o;
import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
import com.google.gson.TypeAdapterFactory;
import com.google.gson.reflect.TypeToken;
import io.gsonfire.gson.SimpleIterableTypeAdapter;
import java.lang.reflect.ParameterizedType;
/* renamed from: o.fRv, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C13140fRv implements TypeAdapterFactory {
@Override // com.google.gson.TypeAdapterFactory
public final TypeAdapter create(Gson gson, TypeToken typeToken) {
if (typeToken.getRawType() != fRE.class) {
return null;
}
if (typeToken.getType() instanceof ParameterizedType) {
return new SimpleIterableTypeAdapter(gson, ((ParameterizedType) typeToken.getType()).getActualTypeArguments()[0]);
}
return new SimpleIterableTypeAdapter(gson, Object.class);
}
}