src/share/classes/javax/swing/text/AbstractWriter.java

Print this page

        

@@ -666,11 +666,11 @@
      * @param     attr an AttributeSet.
      * @exception IOException on any I/O error
      */
     protected void writeAttributes(AttributeSet attr) throws IOException {
 
-        Enumeration names = attr.getAttributeNames();
+        Enumeration<?> names = attr.getAttributeNames();
         while (names.hasMoreElements()) {
             Object name = names.nextElement();
             write(" " + name + "=" + attr.getAttribute(name));
         }
     }