src/share/classes/javax/print/attribute/AttributeSetUtilities.java

Print this page

        

*** 521,531 **** * <CODE>interfaceName</CODE>. */ public static Class<?> verifyAttributeCategory(Object object, Class<?> interfaceName) { ! Class result = (Class) object; if (interfaceName.isAssignableFrom (result)) { return result; } else { throw new ClassCastException(); --- 521,531 ---- * <CODE>interfaceName</CODE>. */ public static Class<?> verifyAttributeCategory(Object object, Class<?> interfaceName) { ! Class<?> result = (Class) object; if (interfaceName.isAssignableFrom (result)) { return result; } else { throw new ClassCastException();