package d.m;

/* JADX INFO: loaded from: classes.dex */
public class w implements u {
    public static w a;

    @Override // d.m.u
    public <T extends s> T a(Class<T> cls) {
        try {
            return cls.newInstance();
        } catch (IllegalAccessException e2) {
            throw new RuntimeException("Cannot create an instance of " + cls, e2);
        } catch (InstantiationException e3) {
            throw new RuntimeException("Cannot create an instance of " + cls, e3);
        }
    }
}
