--- old/src/java.management/share/classes/javax/management/openmbean/OpenMBeanConstructorInfo.java 2015-08-05 20:44:40.766426831 +0400
+++ new/src/java.management/share/classes/javax/management/openmbean/OpenMBeanConstructorInfo.java 2015-08-05 20:44:40.554426841 +0400
@@ -60,7 +60,7 @@
/**
* Returns a human readable description of the constructor
- * described by this OpenMBeanConstructorInfo instance.
+ * described by this {@code OpenMBeanConstructorInfo} instance.
*
* @return the description.
*/
@@ -68,16 +68,16 @@
/**
* Returns the name of the constructor
- * described by this OpenMBeanConstructorInfo instance.
+ * described by this {@code OpenMBeanConstructorInfo} instance.
*
* @return the name.
*/
public String getName() ;
/**
- * Returns an array of OpenMBeanParameterInfo instances
+ * Returns an array of {@code OpenMBeanParameterInfo} instances
* describing each parameter in the signature of the constructor
- * described by this OpenMBeanConstructorInfo instance.
+ * described by this {@code OpenMBeanConstructorInfo} instance.
*
* @return the signature.
*/
@@ -88,48 +88,49 @@
//
/**
- * Compares the specified obj parameter with this OpenMBeanConstructorInfo
instance for equality.
+ * Compares the specified obj parameter with this {@code OpenMBeanConstructorInfo} instance for equality.
*
- * Returns true if and only if all of the following statements are true: + * Returns {@code true} if and only if all of the following statements are true: *
OpenMBeanConstructorInfo
interface,OpenMBeanConstructorInfo
interface.
+ * This ensures that this {@code equals} method works properly for obj parameters which are
+ * different implementations of the {@code OpenMBeanConstructorInfo} interface.
* OpenMBeanConstructorInfo
instance;
+ * @param obj the object to be compared for equality with this {@code OpenMBeanConstructorInfo} instance;
*
- * @return true
if the specified object is equal to this OpenMBeanConstructorInfo
instance.
+ * @return {@code true} if the specified object is equal to this {@code OpenMBeanConstructorInfo} instance.
*/
public boolean equals(Object obj);
/**
- * Returns the hash code value for this OpenMBeanConstructorInfo
instance.
+ * Returns the hash code value for this {@code OpenMBeanConstructorInfo} instance.
*
- * The hash code of an OpenMBeanConstructorInfo
instance is the sum of the hash codes
- * of all elements of information used in equals
comparisons
+ * The hash code of an {@code OpenMBeanConstructorInfo} instance is the sum of the hash codes
+ * of all elements of information used in {@code equals} comparisons
* (ie: its name and signature, where the signature hashCode is calculated by a call to
- * java.util.Arrays.asList(this.getSignature).hashCode()).
+ * {@code java.util.Arrays.asList(this.getSignature).hashCode()}).
*
- * This ensures that t1.equals(t2)
implies that t1.hashCode()==t2.hashCode()
- * for any two OpenMBeanConstructorInfo
instances t1
and t2
,
+ * This ensures that {@code t1.equals(t2)} implies that {@code t1.hashCode()==t2.hashCode()}
+ * for any two {@code OpenMBeanConstructorInfo} instances {@code t1} and {@code t2},
* as required by the general contract of the method
* {@link Object#hashCode() Object.hashCode()}.
*
- * @return the hash code value for this OpenMBeanConstructorInfo
instance
+ * @return the hash code value for this {@code OpenMBeanConstructorInfo} instance
*/
public int hashCode();
/**
- * Returns a string representation of this OpenMBeanConstructorInfo
instance.
+ * Returns a string representation of this {@code OpenMBeanConstructorInfo} instance.
*
- * The string representation consists of the name of this class (ie javax.management.openmbean.OpenMBeanConstructorInfo
),
+ * The string representation consists of the name of this class
+ * (ie {@code javax.management.openmbean.OpenMBeanConstructorInfo}),
* and the name and signature of the described constructor.
*
- * @return a string representation of this OpenMBeanConstructorInfo
instance
+ * @return a string representation of this {@code OpenMBeanConstructorInfo} instance
*/
public String toString();