< prev index next >

src/java.desktop/share/classes/javax/swing/text/SimpleAttributeSet.java

Print this page

        

@@ -41,11 +41,11 @@
  * Serialized objects of this class will not be compatible with
  * future Swing releases. The current serialization support is
  * appropriate for short term storage or RMI between applications running
  * the same version of Swing.  As of 1.4, support for long term storage
  * of all JavaBeans&trade;
- * has been added to the <code>java.beans</code> package.
+ * has been added to the {@code java.beans} package.
  * Please see {@link java.beans.XMLEncoder}.
  *
  * @author Tim Prinzing
  */
 @SuppressWarnings("serial") // Same-version serialization only

@@ -125,11 +125,11 @@
     }
 
     /**
      * Gets the names of the attributes in the set.
      *
-     * @return the names as an <code>Enumeration</code>
+     * @return the names as an {@code Enumeration}
      */
     public Enumeration<?> getAttributeNames() {
         return Collections.enumeration(table.keySet());
     }
 

@@ -292,15 +292,15 @@
         return table.hashCode();
     }
 
     /**
      * Compares this object to the specified object.
-     * The result is <code>true</code> if the object is an equivalent
+     * The result is {@code true} if the object is an equivalent
      * set of attributes.
      * @param     obj   the object to compare this attribute set with
-     * @return    <code>true</code> if the objects are equal;
-     *            <code>false</code> otherwise
+     * @return    {@code true} if the objects are equal;
+     *            {@code false} otherwise
      */
     public boolean equals(Object obj) {
         if (this == obj) {
             return true;
         }
< prev index next >