public static Object createInstanceNoArgs ( Class < ? > clazz ) { assertReflectionAccessor ( ) ; try { return accessor . newInstance ( clazz ) ; } catch ( Exception e ) { throw SneakyException . sneakyThrow ( e ) ; } }
Creates an instance of this class through reflection . Class must have a no - args constructor . Any exceptions thrown during the process will be re - thrown as unchecked .