Index: src/test/java/org/apache/harmony/jndi/tests/javax/naming/InvalidNameExceptionTest.java =================================================================== --- src/test/java/org/apache/harmony/jndi/tests/javax/naming/InvalidNameExceptionTest.java (revision 488597) +++ src/test/java/org/apache/harmony/jndi/tests/javax/naming/InvalidNameExceptionTest.java (working copy) @@ -31,7 +31,7 @@ public class InvalidNameExceptionTest extends TestCase { /** - * Test seriallize InvalidNameException: write a InvalidNameException object + * Test serialize InvalidNameException: write a InvalidNameException object * into a byte array, and read from it. the two object should be equals. */ public void testSerializable_Simple() throws ClassNotFoundException, @@ -74,7 +74,7 @@ } /** - * Test InvalidNameException seriallization compatibility + * Test InvalidNameException serialization compatibility */ public void testSerializable_compatibility() throws InvalidNameException, ClassNotFoundException, IOException { Index: src/test/java/org/apache/harmony/jndi/tests/javax/naming/NoInitialContextExceptionTest.java =================================================================== --- src/test/java/org/apache/harmony/jndi/tests/javax/naming/NoInitialContextExceptionTest.java (revision 488597) +++ src/test/java/org/apache/harmony/jndi/tests/javax/naming/NoInitialContextExceptionTest.java (working copy) @@ -32,7 +32,7 @@ public class NoInitialContextExceptionTest extends TestCase { /** - * Test seriallize NoInitialContextException: write a + * Test serialize NoInitialContextException: write a * NoInitialContextException object into a byte array, and read from it. The * two objects should be equal. */ Index: src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/DirectoryManagerTest.java =================================================================== --- src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/DirectoryManagerTest.java (revision 488597) +++ src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/DirectoryManagerTest.java (working copy) @@ -291,7 +291,7 @@ * factory, and a third one corresponding to a factory that returns null. * The types of these StringRefAddr is "URL". Before all these * StringRefAddr, there is a StringRefAddr whose type is neither "URL" nor - * "url" but contains a vaild URL. Should return an object corresponding to + * "url" but contains a valid URL. Should return an object corresponding to * the URL mentioned in the beginning successfully. * * Try the same when the fed object is Referenceable. Replace the address @@ -541,8 +541,8 @@ /** * When no factory builder is set and the fed object is neither Reference * nor Referenceable (e.g., String), and the environment properties contains - * a vaild factory name, while the fed context's provider resource file also - * contains a vaild factory name. Should return an object created by the + * a valid factory name, while the fed context's provider resource file also + * contains a valid factory name. Should return an object created by the * factory specified by the fed environment properties. */ public void testGetObjectInstance_NoBuilder_NotRef_ValidFactory() @@ -583,8 +583,8 @@ * Before all these StringRefAddr, there is is a MockRefAddr whose type is * also "url" and contains a valid URL which can be used to create an object * successfully, and a StringRefAddr whose type is neither "URL" nor "url" - * but contains a vaild URL. And fed context's provider resource file does - * contain a vaild factory name following another factory that returns null. + * but contains a valid URL. And fed context's provider resource file does + * contain a valid factory name following another factory that returns null. * Should return an object created by the factory specified by the fed * context's environment properties. * Index: src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/NamingManagerTest.java =================================================================== --- src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/NamingManagerTest.java (revision 488597) +++ src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/NamingManagerTest.java (working copy) @@ -454,7 +454,7 @@ * factory, and a third one corresponding to a factory that returns null. * The types of these StringRefAddr is "URL". Before all these * StringRefAddr, there is a StringRefAddr whose type is neither "URL" nor - * "url" but contains a vaild URL. Should return an object corresponding to + * "url" but contains a valid URL. Should return an object corresponding to * the URL mentioned in the beginning successfully. * * Try the same when the fed object is Referenceable. Replace the address @@ -696,8 +696,8 @@ /** * When no factory builder is set and the fed object is neither Reference * nor Referenceable (e.g., String), and the environment properties contains - * a vaild factory name, while the fed context's provider resource file also - * contains a vaild factory name. Should return an object created by the + * a valid factory name, while the fed context's provider resource file also + * contains a valid factory name. Should return an object created by the * factory specified by the fed environment properties. */ public void testGetObjectInstance_NoBuilder_NotRef_ValidFactory() @@ -740,8 +740,8 @@ * Before all these StringRefAddr, there is is a MockRefAddr whose type is * also "url" and contains a valid URL which can be used to create an object * successfully, and a StringRefAddr whose type is neither "URL" nor "url" - * but contains a vaild URL. And fed context's provider resource file does - * contain a vaild factory name following another factory that returns null. + * but contains a valid URL. And fed context's provider resource file does + * contain a valid factory name following another factory that returns null. * Should return an object created by the factory specified by the fed * context's environment properties. * Index: src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/mock/ftp/ftpURLContextFactory.java =================================================================== --- src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/mock/ftp/ftpURLContextFactory.java (revision 488597) +++ src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/mock/ftp/ftpURLContextFactory.java (working copy) @@ -27,7 +27,7 @@ // import util.Log; /** - * Allways succeed. + * Always succeed. */ public class ftpURLContextFactory implements ObjectFactory { public Object getObjectInstance(Object o, Name n, Context c, Hashtable h) Index: src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/mock/MockActionController.java =================================================================== --- src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/mock/MockActionController.java (revision 488597) +++ src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/mock/MockActionController.java (working copy) @@ -50,7 +50,7 @@ } if (actions.get(THROW_NAMINGEXCEPTION) != null) { - throw new NamingException("Mock NamingExcepton"); + throw new NamingException("Mock NamingException"); } if (actions.get(THROW_NULLPOINTEREXCEPTION) != null) { Index: src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/AllTests.java =================================================================== --- src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/AllTests.java (revision 488597) +++ src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/AllTests.java (working copy) @@ -28,9 +28,9 @@ // $JUnit-BEGIN$ suite.addTestSuite(DirectoryManagerTest.class); suite.addTestSuite(DirStateFactoryResultTest.class); - // suite.addTestSuite(NamingManagerExploreTest.class); // run in seperate vm - // suite.addTestSuite(DirectoryManagerBuilderTest.class); // run in seperate vm - // suite.addTestSuite(NamingManagerBuilderTest.class); // run in seperate vm + // suite.addTestSuite(NamingManagerExploreTest.class); // run in separate vm + // suite.addTestSuite(DirectoryManagerBuilderTest.class); // run in separate vm + // suite.addTestSuite(NamingManagerBuilderTest.class); // run in separate vm suite.addTestSuite(NamingManagerTest.class); suite.addTestSuite(ResolveResultTest.class); suite.addTestSuite(DirectoryManagerJCKTest.class); Index: src/test/java/org/apache/harmony/jndi/tests/javax/naming/BinaryRefAddrTest.java =================================================================== --- src/test/java/org/apache/harmony/jndi/tests/javax/naming/BinaryRefAddrTest.java (revision 488597) +++ src/test/java/org/apache/harmony/jndi/tests/javax/naming/BinaryRefAddrTest.java (working copy) @@ -217,7 +217,7 @@ BinaryRefAddr addr1 = new BinaryRefAddr(null, address1); try { addr0.equals(addr1); - fail("Should throw NullPoinerException."); + fail("Should throw NullPointerException."); } catch (NullPointerException e) { } } Index: src/test/java/org/apache/harmony/jndi/tests/javax/naming/NotContextExceptionTest.java =================================================================== --- src/test/java/org/apache/harmony/jndi/tests/javax/naming/NotContextExceptionTest.java (revision 488597) +++ src/test/java/org/apache/harmony/jndi/tests/javax/naming/NotContextExceptionTest.java (working copy) @@ -32,7 +32,7 @@ public class NotContextExceptionTest extends TestCase { /** - * Test seriallize NotContextException: write a NotContextException object + * Test serialize NotContextException: write a NotContextException object * into a byte array, and read from it. the two object should be equals. */ public void testSerializable_Simple() throws ClassNotFoundException, Index: src/test/java/org/apache/harmony/jndi/tests/javax/naming/directory/BasicAttributeTest.java =================================================================== --- src/test/java/org/apache/harmony/jndi/tests/javax/naming/directory/BasicAttributeTest.java (revision 488597) +++ src/test/java/org/apache/harmony/jndi/tests/javax/naming/directory/BasicAttributeTest.java (working copy) @@ -276,7 +276,7 @@ unorderedAttribute.add(0, value); try { unorderedAttribute.add(0, value); - fail("An value already exsit, throw IllegalStateException."); + fail("An value already exist, throw IllegalStateException."); } catch (IllegalStateException e) { } @@ -295,7 +295,7 @@ unorderedAttribute.add(0, persons); try { unorderedAttribute.add(0, newPersons); - fail("An value already exsit, should throw IllegalStateException."); + fail("An value already exist, should throw IllegalStateException."); } catch (IllegalStateException e) { } } @@ -304,7 +304,7 @@ unorderedAttribute.add(0, null); try { unorderedAttribute.add(0, null); - fail("An value already exsit, should throw IllegalStateException."); + fail("An value already exist, should throw IllegalStateException."); } catch (IllegalStateException e) { } @@ -725,7 +725,7 @@ public void testRemove2_DuplicateValue() throws NamingException { Person person = Person.getInstance(); orderedAttribute.add(0, person); - orderedAttribute.add(1, "singal"); + orderedAttribute.add(1, "signal"); orderedAttribute.add(2, person); assertTrue(orderedAttribute.remove(person)); assertEquals(2, orderedAttribute.size()); Index: src/test/java/org/apache/harmony/jndi/tests/javax/naming/NamingExceptionTest.java =================================================================== --- src/test/java/org/apache/harmony/jndi/tests/javax/naming/NamingExceptionTest.java (revision 488597) +++ src/test/java/org/apache/harmony/jndi/tests/javax/naming/NamingExceptionTest.java (working copy) @@ -192,7 +192,7 @@ .getResourceAsStream( "/serialization/javax/naming/NamingException.ser")); NamingException ex = (NamingException) in.readObject(); - assertEquals("test purpsoe", ex.getMessage()); + assertEquals("test purpose", ex.getMessage()); assertEquals(new CompositeName("RemainingName"), ex .getRemainingName()); assertEquals(new CompositeName("RemainingName"), ex Index: src/test/java/org/apache/harmony/jndi/tests/javax/naming/event/NamingExceptionEventTest.java =================================================================== --- src/test/java/org/apache/harmony/jndi/tests/javax/naming/event/NamingExceptionEventTest.java (revision 488597) +++ src/test/java/org/apache/harmony/jndi/tests/javax/naming/event/NamingExceptionEventTest.java (working copy) @@ -57,7 +57,7 @@ try { event = new NamingExceptionEvent(null, ex); - fail("IllegalArugmentException expected"); + fail("IllegalArgumentException expected"); } catch (IllegalArgumentException e) { } Index: src/test/java/org/apache/harmony/jndi/tests/javax/naming/util/Log.java =================================================================== --- src/test/java/org/apache/harmony/jndi/tests/javax/naming/util/Log.java (revision 488597) +++ src/test/java/org/apache/harmony/jndi/tests/javax/naming/util/Log.java (working copy) @@ -174,7 +174,7 @@ public static void main(String args[]) throws Exception { - // NamingException ex = new NamingException("test purpsoe"); + // NamingException ex = new NamingException("test purpose"); // ex.setRemainingName(new CompositeName("RemainingName")); // ex.setResolvedName(new CompositeName("RemainingName")); // ex.setResolvedObj(new Integer(1)); Index: src/test/java/org/apache/harmony/jndi/provider/dns/DNSContextTest.java =================================================================== --- src/test/java/org/apache/harmony/jndi/provider/dns/DNSContextTest.java (revision 488597) +++ src/test/java/org/apache/harmony/jndi/provider/dns/DNSContextTest.java (working copy) @@ -151,7 +151,7 @@ env.put(Context.AUTHORITATIVE, "blah blah blah"); env.put(DNSContext.LOOKUP_ATTR, "MX"); - env.put(DNSContext.RECURSION, "trueee"); + env.put(DNSContext.RECURSION, "true"); env.remove(DNSContext.THREADS_MAX); context = (DNSContext)new DNSContextFactory().getInitialContext(env); assertFalse(TestMgr.getBoolField(context, "authoritative")); Index: src/main/java/org/apache/harmony/jndi/provider/dns/ProviderMgr.java =================================================================== --- src/main/java/org/apache/harmony/jndi/provider/dns/ProviderMgr.java (revision 488597) +++ src/main/java/org/apache/harmony/jndi/provider/dns/ProviderMgr.java (working copy) @@ -302,7 +302,7 @@ * @param buffer buffer to write to * @param startIdx index in buffer to start from * @return updated index - * @throws NullPointerExcetpion if some argument is null + * @throws NullPointerException if some argument is null * @throws DomainProtocolException if string is too long */ public static int writeCharString(String value, byte[] buffer, int startIdx) Index: src/main/java/org/apache/harmony/jndi/provider/dns/Resolver.java =================================================================== --- src/main/java/org/apache/harmony/jndi/provider/dns/Resolver.java (revision 488597) +++ src/main/java/org/apache/harmony/jndi/provider/dns/Resolver.java (working copy) @@ -246,7 +246,7 @@ // 1. Set workZone to the parent of qName; clear queriedServers. // 2. Try to get a complete answer for the workZone from the servers // currently available in SLIST exclude servers from queriedServers. - // 3. update queiriedServers with "visited servers" info. + // 3. update queriedServers with "visited servers" info. // 4. If the complete answer was received - return it to the user;exit. // 5. If the delegation was received: // a) If we already have this server & zone pair in SLIST - skip it. Index: src/main/java/org/apache/harmony/jndi/provider/dns/DomainProtocolException.java =================================================================== --- src/main/java/org/apache/harmony/jndi/provider/dns/DomainProtocolException.java (revision 488597) +++ src/main/java/org/apache/harmony/jndi/provider/dns/DomainProtocolException.java (working copy) @@ -26,7 +26,7 @@ import javax.naming.NamingException; /** - * The exception that can be thrown from the DNS Resovler classes. + * The exception that can be thrown from the DNS Resolver classes. * * @author Alexei Zakharov * @version $Revision: 1.1.2.4 $ Index: src/main/java/org/apache/harmony/jndi/provider/dns/ResolverCache.java =================================================================== --- src/main/java/org/apache/harmony/jndi/provider/dns/ResolverCache.java (revision 488597) +++ src/main/java/org/apache/harmony/jndi/provider/dns/ResolverCache.java (working copy) @@ -122,7 +122,7 @@ // skip records with wildcards in names or with zero TTL if (record.getTtl() > 0 && (record.getName().indexOf('*') == -1)) { entry = new CacheEntry(record, curTime + record.getTtl()); - // remove old occurence if any + // remove old occurrence if any for (int i = 0; i < vect.size(); i++) { CacheEntry exEntry = vect.elementAt(i); ResourceRecord exRec = exEntry.rr; Index: src/main/java/org/apache/harmony/jndi/provider/dns/DNSContext.java =================================================================== --- src/main/java/org/apache/harmony/jndi/provider/dns/DNSContext.java (revision 488597) +++ src/main/java/org/apache/harmony/jndi/provider/dns/DNSContext.java (working copy) @@ -1077,7 +1077,7 @@ } /** - * Removes the property with given name from the contex's environment. + * Removes the property with given name from the context's environment. * @param name the name of the property to remove * @see javax.naming.Context#removeFromEnvironment(java.lang.String) */ Index: src/main/java/org/apache/harmony/jndi/provider/dns/SList.java =================================================================== --- src/main/java/org/apache/harmony/jndi/provider/dns/SList.java (revision 488597) +++ src/main/java/org/apache/harmony/jndi/provider/dns/SList.java (working copy) @@ -341,7 +341,7 @@ } /** - * Returns all occurences of server with specified + * Returns all occurrences of server with specified * @param name hostname * @return found server object or null if not found */ Index: src/main/java/org/apache/harmony/jndi/provider/rmi/registry/RegistryContext.java =================================================================== --- src/main/java/org/apache/harmony/jndi/provider/rmi/registry/RegistryContext.java (revision 488597) +++ src/main/java/org/apache/harmony/jndi/provider/rmi/registry/RegistryContext.java (working copy) @@ -620,7 +620,7 @@ /** * Processes object returned from {@linkplain Registry RMI registry}. - * It unwraps {@link RemoteReference} if neccessary and calls + * It unwraps {@link RemoteReference} if necessary and calls * {@link NamingManager#getObjectInstance(Object, Name, Context, Hashtable)}. * * @param name Index: src/main/java/javax/naming/ldap/InitialLdapContext.java =================================================================== --- src/main/java/javax/naming/ldap/InitialLdapContext.java (revision 488597) +++ src/main/java/javax/naming/ldap/InitialLdapContext.java (working copy) @@ -57,7 +57,7 @@ "java.naming.ldap.control.connect"; //$NON-NLS-1$ /* - * The version of this LDAP context implementaton. + * The version of this LDAP context implementation. */ private static final String THIS_LDAP_VERSION = "3"; //$NON-NLS-1$ @@ -108,7 +108,7 @@ newEnvironment.put(CONNECT_CONTROL, cloneOfCs); } - // Set the enviroment property java.naming.ldap.version to be 3 + // Set the environment property java.naming.ldap.version to be 3 newEnvironment.put(LDAP_VERSION, THIS_LDAP_VERSION); // Initialize the initial context Index: src/main/java/javax/naming/ldap/LdapReferralException.java =================================================================== --- src/main/java/javax/naming/ldap/LdapReferralException.java (revision 488597) +++ src/main/java/javax/naming/ldap/LdapReferralException.java (working copy) @@ -72,7 +72,7 @@ */ /** - * Gets referal context without environment properties. + * Gets referral context without environment properties. * * @return referral context * @throws NamingException @@ -82,7 +82,7 @@ public abstract Context getReferralContext() throws NamingException; /** - * Gets referal context with environment properties. + * Gets referral context with environment properties. * * @param h environment properties * @return referral context @@ -94,7 +94,7 @@ throws NamingException; /** - * Gets referal context with environment properties and an array of LDAPv3 + * Gets referral context with environment properties and an array of LDAPv3 * controls. * * @param h environment properties Index: src/main/java/javax/naming/ldap/LdapContext.java =================================================================== --- src/main/java/javax/naming/ldap/LdapContext.java (revision 488597) +++ src/main/java/javax/naming/ldap/LdapContext.java (working copy) @@ -28,7 +28,7 @@ * Extended operations are dealt with by the extendedOperation * method. All other methods relate to the use of controls. Controls are extra * information provided to or from an LDAP v3 server. Controls are either of the - * type Request or Reponse. There is a special type of + * type Request or Response. There is a special type of * request controls known as connection controls.

*

* Connection controls are used by a service provider when connecting or Index: src/main/java/javax/naming/spi/NamingManager.java =================================================================== --- src/main/java/javax/naming/spi/NamingManager.java (revision 488597) +++ src/main/java/javax/naming/spi/NamingManager.java (working copy) @@ -620,7 +620,7 @@ *

*

* Once a first factory is created, it is used to create the context, and NO - * further attemptions will be made on other pkg prefixes. + * further attempts will be made on other pkg prefixes. *

* * @param schema Index: src/main/java/javax/naming/spi/ObjectFactoryBuilder.java =================================================================== --- src/main/java/javax/naming/spi/ObjectFactoryBuilder.java (revision 488597) +++ src/main/java/javax/naming/spi/ObjectFactoryBuilder.java (working copy) @@ -41,13 +41,13 @@ */ /** - * Returns an ObjectFactory customised by the + * Returns an ObjectFactory customized by the * envmt parameter that is capable of creating instances * of the object o. * * @param o may be null * @param envmt may be null - * @return an ObjectFactory customised by the + * @return an ObjectFactory customized by the * envmt parameter that is capable of creating * instances of the object o. * @throws NamingException if an object factory could not be created. Index: src/main/java/javax/naming/spi/InitialContextFactory.java =================================================================== --- src/main/java/javax/naming/spi/InitialContextFactory.java (revision 488597) +++ src/main/java/javax/naming/spi/InitialContextFactory.java (working copy) @@ -40,7 +40,7 @@ /** * Returns a non-null initial context object on which naming operations can be * invoked. The specified envmt parameter may be null or may be - * used to customise the requested Context object. The + * used to customize the requested Context object. The * implementation may clone or copy the envmt object, * but will not modify the original object. * Index: src/main/java/javax/naming/spi/StateFactory.java =================================================================== --- src/main/java/javax/naming/spi/StateFactory.java (revision 488597) +++ src/main/java/javax/naming/spi/StateFactory.java (working copy) @@ -51,7 +51,7 @@ /** * Returns a new instance of the specified object o - * containing the state of the object to be bound, customised by the + * containing the state of the object to be bound, customized by the * specified envmt parameter. The name and context * parameters optionally specify the name of the object being created. * @@ -64,7 +64,7 @@ * Context.STATE_FACTORIES. Each state factory in the * resulting list is used by NamingManager.getStateToBind() * which invokes this method on each of them until a non-null result is - * achieved or until the list is exhausted. If a StatetFactory + * achieved or until the list is exhausted. If a StateFactory * throws an exception, it should be passed back to the code that * invoked NamingManager.getStateToBind() and no further * state factories in the list are examined. An exception should only be @@ -86,7 +86,7 @@ * object, but will not modify the original. * @return either a new instance of the specified object * o containing the state of the object to be - * bound, customised by the specified + * bound, customized by the specified * envmt parameter. Or null if no object could * be created. * @throws NamingException if it is intended that no other state Index: src/main/java/javax/naming/spi/ObjectFactory.java =================================================================== --- src/main/java/javax/naming/spi/ObjectFactory.java (revision 488597) +++ src/main/java/javax/naming/spi/ObjectFactory.java (working copy) @@ -42,7 +42,7 @@ /** * Creates an object of the type specified by parameter o, - * including any reference or location details, customised by the specified + * including any reference or location details, customized by the specified * envmt parameter. *

* Object factories are specified via environment properties from several Index: src/main/java/javax/naming/Name.java =================================================================== --- src/main/java/javax/naming/Name.java (revision 488597) +++ src/main/java/javax/naming/Name.java (working copy) @@ -44,7 +44,7 @@ public interface Name extends Cloneable, Serializable, Comparable { /* - * SUID declared publically in the spec. + * SUID declared publicly in the spec. */ public static final long serialVersionUID = -3617482732056931635L; Index: src/main/java/javax/naming/directory/NoSuchAttributeException.java =================================================================== --- src/main/java/javax/naming/directory/NoSuchAttributeException.java (revision 488597) +++ src/main/java/javax/naming/directory/NoSuchAttributeException.java (working copy) @@ -21,7 +21,7 @@ import javax.naming.NamingException; /** - * Thrown when an attempt is made to access a non-existant attribute. + * Thrown when an attempt is made to access a non-existent attribute. */ public class NoSuchAttributeException extends NamingException { Index: src/main/java/javax/naming/directory/Attribute.java =================================================================== --- src/main/java/javax/naming/directory/Attribute.java (revision 488597) +++ src/main/java/javax/naming/directory/Attribute.java (working copy) @@ -55,7 +55,7 @@ * and getAttributeSyntaxDefinition return the schema definitions * if they exist.

*

- * Note that updates to the attribute via ths interface do not affect the + * Note that updates to the attribute via this interface do not affect the * directory directly. The only mechanism for modifying the directory is * through the {@link DirContext}.

*

@@ -141,7 +141,7 @@ Object clone(); /** - * Inidicates whether the specified value is one of the attribute's values. + * Indicates whether the specified value is one of the attribute's values. * * @param val the value which may be null * @return true if this attribute contains the value, Index: src/main/java/javax/naming/directory/SearchResult.java =================================================================== --- src/main/java/javax/naming/directory/SearchResult.java (revision 488597) +++ src/main/java/javax/naming/directory/SearchResult.java (working copy) @@ -21,7 +21,7 @@ /** * SearchResult returned from a search on a directory context - * and is provided by a NaminEnumeration. + * and is provided by a NamingEnumeration. *

* This class is not thread-safe.

* Index: src/main/java/javax/naming/directory/BasicAttribute.java =================================================================== --- src/main/java/javax/naming/directory/BasicAttribute.java (revision 488597) +++ src/main/java/javax/naming/directory/BasicAttribute.java (working copy) @@ -185,7 +185,7 @@ } /* - * Determine whether the two valuess are equal with each other, considering + * Determine whether the two values are equal with each other, considering * the possibility that they might be both arrays so that each element of * them has to be compared. */ Index: src/main/java/javax/naming/directory/InvalidAttributesException.java =================================================================== --- src/main/java/javax/naming/directory/InvalidAttributesException.java (revision 488597) +++ src/main/java/javax/naming/directory/InvalidAttributesException.java (working copy) @@ -21,7 +21,7 @@ /** * Thrown when an attempt is made to set attributes that are invalid for - * the entry they are being targetted. + * the entry they are being targeted. *

* Examples include schema restrictions for attributes such as specific values * required, attributes that must be set exclusively of others, and so on.

Index: src/main/java/javax/naming/directory/InvalidSearchControlsException.java =================================================================== --- src/main/java/javax/naming/directory/InvalidSearchControlsException.java (revision 488597) +++ src/main/java/javax/naming/directory/InvalidSearchControlsException.java (working copy) @@ -23,7 +23,7 @@ * Thrown when the SearchControls for a given search are * invalid. *

- * For example, the search controls would be invlaid if the scope is not + * For example, the search controls would be invalid if the scope is not * one of the defined class constants.

* * Index: src/main/java/javax/naming/directory/DirContext.java =================================================================== --- src/main/java/javax/naming/directory/DirContext.java (revision 488597) +++ src/main/java/javax/naming/directory/DirContext.java (working copy) @@ -61,14 +61,14 @@ *

*

* The directory service provider can implement either of these logical models, and the client - * is expeced to know which model it is dealing with.

+ * is expected to know which model it is dealing with.

* * Attribute Name aliasing *

- * Directory service providers are free to implement attribute name alising. If the service - * employs alising then the list of attribute names that are returned as a result of API + * Directory service providers are free to implement attribute name aliasing. If the service + * employs aliasing then the list of attribute names that are returned as a result of API * calls to get a named attribute, or search for a set of attributes may include attributes - * whose name was not in the search list. Implmentations should not rely on the preservation + * whose name was not in the search list. Implementations should not rely on the preservation * of attribute names.

* * Searching and operational attributes @@ -208,7 +208,7 @@ * Binds a string name to an Object in this directory * to produce a binding. * - * @param s the string representive of name to be bound + * @param s the string representative of name to be bound * @param obj the object to be bound * @param attributes the attributes of this binding, can be null * @throws NamingException thrown if any occurs @@ -242,7 +242,7 @@ /** * Creates and binds a new subcontext. * - * @param s the string representive of name bound to the new subcontext + * @param s the string representative of name bound to the new subcontext * @param attributes the attributes of the new subcontxt, can be null * @return the new subcontext * @throws NamingException If any occurs. @@ -278,7 +278,7 @@ * This method throws any NamingException that occurs.

* * @param name name to be searched for attributes - * @param as the array of strings to match atrrbiutes + * @param as the array of strings to match attributes * @return all attributes for name that match * the strings in array as. * @throws NamingException If any occurs. @@ -288,7 +288,7 @@ /** * Gets all attributes of name represented by s. * - * @param s representive of name to be searched for attributes + * @param s representative of name to be searched for attributes * @return all attributes of name represented by s * @throws NamingException If any occurs. * @see #getAttributes(Name name) @@ -299,8 +299,8 @@ * Gets the attributes for name represented by s that match the strings in * array as. * - * @param s representive of name to be searched for attributes - * @param as the array of strings to match atrrbiutes + * @param s representative of name to be searched for attributes + * @param as the array of strings to match attributes * @return all attributes for name represented by * s that match the strings in array * as. @@ -326,7 +326,7 @@ /** * Gets the top level of the schema for name represented by s. * - * @param s representive of name to be searched for schema + * @param s representative of name to be searched for schema * @return the top level of the schema for object name * @throws NamingException If any occurs. * @see #getSchema(Name name) @@ -356,7 +356,7 @@ /** * Gets the class definition for name represented by s from its schema. * - * @param s the string representive of name to searched for + * @param s the string representative of name to searched for * the class definition from its schema * @return the class definition for name from * its schema. @@ -457,7 +457,7 @@ /** * Rebinds name represented by s to obj. * - * @param s the string representive of name to be bound + * @param s the string representative of name to be bound * @param obj the object to be bound * @param attributes the attributes of the binding * @throws NamingException If any occurs. @@ -480,7 +480,7 @@ * * @param name the name specifies the context to be searched * @param attributes the attributes to be matched when search - * @return NamngEnumeration of SearchResult + * @return NamingEnumeration of SearchResult * @throws NamingException If any occurs. * @see #search(Name name, Attributes attributes, String[] as) */ @@ -529,8 +529,8 @@ * * @param name the name specifies the context to be searched * @param attributes the attributes to be matched when search - * @param as the array of string representive of attributes to be returned - * @return NamngEnumeration of SearchResult + * @param as the array of string representative of attributes to be returned + * @return NamingEnumeration of SearchResult * @throws NamingException If any occurs. */ NamingEnumeration search(Name name, Attributes attributes, @@ -539,7 +539,7 @@ /** * This method searches in the context specified by name only, - * using the fileter specifed by parameter filter and controlled by + * using the filter specified by parameter filter and controlled by * searchControls. * *

@@ -580,7 +580,7 @@ * * @param name the name specifies the context to be searched * @param filter the search filter - * @param objs array of objects refered by search filter + * @param objs array of objects referred by search filter * @param searchControls the search controls * @return NamingEnumeration of SearchResult * @throws NamingException If any occurs. @@ -595,7 +595,7 @@ /** * This method searches in the context specified by name only, - * using the fileter specifed by parameter filter and controlled by + * using the filter specified by parameter filter and controlled by * searchControls. *

* This method can throw InvalidSearchFilterException, @@ -619,7 +619,7 @@ * only, for any objects that have attributes that match the * attributes parameter. * - * @param name the string representive of name which specifies + * @param name the string representative of name which specifies * the context to be searched * @param attributes the attributes to be matched when search * @return NamingEnumeration of SearchResult @@ -634,10 +634,10 @@ * name only, for any objects that have attributes that match * the attributes parameter. * - * @param name the string representive of name which specifies + * @param name the string representative of name which specifies * the context to be searched * @param attributes the attributes to be matched when search - * @param as the array of string representive of attributes to be returned + * @param as the array of string representative of attributes to be returned * @return NamingEnumeration of SearchResult * @throws NamingException If any occurs. * @see #search(Name, Attributes, String[]) @@ -648,15 +648,15 @@ /** * This method searches in the context specified by name represented by - * name only, using the fileter specifed by parameter + * name only, using the filter specified by parameter * filter and controlled by searchControls. * - * @param name the string representive of name which specifies + * @param name the string representative of name which specifies * the context to be searched * @param filter the search filter - * @param objs array of objects refered by search filter + * @param objs array of objects referred by search filter * @param searchControls the search controls - * @return NamngEnumeration of SearchResult + * @return NamingEnumeration of SearchResult * @throws NamingException If any occurs. * @see #search(Name, String, Object[], SearchControls) */ @@ -669,10 +669,10 @@ /** * This method searches in the context specified by name represented by - * name only, using the fileter specifed by parameter + * name only, using the filter specified by parameter * filter and controlled by searchControls. * - * @param name the string representive of name which specifies + * @param name the string representative of name which specifies * the context to be searched * @param filter the search filter * @param searchControls the search controls Index: src/main/java/javax/naming/directory/ModificationItem.java =================================================================== --- src/main/java/javax/naming/directory/ModificationItem.java (revision 488597) +++ src/main/java/javax/naming/directory/ModificationItem.java (working copy) @@ -73,7 +73,7 @@ */ /** - * Constructs a ModificaitionItem instance with all parameters. + * Constructs a ModificationItem instance with all parameters. * * @param operation an operation code chosen from DirContext.ADD_ATTRIBUTE, * DirContext.REPLACE_ATTRIBUTE, Index: src/main/java/javax/naming/directory/Attributes.java =================================================================== --- src/main/java/javax/naming/directory/Attributes.java (revision 488597) +++ src/main/java/javax/naming/directory/Attributes.java (working copy) @@ -107,7 +107,7 @@ Attribute put(Attribute attribute); /** - * Places a new attribuet with the supplied ID and value into the attribute + * Places a new attribute with the supplied ID and value into the attribute * collection. * If there is already an attribute with the same ID, the old one is removed * from the collection and is returned by this method. If there was no Index: src/main/java/javax/naming/directory/BasicAttributes.java =================================================================== --- src/main/java/javax/naming/directory/BasicAttributes.java (revision 488597) +++ src/main/java/javax/naming/directory/BasicAttributes.java (working copy) @@ -97,7 +97,7 @@ * Constructs a BasicAttributes instance which is * case-sensitive if flag is false. * - * @param flag Inidicates whether this instance is + * @param flag Indicates whether this instance is * case-insensitive. */ public BasicAttributes(boolean flag) { @@ -121,7 +121,7 @@ * * @param attrId the ID of the first attribute * @param attrObj the value of the first attribute - * @param flag Inidicates whether this instance is + * @param flag Indicates whether this instance is * case-insensitive. */ public BasicAttributes(String attrId, Object attrObj, boolean flag) { Index: src/main/java/javax/naming/directory/SearchControls.java =================================================================== --- src/main/java/javax/naming/directory/SearchControls.java (revision 488597) +++ src/main/java/javax/naming/directory/SearchControls.java (working copy) @@ -69,14 +69,14 @@ * context. *

* The search will take place over the object, or if the object is a - * context then the object and all objects that are reachable fromt he + * context then the object and all objects that are reachable from he * given context.

*

* The names that are returned in the enumeration are defined to be * either relative names to the given root, or full URIs of the matching * objects.

*

- * The seach is defined to no cross naming system boundaries.

+ * The search is defined to no cross naming system boundaries.

*/ public static final int SUBTREE_SCOPE = 2; @@ -102,7 +102,7 @@ private int searchScope; /** - * Seach time limitation. + * search time limitation. *

* Maximum number of milliseconds to wait for the search to complete.

* Index: src/main/java/javax/naming/directory/InitialDirContext.java =================================================================== --- src/main/java/javax/naming/directory/InitialDirContext.java (revision 488597) +++ src/main/java/javax/naming/directory/InitialDirContext.java (working copy) @@ -81,7 +81,7 @@ * Constructs a new InitialDirContext instance with * environment properties. * - * @param hashtable Contains the enironment parameters. This constructor + * @param hashtable Contains the environment parameters. This constructor * will not change the hashtable or keep a reference to * it. The hashtable parameter may be null. * @throws NamingException Index: src/main/java/javax/naming/CompoundName.java =================================================================== --- src/main/java/javax/naming/CompoundName.java (revision 488597) +++ src/main/java/javax/naming/CompoundName.java (working copy) @@ -159,7 +159,7 @@ * An empty CompoundName is the name "" and has no elements. * * When jndi.syntax.beginquote is set to " and beginquote2 is set to ' - * the behaviour is simliar to CompositeName - + * the behaviour is similar to CompositeName - * The name "\"abcd" gives an InvalidNameException as there is no closing quote. * The name "'\"abcd'" gives one element of value "abcd. * The name "\\abcd" gives one element of value \abcd. @@ -358,7 +358,7 @@ // direction's default value is FLAT direction = null == (property = props.getProperty(DIRECTION)) ? FLAT : property; - //if direction value must equals to one of FLAT, LEFT_TO_RIGHT and RIGHT_TO_LEFT, exception throwed + //if direction value must equals to one of FLAT, LEFT_TO_RIGHT and RIGHT_TO_LEFT, exception threw if (!LEFT_TO_RIGHT.equals(direction) && !RIGHT_TO_LEFT.equals(direction) && !FLAT.equals(direction)) { // jndi.04=Illegal direction property value, which must be one of right_to_left, left_to_right or flat Index: src/main/java/javax/naming/NamingException.java =================================================================== --- src/main/java/javax/naming/NamingException.java (revision 488597) +++ src/main/java/javax/naming/NamingException.java (working copy) @@ -42,7 +42,7 @@ * It can also refer to the object that is associated with the resolved name. *

*

- * Additionaly it can refer to another exception, which may be the root cause of + * Additionally it can refer to another exception, which may be the root cause of * this exception. *

*

Index: src/main/java/javax/naming/InitialContext.java =================================================================== --- src/main/java/javax/naming/InitialContext.java (revision 488597) +++ src/main/java/javax/naming/InitialContext.java (working copy) @@ -158,7 +158,7 @@ * used in an InitialContext subclass constructor in which * later action will set up a Hashtable object with appropriate * environment properties and pass that to the init method to - * complete initalization of the InitialContext object.

+ * complete initialization of the InitialContext object.

* * @param doNotInit Specifies whether to initialize the new instance. * @throws NamingException If failed to create an InitialContext. @@ -328,7 +328,7 @@ String scheme = UrlParser.getScheme(name); Context ctx = null; if (null != scheme) { - // So the first componet is a valid URL + // So the first component is a valid URL ctx = NamingManager.getURLContext(scheme, myProps); } return null == ctx ? getDefaultInitCtx() : ctx; Index: src/main/java/javax/naming/event/ObjectChangeListener.java =================================================================== --- src/main/java/javax/naming/event/ObjectChangeListener.java (revision 488597) +++ src/main/java/javax/naming/event/ObjectChangeListener.java (working copy) @@ -43,7 +43,7 @@ *

* The changes can be deduced by querying namingEvent, especially * NamingEvent.getNewBinding() and - * NamingEvent.getOldBindng().

+ * NamingEvent.getOldBinding().

* * @param namingEvent the event notification */ Index: src/main/java/javax/naming/event/EventContext.java =================================================================== --- src/main/java/javax/naming/event/EventContext.java (revision 488597) +++ src/main/java/javax/naming/event/EventContext.java (working copy) @@ -145,7 +145,7 @@ * Checks if the implementation supports registration for names that are * not (yet) bound in this context. * - * @return false if implemention supports this, otherwise + * @return false if implementation supports this, otherwise * true if the implementation does not support this. * @throws NamingException If the support is not known. */ Index: src/main/java/javax/naming/event/NamingExceptionEvent.java =================================================================== --- src/main/java/javax/naming/event/NamingExceptionEvent.java (revision 488597) +++ src/main/java/javax/naming/event/NamingExceptionEvent.java (working copy) @@ -61,7 +61,7 @@ * @param eventContext context that generated this event. It is the * originator of this event and cannot be null. * @param namingException - * the associated exception and cannnot be null. + * the associated exception and cannot be null. */ public NamingExceptionEvent( EventContext eventContext, Index: src/main/java/javax/naming/event/NamingEvent.java =================================================================== --- src/main/java/javax/naming/event/NamingEvent.java (revision 488597) +++ src/main/java/javax/naming/event/NamingEvent.java (working copy) @@ -241,7 +241,7 @@ * Gets the binding after this event. *

* If it exists and is inside the scope that was specified when the listener - * was registered using EventContext.addNamimgListener. + * was registered using EventContext.addNamingListener. * Returns null otherwise. Therefore for an OBJECT_RENAMED * event, the return value will be non-null if the new name places the * binding within the scope for the listener.

@@ -256,7 +256,7 @@ * Gets the binding before this event. *

* If it existed and was inside the scope that was specified when the - * listener was registered using EventContext.addNamimgListener. + * listener was registered using EventContext.addNamingListener. * Returns null otherwise. Therefore for an OBJECT_RENAMED * event, the return value will be non-null if the old name placed the * binding within the scope for the listener.

Index: src/main/java/javax/naming/CompositeName.java =================================================================== --- src/main/java/javax/naming/CompositeName.java (revision 488597) +++ src/main/java/javax/naming/CompositeName.java (working copy) @@ -101,7 +101,7 @@ * Element 3 is "b".

*

* Interestingly the name "a/a'a/b/b" is valid and has 4 elements. This is - * beacuse the single quote char ' is not a leading quote and is embedded in + * because the single quote char ' is not a leading quote and is embedded in * an element so is treated as a character. * Element 0 is "a". * Element 1 is "a'a". Index: src/main/java/javax/naming/LinkException.java =================================================================== --- src/main/java/javax/naming/LinkException.java (revision 488597) +++ src/main/java/javax/naming/LinkException.java (working copy) @@ -117,7 +117,7 @@ * If boolean b is set to false then the behavior is the same * as toString(). * - * @param b Indicates if the resolved object need to be outputed. + * @param b Indicates if the resolved object need to be outputted. * @return the string representation of this NamingException * together with the details of the remaining name. */ Index: src/main/java/javax/naming/ReferralException.java =================================================================== --- src/main/java/javax/naming/ReferralException.java (revision 488597) +++ src/main/java/javax/naming/ReferralException.java (working copy) @@ -55,7 +55,7 @@ /** * Constructs a ReferralException instance - * with the specified message. All other fields are initialised to null. + * with the specified message. All other fields are initialized to null. * * @param s The detail message for this exception. It may be null. */ Index: src/main/java/javax/naming/NameClassPair.java =================================================================== --- src/main/java/javax/naming/NameClassPair.java (revision 488597) +++ src/main/java/javax/naming/NameClassPair.java (working copy) @@ -231,7 +231,7 @@ } buf.append(getName()); buf.append(": "); //$NON-NLS-1$ - buf.append(getClassName()); // getClassName() is overrided by subclass + buf.append(getClassName()); // getClassName() is overridden by subclass return buf.toString(); } Index: src/main/java/javax/naming/ServiceUnavailableException.java =================================================================== --- src/main/java/javax/naming/ServiceUnavailableException.java (revision 488597) +++ src/main/java/javax/naming/ServiceUnavailableException.java (working copy) @@ -36,7 +36,7 @@ /** * Constructs a ServiceUnavailableException instance - * with all data initialised to null. + * with all data initialized to null. */ public ServiceUnavailableException() { super(); Index: src/main/java/javax/naming/Context.java =================================================================== --- src/main/java/javax/naming/Context.java (revision 488597) +++ src/main/java/javax/naming/Context.java (working copy) @@ -128,8 +128,8 @@ * "java.naming.ldap.".

*

* Feature-specific JNDI properties may be used by all service providers - * offering implementations using a particular flavour of a feature and would - * include the feature name and the particular flavour name in the property + * offering implementations using a particular flavor of a feature and would + * include the feature name and the particular flavor name in the property * name prefix. A common example is SASL used by several service providers for * security; appropriate SASL feature-specific properties would use prefix * "java.naming.security.sasl.".