Rabbit-R1/original r1/java/sources/io/sentry/OptionsContainer.java

21 lines
610 B
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package io.sentry;
import java.lang.reflect.InvocationTargetException;
/* loaded from: classes3.dex */
public final class OptionsContainer<T> {
private final Class<T> clazz;
public static <T> OptionsContainer<T> create(Class<T> cls) {
return new OptionsContainer<>(cls);
}
private OptionsContainer(Class<T> cls) {
this.clazz = cls;
}
public T createInstance() throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException {
return this.clazz.getDeclaredConstructor(new Class[0]).newInstance(new Object[0]);
}
}