--- old/src/java.desktop/share/classes/javax/print/attribute/AttributeSet.java 2015-08-11 19:35:57.695331229 +0400 +++ new/src/java.desktop/share/classes/javax/print/attribute/AttributeSet.java 2015-08-11 19:35:57.507331237 +0400 @@ -111,7 +111,7 @@ /** * Returns the attribute value which this attribute set contains in the - * given attribute category. Returns null if this attribute set + * given attribute category. Returns {@code null} if this attribute set * does not contain any attribute value in the given attribute category. * * @param category Attribute category whose associated attribute value @@ -121,14 +121,14 @@ * Attribute}. * * @return The attribute value in the given attribute category contained - * in this attribute set, or null if this attribute set + * in this attribute set, or {@code null} if this attribute set * does not contain any attribute value in the given attribute * category. * * @throws NullPointerException - * (unchecked exception) Thrown if the category is null. + * (unchecked exception) Thrown if the {@code category} is null. * @throws ClassCastException - * (unchecked exception) Thrown if the category is not a + * (unchecked exception) Thrown if the {@code category} is not a * {@link java.lang.Class Class} that implements interface {@link * Attribute Attribute}. */ @@ -141,74 +141,74 @@ * * @param attribute Attribute value to be added to this attribute set. * - * @return true if this attribute set changed as a result of the + * @return {@code true} if this attribute set changed as a result of the * call, i.e., the given attribute value was not already a member * of this attribute set. * * @throws NullPointerException - * (unchecked exception) Thrown if the attribute is null. + * (unchecked exception) Thrown if the {@code attribute} is null. * @throws UnmodifiableSetException * (unchecked exception) Thrown if this attribute set does not support - * the add() operation. + * the {@code add()} operation. */ public boolean add(Attribute attribute); /** * Removes any attribute for this category from this attribute set if - * present. If category is null, then - * remove() does nothing and returns false. + * present. If {@code category} is null, then + * {@code remove()} does nothing and returns {@code false}. * * @param category Attribute category to be removed from this * attribute set. * - * @return true if this attribute set changed as a result of the + * @return {@code true} if this attribute set changed as a result of the * call, i.e., the given attribute value had been a member of this * attribute set. * * @throws UnmodifiableSetException * (unchecked exception) Thrown if this attribute set does not support - * the remove() operation. + * the {@code remove()} operation. */ public boolean remove(Class category); /** * Removes the specified attribute from this attribute set if - * present. If attribute is null, then - * remove() does nothing and returns false. + * present. If {@code attribute} is null, then + * {@code remove()} does nothing and returns {@code false}. * * @param attribute Attribute value to be removed from this attribute set. * - * @return true if this attribute set changed as a result of the + * @return {@code true} if this attribute set changed as a result of the * call, i.e., the given attribute value had been a member of this * attribute set. * * @throws UnmodifiableSetException * (unchecked exception) Thrown if this attribute set does not support - * the remove() operation. + * the {@code remove()} operation. */ public boolean remove(Attribute attribute); /** - * Returns true if this attribute set contains an + * Returns {@code true} if this attribute set contains an * attribute for the specified category. * * @param category whose presence in this attribute set is * to be tested. * - * @return true if this attribute set contains an attribute + * @return {@code true} if this attribute set contains an attribute * value for the specified category. */ public boolean containsKey(Class category); /** - * Returns true if this attribute set contains the given + * Returns {@code true} if this attribute set contains the given * attribute value. * * @param attribute Attribute value whose presence in this * attribute set is to be tested. * - * @return true if this attribute set contains the given + * @return {@code true} if this attribute set contains the given * attribute value. */ public boolean containsValue(Attribute attribute); @@ -219,11 +219,11 @@ * {@link #add(Attribute) add(Attribute)} * operation had been applied to this attribute set successively with each * element from the specified set. - * The behavior of the addAll(AttributeSet) + * The behavior of the {@code addAll(AttributeSet)} * operation is unspecified if the specified set is modified while * the operation is in progress. *

- * If the addAll(AttributeSet) operation throws an exception, + * If the {@code addAll(AttributeSet)} operation throws an exception, * the effect on this attribute set's state is implementation dependent; * elements from the specified set before the point of the exception may * or may not have been added to this attribute set. @@ -231,12 +231,12 @@ * @param attributes whose elements are to be added to this attribute * set. * - * @return true if this attribute set changed as a result of the + * @return {@code true} if this attribute set changed as a result of the * call. * * @throws UnmodifiableSetException * (Unchecked exception) Thrown if this attribute set does not support - * the addAll(AttributeSet) method. + * the {@code addAll(AttributeSet)} method. * @throws NullPointerException * (Unchecked exception) Thrown if some element in the specified * set is null. @@ -247,8 +247,8 @@ /** * Returns the number of attributes in this attribute set. If this - * attribute set contains more than Integer.MAX_VALUE elements, - * returns Integer.MAX_VALUE. + * attribute set contains more than {@code Integer.MAX_VALUE} elements, + * returns {@code Integer.MAX_VALUE}. * * @return The number of attributes in this attribute set. */ @@ -267,7 +267,7 @@ * * @throws UnmodifiableSetException * (unchecked exception) Thrown if this attribute set does not support - * the clear() operation. + * the {@code clear()} operation. */ public void clear(); @@ -280,15 +280,15 @@ /** * Compares the specified object with this attribute set for equality. - * Returns true if the given object is also an attribute set and + * Returns {@code true} if the given object is also an attribute set and * the two attribute sets contain the same attribute category-attribute * value mappings. This ensures that the - * equals() method works properly across different + * {@code equals()} method works properly across different * implementations of the AttributeSet interface. * * @param object to be compared for equality with this attribute set. * - * @return true if the specified object is equal to this + * @return {@code true} if the specified object is equal to this * attribute set. */ public boolean equals(Object object); @@ -297,9 +297,9 @@ * Returns the hash code value for this attribute set. The hash code of an * attribute set is defined to be the sum of the hash codes of each entry * in the AttributeSet. - * This ensures that t1.equals(t2) implies that - * t1.hashCode()==t2.hashCode() for any two attribute sets - * t1 and t2, as required by the general contract of + * This ensures that {@code t1.equals(t2)} implies that + * {@code t1.hashCode()==t2.hashCode()} for any two attribute sets + * {@code t1} and {@code t2}, as required by the general contract of * {@link java.lang.Object#hashCode() Object.hashCode()}. * * @return The hash code value for this attribute set.