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

Print this page

        

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