--- old/src/java.naming/share/classes/javax/naming/NameClassPair.java 2015-08-04 13:14:31.068900317 +0300 +++ new/src/java.naming/share/classes/javax/naming/NameClassPair.java 2015-08-04 13:14:30.732900310 +0300 @@ -60,7 +60,7 @@ /** * Contains the name of this NameClassPair. * It is initialized by the constructor and can be updated using - * setName(). + * {@code setName()}. * @serial * @see #getName * @see #setName @@ -70,7 +70,7 @@ /** *Contains the class name contained in this NameClassPair. * It is initialized by the constructor and can be updated using - * setClassName(). + * {@code setClassName()}. * @serial * @see #getClassName * @see #setClassName @@ -80,7 +80,7 @@ /** * Contains the full name of this NameClassPair within its * own namespace. - * It is initialized using setNameInNamespace() + * It is initialized using {@code setNameInNamespace()} * @serial * @see #getNameInNamespace * @see #setNameInNamespace @@ -89,10 +89,10 @@ /** - * Records whether the name of this NameClassPair + * Records whether the name of this {@code NameClassPair} * is relative to the target context. * It is initialized by the constructor and can be updated using - * setRelative(). + * {@code setRelative()}. * @serial * @see #isRelative * @see #setRelative @@ -148,7 +148,7 @@ * Retrieves the class name of the object bound to the name of this binding. * If a reference or some other indirect information is bound, * retrieves the class name of the eventual object that - * will be returned by Binding.getObject(). + * will be returned by {@code Binding.getObject()}. * * @return The possibly null class name of object bound. * It is null if the object bound is null. @@ -162,10 +162,10 @@ /** * Retrieves the name of this binding. - * If isRelative() is true, this name is relative to the + * If {@code isRelative()} is true, this name is relative to the * target context (which is named by the first parameter of the - * list()). - * If isRelative() is false, this name is a URL string. + * {@code list()}). + * If {@code isRelative()} is false, this name is a URL string. * * @return The non-null name of this binding. * @see #isRelative @@ -190,7 +190,7 @@ * Sets the class name of this binding. * * @param name the possibly null string to use as the class name. - * If null, Binding.getClassName() will return + * If null, {@code Binding.getClassName()} will return * the actual class name of the object in the binding. * The class name will be null if the object bound is null. * @see #getClassName @@ -236,7 +236,7 @@ *

* * In naming systems for which the notion of full name does not - * apply to this binding an UnsupportedOperationException + * apply to this binding an {@code UnsupportedOperationException} * is thrown. * This exception is also thrown when a service provider written before * the introduction of the method is in use. @@ -261,11 +261,11 @@ /** * Sets the full name of this binding. * This method must be called to set the full name whenever a - * NameClassPair is created and a full name is + * {@code NameClassPair} is created and a full name is * applicable to this binding. *

* Setting the full name to null, or not setting it at all, will - * cause getNameInNamespace() to throw an exception. + * cause {@code getNameInNamespace()} to throw an exception. * * @param fullName The full name to use. * @since 1.5