package g.e.b.g0;

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 r<T> implements x<T> {
    public final /* synthetic */ Constructor a;

    public r(Constructor constructor) {
        this.a = constructor;
    }

    @Override // g.e.b.g0.x
    public T a() {
        try {
            return (T) this.a.newInstance(new Object[0]);
        } catch (IllegalAccessException e2) {
            g.e.a.a.a.d(e2);
            throw null;
        } catch (InstantiationException e3) {
            StringBuilder sbF = g.a.a.a.a.F("Failed to invoke ");
            sbF.append(this.a);
            sbF.append(" with no args");
            throw new RuntimeException(sbF.toString(), e3);
        } catch (InvocationTargetException e4) {
            StringBuilder sbF2 = g.a.a.a.a.F("Failed to invoke ");
            sbF2.append(this.a);
            sbF2.append(" with no args");
            throw new RuntimeException(sbF2.toString(), e4.getTargetException());
        }
    }
}
