1.1 --- a/src/jdk/internal/dynalink/support/TypeUtilities.java Thu Nov 06 17:06:56 2014 +0100 1.2 +++ b/src/jdk/internal/dynalink/support/TypeUtilities.java Mon Nov 03 09:49:52 2014 +0100 1.3 @@ -520,4 +520,13 @@ 1.4 public static Class<?> getWrapperType(final Class<?> primitiveType) { 1.5 return WRAPPER_TYPES.get(primitiveType); 1.6 } 1.7 + 1.8 + /** 1.9 + * Returns true if the passed type is a wrapper for a primitive type. 1.10 + * @param type the examined type 1.11 + * @return true if the passed type is a wrapper for a primitive type. 1.12 + */ 1.13 + public static boolean isWrapperType(final Class<?> type) { 1.14 + return PRIMITIVE_TYPES.containsKey(type); 1.15 + } 1.16 }