src/share/classes/javax/management/remote/JMXPrincipal.java

Print this page

        

@@ -57,11 +57,11 @@
      * @see #getName()
      */
     private String name;
 
     /**
-     * <p>Creates a JMXPrincipal for a given identity.</p>
+     * <p>Creates a JMXPrincipal for a given identity.
      *
      * @param name the JMX Remote API name for this identity.
      *
      * @exception NullPointerException if the <code>name</code> is
      * <code>null</code>.

@@ -72,23 +72,19 @@
     }
 
     /**
      * Returns the name of this principal.
      *
-     * <p>
-     *
      * @return the name of this <code>JMXPrincipal</code>.
      */
     public String getName() {
         return name;
     }
 
     /**
      * Returns a string representation of this <code>JMXPrincipal</code>.
      *
-     * <p>
-     *
      * @return a string representation of this <code>JMXPrincipal</code>.
      */
     public String toString() {
         return("JMXPrincipal:  " + name);
     }

@@ -97,12 +93,10 @@
      * Compares the specified Object with this <code>JMXPrincipal</code>
      * for equality.  Returns true if the given object is also a
      * <code>JMXPrincipal</code> and the two JMXPrincipals
      * have the same name.
      *
-     * <p>
-     *
      * @param o Object to be compared for equality with this
      * <code>JMXPrincipal</code>.
      *
      * @return true if the specified Object is equal to this
      * <code>JMXPrincipal</code>.

@@ -122,12 +116,10 @@
     }
 
     /**
      * Returns a hash code for this <code>JMXPrincipal</code>.
      *
-     * <p>
-     *
      * @return a hash code for this <code>JMXPrincipal</code>.
      */
     public int hashCode() {
         return name.hashCode();
     }