public static Class < ? > resolvePrimitiveIfNecessary ( Class < ? > clazz ) { Preconditions . checkNotNull ( clazz , "Class must not be null" ) ; return ( clazz . isPrimitive ( ) && clazz != void . class ? primitiveTypeToWrapperMap . get ( clazz ) : clazz ) ; }
Resolve the given class if it is a primitive class returning the corresponding primitive wrapper type instead .