package c.b.a.u;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

/* JADX INFO: Add missing generic type declarations: [T] */
/* JADX INFO: loaded from: classes.dex */
public class h<T> implements s<T> {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ Constructor f1345a;

    public h(g gVar, Constructor constructor) {
        this.f1345a = constructor;
    }

    @Override // c.b.a.u.s
    public T a() {
        try {
            return (T) this.f1345a.newInstance(null);
        } catch (IllegalAccessException e2) {
            throw new AssertionError(e2);
        } catch (InstantiationException e3) {
            StringBuilder sbD = c.a.a.a.a.d("Failed to invoke ");
            sbD.append(this.f1345a);
            sbD.append(" with no args");
            throw new RuntimeException(sbD.toString(), e3);
        } catch (InvocationTargetException e4) {
            StringBuilder sbD2 = c.a.a.a.a.d("Failed to invoke ");
            sbD2.append(this.f1345a);
            sbD2.append(" with no args");
            throw new RuntimeException(sbD2.toString(), e4.getTargetException());
        }
    }
}
