4682009: Typo in javadocs in javax/naming

Reviewed-by: lancea, alanb
This commit is contained in:
Ivan Gerasimov 2014-02-15 10:17:35 +04:00
parent ee719c94cd
commit 878d40f04e
12 changed files with 28 additions and 28 deletions

View File

@ -29,7 +29,7 @@ package javax.naming;
* This exception is thrown when an authentication error occurs while * This exception is thrown when an authentication error occurs while
* accessing the naming or directory service. * accessing the naming or directory service.
* An authentication error can happen, for example, when the credentials * An authentication error can happen, for example, when the credentials
* supplied by the user program is invalid or otherwise fails to * supplied by the user program are invalid or otherwise fail to
* authenticate the user to the naming/directory service. * authenticate the user to the naming/directory service.
*<p> *<p>
* If the program wants to handle this exception in particular, it * If the program wants to handle this exception in particular, it
@ -37,7 +37,7 @@ package javax.naming;
* catch NamingException. After catching AuthenticationException, the * catch NamingException. After catching AuthenticationException, the
* program could reattempt the authentication by updating * program could reattempt the authentication by updating
* the resolved context's environment properties with the appropriate * the resolved context's environment properties with the appropriate
* appropriate credentials. * credentials.
* <p> * <p>
* Synchronization and serialization issues that apply to NamingException * Synchronization and serialization issues that apply to NamingException
* apply directly here. * apply directly here.

View File

@ -67,7 +67,7 @@ public class AuthenticationNotSupportedException extends NamingSecurityException
/** /**
* Constructs a new instance of AuthenticationNotSupportedException * Constructs a new instance of AuthenticationNotSupportedException
* all name resolution fields and explanation initialized to null. * with all name resolution fields and explanation initialized to null.
*/ */
public AuthenticationNotSupportedException() { public AuthenticationNotSupportedException() {
super(); super();

View File

@ -64,7 +64,7 @@ public class CannotProceedException extends NamingException {
/** /**
* Contains the remaining unresolved part of the second * Contains the remaining unresolved part of the second
* "name" argument to Context.rename(). * "name" argument to Context.rename().
* This information necessary for * This information is necessary for
* continuing the Context.rename() operation. * continuing the Context.rename() operation.
* <p> * <p>
* This field is initialized to null. * This field is initialized to null.

View File

@ -205,7 +205,7 @@ public class CompositeName implements Name {
private transient NameImpl impl; private transient NameImpl impl;
/** /**
* Constructs a new composite name instance using the components * Constructs a new composite name instance using the components
* specified by 'comps'. This protected method is intended to be * specified by 'comps'. This protected method is intended
* to be used by subclasses of CompositeName when they override * to be used by subclasses of CompositeName when they override
* methods such as clone(), getPrefix(), getSuffix(). * methods such as clone(), getPrefix(), getSuffix().
* *
@ -436,7 +436,7 @@ public class CompositeName implements Name {
/** /**
* Determines whether a composite name is a suffix of this composite name. * Determines whether a composite name is a suffix of this composite name.
* A composite name 'n' is a suffix if it it is equal to * A composite name 'n' is a suffix if it is equal to
* getSuffix(size()-n.size())--in other words, this * getSuffix(size()-n.size())--in other words, this
* composite name ends with 'n'. * composite name ends with 'n'.
* If n is null or not a composite name, false is returned. * If n is null or not a composite name, false is returned.

View File

@ -165,7 +165,7 @@ public class CompoundName implements Name {
/** /**
* Constructs a new compound name instance using the components * Constructs a new compound name instance using the components
* specified in comps and syntax. This protected method is intended to be * specified in comps and syntax. This protected method is intended
* to be used by subclasses of CompoundName when they override * to be used by subclasses of CompoundName when they override
* methods such as clone(), getPrefix(), getSuffix(). * methods such as clone(), getPrefix(), getSuffix().
* *
@ -365,7 +365,7 @@ public class CompoundName implements Name {
* components in this compound name. * components in this compound name.
* The result and this compound name share the same syntax. * The result and this compound name share the same syntax.
* Subsequent changes to * Subsequent changes to
* this compound name does not affect the name that is returned and * this compound name do not affect the name that is returned and
* vice versa. * vice versa.
* *
* @param posn The 0-based index of the component at which to stop. * @param posn The 0-based index of the component at which to stop.
@ -385,7 +385,7 @@ public class CompoundName implements Name {
* components in this compound name. * components in this compound name.
* The result and this compound name share the same syntax. * The result and this compound name share the same syntax.
* Subsequent changes to * Subsequent changes to
* this compound name does not affect the name that is returned. * this compound name do not affect the name that is returned.
* *
* @param posn The 0-based index of the component at which to start. * @param posn The 0-based index of the component at which to start.
* Must be in the range [0,size()]. * Must be in the range [0,size()].
@ -423,7 +423,7 @@ public class CompoundName implements Name {
/** /**
* Determines whether a compound name is a suffix of this compound name. * Determines whether a compound name is a suffix of this compound name.
* A compound name 'n' is a suffix if it it is equal to * A compound name 'n' is a suffix if it is equal to
* getSuffix(size()-n.size())--in other words, this * getSuffix(size()-n.size())--in other words, this
* compound name ends with 'n'. * compound name ends with 'n'.
* If n is null or not a compound name, false is returned. * If n is null or not a compound name, false is returned.

View File

@ -26,11 +26,11 @@
package javax.naming; package javax.naming;
/** /**
* This exception is used to describe problems encounter while resolving links. * This exception is used to describe problems encountered while resolving links.
* Addition information is added to the base NamingException for pinpointing * Additional information is added to the base NamingException for pinpointing
* the problem with the link. * the problem with the link.
*<p> *<p>
* Analogous to how NamingException captures name resolution information, * Analogously to how NamingException captures name resolution information,
* LinkException captures "link"-name resolution information pinpointing * LinkException captures "link"-name resolution information pinpointing
* the problem encountered while resolving a link. All these fields may * the problem encountered while resolving a link. All these fields may
* be null. * be null.
@ -111,7 +111,7 @@ public class LinkException extends NamingException {
protected String linkExplanation; protected String linkExplanation;
/** /**
* Constructs a new instance of LinkException with an explanation * Constructs a new instance of LinkException with an explanation.
* All the other fields are initialized to null. * All the other fields are initialized to null.
* @param explanation A possibly null string containing additional * @param explanation A possibly null string containing additional
* detail about this exception. * detail about this exception.
@ -176,7 +176,7 @@ public class LinkException extends NamingException {
} }
/** /**
* Retrieves the explanation associated with the problem encounter * Retrieves the explanation associated with the problem encountered
* when resolving a link. * when resolving a link.
* *
* @return The possibly null detail string explaining more about the problem * @return The possibly null detail string explaining more about the problem
@ -190,7 +190,7 @@ public class LinkException extends NamingException {
} }
/** /**
* Sets the explanation associated with the problem encounter * Sets the explanation associated with the problem encountered
* when resolving a link. * when resolving a link.
* *
* @param msg The possibly null detail string explaining more about the problem * @param msg The possibly null detail string explaining more about the problem
@ -211,7 +211,7 @@ public class LinkException extends NamingException {
* invoke this method using the resulting composite name. * invoke this method using the resulting composite name.
*<p> *<p>
* A copy of <code>name</code> is made and stored. * A copy of <code>name</code> is made and stored.
* Subsequent changes to <code>name</code> does not * Subsequent changes to <code>name</code> do not
* affect the copy in this NamingException and vice versa. * affect the copy in this NamingException and vice versa.
* *
* *
@ -237,7 +237,7 @@ public class LinkException extends NamingException {
* invoke this method using the resulting composite name. * invoke this method using the resulting composite name.
*<p> *<p>
* A copy of <code>name</code> is made and stored. * A copy of <code>name</code> is made and stored.
* Subsequent changes to <code>name</code> does not * Subsequent changes to <code>name</code> do not
* affect the copy in this NamingException and vice versa. * affect the copy in this NamingException and vice versa.
* *
* @param name The name to set remaining link name to. This can be null. * @param name The name to set remaining link name to. This can be null.

View File

@ -27,7 +27,7 @@ package javax.naming;
/** /**
* This exception is thrown when * This exception is thrown when
* a loop was detected will attempting to resolve a link, or an implementation * a loop was detected while attempting to resolve a link, or an implementation
* specific limit on link counts has been reached. * specific limit on link counts has been reached.
* <p> * <p>
* Synchronization and serialization issues that apply to LinkException * Synchronization and serialization issues that apply to LinkException
@ -42,7 +42,7 @@ package javax.naming;
public class LinkLoopException extends LinkException { public class LinkLoopException extends LinkException {
/** /**
* Constructs a new instance of LinkLoopException with an explanation * Constructs a new instance of LinkLoopException with an explanation.
* All the other fields are initialized to null. * All the other fields are initialized to null.
* @param explanation A possibly null string containing additional * @param explanation A possibly null string containing additional
* detail about this exception. * detail about this exception.

View File

@ -42,7 +42,7 @@ package javax.naming;
public class MalformedLinkException extends LinkException { public class MalformedLinkException extends LinkException {
/** /**
* Constructs a new instance of MalformedLinkException with an explanation * Constructs a new instance of MalformedLinkException with an explanation.
* All the other fields are initialized to null. * All the other fields are initialized to null.
* @param explanation A possibly null string containing additional * @param explanation A possibly null string containing additional
* detail about this exception. * detail about this exception.

View File

@ -201,7 +201,7 @@ public class NamingException extends Exception {
* invoke this method using the resulting composite name. * invoke this method using the resulting composite name.
*<p> *<p>
* A copy of <code>name</code> is made and stored. * A copy of <code>name</code> is made and stored.
* Subsequent changes to <code>name</code> does not * Subsequent changes to <code>name</code> do not
* affect the copy in this NamingException and vice versa. * affect the copy in this NamingException and vice versa.
* *
* @param name The possibly null name to set resolved name to. * @param name The possibly null name to set resolved name to.
@ -225,7 +225,7 @@ public class NamingException extends Exception {
* invoke this method using the resulting composite name. * invoke this method using the resulting composite name.
*<p> *<p>
* A copy of <code>name</code> is made and stored. * A copy of <code>name</code> is made and stored.
* Subsequent changes to <code>name</code> does not * Subsequent changes to <code>name</code> do not
* affect the copy in this NamingException and vice versa. * affect the copy in this NamingException and vice versa.
* @param name The possibly null name to set remaining name to. * @param name The possibly null name to set remaining name to.
* If null, it sets the remaining name field to null. * If null, it sets the remaining name field to null.
@ -279,7 +279,7 @@ public class NamingException extends Exception {
* a compound name, you should "stringify" the compound name * a compound name, you should "stringify" the compound name
* then invoke the overloaded form that accepts a String parameter. * then invoke the overloaded form that accepts a String parameter.
*<p> *<p>
* Subsequent changes to <code>name</code> does not * Subsequent changes to <code>name</code> do not
* affect the remaining name field in this NamingException and vice versa. * affect the remaining name field in this NamingException and vice versa.
* @param name The possibly null name containing ordered components to add. * @param name The possibly null name containing ordered components to add.
* If name is null, this method does not do anything. * If name is null, this method does not do anything.

View File

@ -90,7 +90,7 @@ public abstract class RefAddr implements java.io.Serializable {
/** /**
* Determines whether obj is equal to this RefAddr. * Determines whether obj is equal to this RefAddr.
*<p> *<p>
* obj is equal to this RefAddr all of these conditions are true * obj is equal to this RefAddr if all of these conditions are true
*<ul> *<ul>
*<li> non-null *<li> non-null
*<li> instance of RefAddr *<li> instance of RefAddr

View File

@ -218,8 +218,8 @@ public class Reference implements Cloneable, java.io.Serializable {
* String.compareTo() is used to test the equality of the address types. * String.compareTo() is used to test the equality of the address types.
* *
* @param addrType The non-null address type for which to find the address. * @param addrType The non-null address type for which to find the address.
* @return The address in this reference with address type 'addrType; * @return The address in this reference with address type 'addrType';
* null if no such address exist. * null if no such address exists.
*/ */
public RefAddr get(String addrType) { public RefAddr get(String addrType) {
int len = addrs.size(); int len = addrs.size();

View File

@ -33,7 +33,7 @@ package javax.naming;
* objects which themselves are not directly bound to the naming system. * objects which themselves are not directly bound to the naming system.
* Such objects can implement the Referenceable interface as a way * Such objects can implement the Referenceable interface as a way
* for programs that use that object to determine what its Reference is. * for programs that use that object to determine what its Reference is.
* For example, when binding a object, if an object implements the * For example, when binding an object, if an object implements the
* Referenceable interface, getReference() can be invoked on the object to * Referenceable interface, getReference() can be invoked on the object to
* get its Reference to use for binding. * get its Reference to use for binding.
* *