From 878d40f04e912e7a5447382d51614744a6892974 Mon Sep 17 00:00:00 2001 From: Ivan Gerasimov Date: Sat, 15 Feb 2014 10:17:35 +0400 Subject: [PATCH] 4682009: Typo in javadocs in javax/naming Reviewed-by: lancea, alanb --- .../javax/naming/AuthenticationException.java | 4 ++-- .../AuthenticationNotSupportedException.java | 2 +- .../javax/naming/CannotProceedException.java | 2 +- .../classes/javax/naming/CompositeName.java | 4 ++-- .../share/classes/javax/naming/CompoundName.java | 8 ++++---- .../classes/javax/naming/LinkException.java | 16 ++++++++-------- .../classes/javax/naming/LinkLoopException.java | 4 ++-- .../javax/naming/MalformedLinkException.java | 2 +- .../classes/javax/naming/NamingException.java | 6 +++--- jdk/src/share/classes/javax/naming/RefAddr.java | 2 +- .../share/classes/javax/naming/Reference.java | 4 ++-- .../classes/javax/naming/Referenceable.java | 2 +- 12 files changed, 28 insertions(+), 28 deletions(-) diff --git a/jdk/src/share/classes/javax/naming/AuthenticationException.java b/jdk/src/share/classes/javax/naming/AuthenticationException.java index c66f4eaab31..2c0d788bf5a 100644 --- a/jdk/src/share/classes/javax/naming/AuthenticationException.java +++ b/jdk/src/share/classes/javax/naming/AuthenticationException.java @@ -29,7 +29,7 @@ package javax.naming; * This exception is thrown when an authentication error occurs while * accessing the naming or directory service. * 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. *

* If the program wants to handle this exception in particular, it @@ -37,7 +37,7 @@ package javax.naming; * catch NamingException. After catching AuthenticationException, the * program could reattempt the authentication by updating * the resolved context's environment properties with the appropriate - * appropriate credentials. + * credentials. *

* Synchronization and serialization issues that apply to NamingException * apply directly here. diff --git a/jdk/src/share/classes/javax/naming/AuthenticationNotSupportedException.java b/jdk/src/share/classes/javax/naming/AuthenticationNotSupportedException.java index aae22489f44..2287a3c636a 100644 --- a/jdk/src/share/classes/javax/naming/AuthenticationNotSupportedException.java +++ b/jdk/src/share/classes/javax/naming/AuthenticationNotSupportedException.java @@ -67,7 +67,7 @@ public class AuthenticationNotSupportedException extends NamingSecurityException /** * 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() { super(); diff --git a/jdk/src/share/classes/javax/naming/CannotProceedException.java b/jdk/src/share/classes/javax/naming/CannotProceedException.java index 9754bd768e6..da3f55b1087 100644 --- a/jdk/src/share/classes/javax/naming/CannotProceedException.java +++ b/jdk/src/share/classes/javax/naming/CannotProceedException.java @@ -64,7 +64,7 @@ public class CannotProceedException extends NamingException { /** * Contains the remaining unresolved part of the second * "name" argument to Context.rename(). - * This information necessary for + * This information is necessary for * continuing the Context.rename() operation. *

* This field is initialized to null. diff --git a/jdk/src/share/classes/javax/naming/CompositeName.java b/jdk/src/share/classes/javax/naming/CompositeName.java index 7c79d529959..93ef152c64b 100644 --- a/jdk/src/share/classes/javax/naming/CompositeName.java +++ b/jdk/src/share/classes/javax/naming/CompositeName.java @@ -205,7 +205,7 @@ public class CompositeName implements Name { private transient NameImpl impl; /** * 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 * 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. - * 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 * composite name ends with 'n'. * If n is null or not a composite name, false is returned. diff --git a/jdk/src/share/classes/javax/naming/CompoundName.java b/jdk/src/share/classes/javax/naming/CompoundName.java index 6d41cf861e4..059d951cd71 100644 --- a/jdk/src/share/classes/javax/naming/CompoundName.java +++ b/jdk/src/share/classes/javax/naming/CompoundName.java @@ -165,7 +165,7 @@ public class CompoundName implements Name { /** * 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 * methods such as clone(), getPrefix(), getSuffix(). * @@ -365,7 +365,7 @@ public class CompoundName implements Name { * components in this compound name. * The result and this compound name share the same syntax. * 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. * * @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. * The result and this compound name share the same syntax. * 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. * 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. - * 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 * compound name ends with 'n'. * If n is null or not a compound name, false is returned. diff --git a/jdk/src/share/classes/javax/naming/LinkException.java b/jdk/src/share/classes/javax/naming/LinkException.java index 30f3ea4478f..60ce3d16181 100644 --- a/jdk/src/share/classes/javax/naming/LinkException.java +++ b/jdk/src/share/classes/javax/naming/LinkException.java @@ -26,11 +26,11 @@ package javax.naming; /** - * This exception is used to describe problems encounter while resolving links. - * Addition information is added to the base NamingException for pinpointing + * This exception is used to describe problems encountered while resolving links. + * Additional information is added to the base NamingException for pinpointing * the problem with the link. *

- * Analogous to how NamingException captures name resolution information, + * Analogously to how NamingException captures name resolution information, * LinkException captures "link"-name resolution information pinpointing * the problem encountered while resolving a link. All these fields may * be null. @@ -111,7 +111,7 @@ public class LinkException extends NamingException { 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. * @param explanation A possibly null string containing additional * 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. * * @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. * * @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. *

* A copy of name is made and stored. - * Subsequent changes to name does not + * Subsequent changes to name do not * 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. *

* A copy of name is made and stored. - * Subsequent changes to name does not + * Subsequent changes to name do not * affect the copy in this NamingException and vice versa. * * @param name The name to set remaining link name to. This can be null. diff --git a/jdk/src/share/classes/javax/naming/LinkLoopException.java b/jdk/src/share/classes/javax/naming/LinkLoopException.java index 58b6a65b42a..6865233cf81 100644 --- a/jdk/src/share/classes/javax/naming/LinkLoopException.java +++ b/jdk/src/share/classes/javax/naming/LinkLoopException.java @@ -27,7 +27,7 @@ package javax.naming; /** * 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. *

* Synchronization and serialization issues that apply to LinkException @@ -42,7 +42,7 @@ package javax.naming; 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. * @param explanation A possibly null string containing additional * detail about this exception. diff --git a/jdk/src/share/classes/javax/naming/MalformedLinkException.java b/jdk/src/share/classes/javax/naming/MalformedLinkException.java index f23ef9e40f2..1d7e511fd7c 100644 --- a/jdk/src/share/classes/javax/naming/MalformedLinkException.java +++ b/jdk/src/share/classes/javax/naming/MalformedLinkException.java @@ -42,7 +42,7 @@ package javax.naming; 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. * @param explanation A possibly null string containing additional * detail about this exception. diff --git a/jdk/src/share/classes/javax/naming/NamingException.java b/jdk/src/share/classes/javax/naming/NamingException.java index 030acc6a72f..e1252da5f00 100644 --- a/jdk/src/share/classes/javax/naming/NamingException.java +++ b/jdk/src/share/classes/javax/naming/NamingException.java @@ -201,7 +201,7 @@ public class NamingException extends Exception { * invoke this method using the resulting composite name. *

* A copy of name is made and stored. - * Subsequent changes to name does not + * Subsequent changes to name do not * affect the copy in this NamingException and vice versa. * * @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. *

* A copy of name is made and stored. - * Subsequent changes to name does not + * Subsequent changes to name do not * affect the copy in this NamingException and vice versa. * @param name The possibly null name to set remaining name to. * 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 * then invoke the overloaded form that accepts a String parameter. *

- * Subsequent changes to name does not + * Subsequent changes to name do not * affect the remaining name field in this NamingException and vice versa. * @param name The possibly null name containing ordered components to add. * If name is null, this method does not do anything. diff --git a/jdk/src/share/classes/javax/naming/RefAddr.java b/jdk/src/share/classes/javax/naming/RefAddr.java index 92ac4320f5d..3dc90f21adf 100644 --- a/jdk/src/share/classes/javax/naming/RefAddr.java +++ b/jdk/src/share/classes/javax/naming/RefAddr.java @@ -90,7 +90,7 @@ public abstract class RefAddr implements java.io.Serializable { /** * Determines whether obj is equal to this RefAddr. *

- * 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 *