goja-core/src/main/java/goja/core/kits/reflect/ClassKit.java
public static Class<?> resolvePrimitiveIfNecessary(Class<?> clazz) {
        Preconditions.checkNotNull(clazz, "Class must not be null");
        return (clazz.isPrimitive() && clazz != void.class ? primitiveTypeToWrapperMap.get(clazz) : clazz);
    }
public static Class<?> resolvePrimitiveIfNecessary(Class<?> clazz) {
        Preconditions.checkNotNull(clazz, "Class must not be null");
        return (clazz.isPrimitive() && clazz != void.class ? primitiveTypeToWrapperMap.get(clazz) : clazz);
    }
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.

@param clazz the class to check
@return the original class, or a primitive wrapper for the original primitive type
Resolve the given class if it is a primitive class returning the corresponding primitive wrapper type instead .