what-the-bank/sources/com/facetec/sdk/fq.java

45 lines
1.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.facetec.sdk;
import com.facetec.sdk.fn;
import java.io.IOException;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
/* loaded from: classes.dex */
final class fq<T> extends ek<T> {
private final dx a;
private final ek<T> b;
private final Type d;
/* JADX INFO: Access modifiers changed from: package-private */
public fq(dx dxVar, ek<T> ekVar, Type type) {
this.a = dxVar;
this.b = ekVar;
this.d = type;
}
@Override // com.facetec.sdk.ek
public final T a(fu fuVar) throws IOException {
return this.b.a(fuVar);
}
@Override // com.facetec.sdk.ek
public final void b(ga gaVar, T t) throws IOException {
ek<T> ekVar = this.b;
Type type = this.d;
if (t != null && (type == Object.class || (type instanceof TypeVariable) || (type instanceof Class))) {
type = t.getClass();
}
if (type != this.d) {
ekVar = this.a.d(fv.b(type));
if (ekVar instanceof fn.e) {
ek<T> ekVar2 = this.b;
if (!(ekVar2 instanceof fn.e)) {
ekVar = ekVar2;
}
}
}
ekVar.b(gaVar, t);
}
}