< prev index next >

src/java.desktop/share/classes/javax/print/MimeType.java

Print this page

        

@@ -193,13 +193,13 @@
      * string is converted into canonical form and stored internally.
      *
      * @param  s  MIME media type string.
      *
      * @exception  NullPointerException
-     *     (unchecked exception) Thrown if <CODE>s</CODE> is null.
+     *     (unchecked exception) Thrown if {@code s} is null.
      * @exception  IllegalArgumentException
-     *     (unchecked exception) Thrown if <CODE>s</CODE> does not obey the
+     *     (unchecked exception) Thrown if {@code s} does not obey the
      *     syntax for a MIME media type string.
      */
     public MimeType(String s) {
         parse (s);
     }

@@ -269,11 +269,11 @@
      * the same media type (because the default character set for plain text is
      * US-ASCII).
      *
      * @param  obj  Object to test.
      *
-     * @return  True if this MIME type object equals <CODE>obj</CODE>, false
+     * @return  True if this MIME type object equals {@code obj}, false
      *          otherwise.
      */
     public boolean equals (Object obj) {
         return(obj != null &&
                obj instanceof MimeType &&

@@ -523,24 +523,24 @@
         return result.toString();
     }
 
     /**
      * Parses the given string into canonical pieces and stores the pieces in
-     * {@link #myPieces <CODE>myPieces</CODE>}.
+     * {@link #myPieces myPieces}.
      * <P>
      * Special rules applied:
      * <UL>
      * <LI> If the media type is text, the value of a charset parameter is
      *      converted to lowercase.
      * </UL>
      *
      * @param  s  MIME media type string.
      *
      * @exception  NullPointerException
-     *     (unchecked exception) Thrown if <CODE>s</CODE> is null.
+     *     (unchecked exception) Thrown if {@code s} is null.
      * @exception  IllegalArgumentException
-     *     (unchecked exception) Thrown if <CODE>s</CODE> does not obey the
+     *     (unchecked exception) Thrown if {@code s} does not obey the
      *     syntax for a MIME media type string.
      */
     private void parse(String s) {
         // Initialize.
         if (s == null) {
< prev index next >