public final < T > T allocateInstance ( Class < T > clazz ) throws IllegalStateException { try { @ SuppressWarnings ( "unchecked" ) final T result = ( T ) THE_UNSAFE . allocateInstance ( clazz ) ; return result ; } catch ( InstantiationException e ) { throw new IllegalStateException ( "Cannot allocate instance: " + e . getMessage ( ) , e ) ; } }
Construct and allocate on the heap an instant of the given class without calling the class constructor