--- old/src/java.base/share/classes/java/util/EnumSet.java 2015-08-07 21:14:59.258584910 +0400 +++ new/src/java.base/share/classes/java/util/EnumSet.java 2015-08-07 21:14:59.050584919 +0400 @@ -34,11 +34,11 @@ * are represented internally as bit vectors. This representation is * extremely compact and efficient. The space and time performance of this * class should be good enough to allow its use as a high-quality, typesafe - * alternative to traditional int-based "bit flags." Even bulk - * operations (such as containsAll and retainAll) should + * alternative to traditional {@code int}-based "bit flags." Even bulk + * operations (such as {@code containsAll} and {@code retainAll}) should * run very quickly if their argument is also an enum set. * - *

The iterator returned by the iterator method traverses the + *

The iterator returned by the {@code iterator} method traverses the * elements in their natural order (the order in which the enum * constants are declared). The returned iterator is weakly * consistent: it will never throw {@link ConcurrentModificationException} @@ -50,7 +50,7 @@ * presence of a null element or to remove one will, however, function * properly. * - *

Like most collection implementations, EnumSet is not + *

Like most collection implementations, {@code EnumSet} is not * synchronized. If multiple threads access an enum set concurrently, and at * least one of the threads modifies the set, it should be synchronized * externally. This is typically accomplished by synchronizing on some @@ -106,7 +106,7 @@ * @param elementType the class object of the element type for this enum * set * @return An empty enum set of the specified type. - * @throws NullPointerException if elementType is null + * @throws NullPointerException if {@code elementType} is null */ public static > EnumSet noneOf(Class elementType) { Enum[] universe = getUniverse(elementType); @@ -127,7 +127,7 @@ * @param elementType the class object of the element type for this enum * set * @return An enum set containing all the elements in the specified type. - * @throws NullPointerException if elementType is null + * @throws NullPointerException if {@code elementType} is null */ public static > EnumSet allOf(Class elementType) { EnumSet result = noneOf(elementType); @@ -148,7 +148,7 @@ * @param The class of the elements in the set * @param s the enum set from which to initialize this enum set * @return A copy of the specified enum set. - * @throws NullPointerException if s is null + * @throws NullPointerException if {@code s} is null */ public static > EnumSet copyOf(EnumSet s) { return s.clone(); @@ -156,7 +156,7 @@ /** * Creates an enum set initialized from the specified collection. If - * the specified collection is an EnumSet instance, this static + * the specified collection is an {@code EnumSet} instance, this static * factory method behaves identically to {@link #copyOf(EnumSet)}. * Otherwise, the specified collection must contain at least one element * (in order to determine the new enum set's element type). @@ -164,9 +164,9 @@ * @param The class of the elements in the collection * @param c the collection from which to initialize this enum set * @return An enum set initialized from the given collection. - * @throws IllegalArgumentException if c is not an - * EnumSet instance and contains no elements - * @throws NullPointerException if c is null + * @throws IllegalArgumentException if {@code c} is not an + * {@code EnumSet} instance and contains no elements + * @throws NullPointerException if {@code c} is null */ public static > EnumSet copyOf(Collection c) { if (c instanceof EnumSet) { @@ -191,7 +191,7 @@ * @param The class of the elements in the enum set * @param s the enum set from whose complement to initialize this enum set * @return The complement of the specified set in this set - * @throws NullPointerException if s is null + * @throws NullPointerException if {@code s} is null */ public static > EnumSet complementOf(EnumSet s) { EnumSet result = copyOf(s); @@ -210,7 +210,7 @@ * * @param The class of the specified element and of the set * @param e the element that this set is to contain initially - * @throws NullPointerException if e is null + * @throws NullPointerException if {@code e} is null * @return an enum set initially containing the specified element */ public static > EnumSet of(E e) { @@ -332,7 +332,7 @@ * @param first an element that the set is to contain initially * @param rest the remaining elements the set is to contain initially * @throws NullPointerException if any of the specified elements are null, - * or if rest is null + * or if {@code rest} is null * @return an enum set initially containing the specified elements */ @SafeVarargs