Index: src/test/java/common/org/apache/harmony/nio/tests/java/nio/BufferTest.java =================================================================== --- src/test/java/common/org/apache/harmony/nio/tests/java/nio/BufferTest.java (revision 483902) +++ src/test/java/common/org/apache/harmony/nio/tests/java/nio/BufferTest.java (working copy) @@ -163,13 +163,13 @@ buf.limit(-1); fail("Should throw Exception"); //$NON-NLS-1$ } catch (IllegalArgumentException e) { - // exptected + // expected } try { buf.limit(buf.capacity() + 1); fail("Should throw Exception"); //$NON-NLS-1$ } catch (IllegalArgumentException e) { - // exptected + // expected } // restore state @@ -220,13 +220,13 @@ buf.position(-1); fail("Should throw Exception"); //$NON-NLS-1$ } catch (IllegalArgumentException e) { - // exptected + // expected } try { buf.position(buf.limit() + 1); fail("Should throw Exception"); //$NON-NLS-1$ } catch (IllegalArgumentException e) { - // exptected + // expected } buf.mark(); @@ -250,7 +250,7 @@ buf.reset(); fail("Should throw Exception"); //$NON-NLS-1$ } catch (InvalidMarkException e) { - // exptected + // expected } } @@ -289,7 +289,7 @@ buf.reset(); fail("Should throw Exception"); //$NON-NLS-1$ } catch (InvalidMarkException e) { - // exptected + // expected } // restore state @@ -309,7 +309,7 @@ buf.reset(); fail("Should throw Exception"); //$NON-NLS-1$ } catch (InvalidMarkException e) { - // exptected + // expected } // restore state Index: src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java =================================================================== --- src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java (revision 483902) +++ src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java (working copy) @@ -1715,7 +1715,7 @@ writeOnlyFileChannel.close(); try { writeOnlyFileChannel.map(MapMode.READ_WRITE, 0, -1); - fail("should throw ClosedChannelExeption."); + fail("should throw ClosedChannelException."); } catch (ClosedChannelException ex) { // expected; } @@ -1761,7 +1761,7 @@ readOnlyFileChannel.close(); try { readOnlyFileChannel.map(MapMode.READ_WRITE, 0, -1); - fail("should throw ClosedChannelExeption."); + fail("should throw ClosedChannelException."); } catch (ClosedChannelException ex) { // expected; } @@ -1775,7 +1775,7 @@ readWriteFileChannel.close(); try { readWriteFileChannel.map(MapMode.READ_WRITE, 0, -1); - fail("should throw ClosedChannelExeption."); + fail("should throw ClosedChannelException."); } catch (ClosedChannelException ex) { // expected; } @@ -2268,7 +2268,7 @@ // expected } - // first throws NullPointerExcepiton + // first throws NullPointerException readWriteFileChannel.close(); try { readWriteFileChannel.write(writeBuffers, 0, 0); Index: src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/spi/SelectorProviderTest.java =================================================================== --- src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/spi/SelectorProviderTest.java (revision 483902) +++ src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/spi/SelectorProviderTest.java (working copy) @@ -54,7 +54,7 @@ System.setSecurityManager(new MockSelectorProviderSecurityManager()); try { // should not throw SecurityException since it has been initialized - // in the begining of this method. + // in the beginning of this method. SelectorProvider testProvider = SelectorProvider.provider(); assertNotNull(testProvider); } finally { Index: src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SelectorTest.java =================================================================== --- src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SelectorTest.java (revision 483902) +++ src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SelectorTest.java (working copy) @@ -33,7 +33,7 @@ import tests.support.Support_PortManager; /* - * Tests for Selector and its default implemetation + * Tests for Selector and its default implementation */ public class SelectorTest extends TestCase { Index: src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SocketChannelTest.java =================================================================== --- src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SocketChannelTest.java (revision 483902) +++ src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SocketChannelTest.java (working copy) @@ -301,7 +301,7 @@ assertFalse(this.channel1.isConnected()); assertTrue(this.channel1.isConnectionPending()); Socket s1 = this.channel1.socket(); - // status of not conneted + // status of not connected assertSocketBeforeConnect(s1); Socket s2 = this.channel1.socket(); // same @@ -340,7 +340,7 @@ assertFalse(this.channel1.isConnected()); assertTrue(this.channel1.isConnectionPending()); Socket s1 = this.channel1.socket(); - // Action of not conneted + // Action of not connected assertSocketAction_NonBlock_BeforeConnect(s1); Socket s2 = this.channel1.socket(); // same Index: src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java =================================================================== --- src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java (revision 483902) +++ src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java (working copy) @@ -436,7 +436,7 @@ assertFalse(channel1.isBlocking()); datagramSocket1.close(); } catch (Exception e) { - // do nonthing + // do nothing } } }.start(); @@ -2276,7 +2276,7 @@ Thread.sleep(TIME_UNIT); channel2.close(); } catch (Exception e) { - // do nonthing + // do nothing } } }.start(); Index: src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/ChannelsTest.java =================================================================== --- src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/ChannelsTest.java (revision 483902) +++ src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/ChannelsTest.java (working copy) @@ -43,7 +43,7 @@ /** * Note: the test case uses a temp text file named "test" which contains 31 - * charactors : "P@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]" + * characters : "P@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]" * */ @@ -648,7 +648,7 @@ } /** - * @tests java.nio.channesl.Channels#newReader(ReadableByteChannel channel, + * @tests java.nio.channels.Channels#newReader(ReadableByteChannel channel, * String charsetName) */ public void test_newReader_LReadableByteChannel_LString() Index: src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SelectionKeyTest.java =================================================================== --- src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SelectionKeyTest.java (revision 483902) +++ src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SelectionKeyTest.java (working copy) @@ -29,7 +29,7 @@ import tests.support.Support_PortManager; /* - * Tests for SelectionKey and its default implemetation + * Tests for SelectionKey and its default implementation */ public class SelectionKeyTest extends TestCase { Index: src/test/java/common/org/apache/harmony/nio/tests/java/nio/AbstractBufferTest.java =================================================================== --- src/test/java/common/org/apache/harmony/nio/tests/java/nio/AbstractBufferTest.java (revision 483902) +++ src/test/java/common/org/apache/harmony/nio/tests/java/nio/AbstractBufferTest.java (working copy) @@ -150,13 +150,13 @@ baseBuf.limit(-1); fail("Should throw Exception"); //$NON-NLS-1$ } catch (IllegalArgumentException e) { - // exptected + // expected } try { baseBuf.limit(baseBuf.capacity() + 1); fail("Should throw Exception"); //$NON-NLS-1$ } catch (IllegalArgumentException e) { - // exptected + // expected } // restore state @@ -207,13 +207,13 @@ baseBuf.position(-1); fail("Should throw Exception"); //$NON-NLS-1$ } catch (IllegalArgumentException e) { - // exptected + // expected } try { baseBuf.position(baseBuf.limit() + 1); fail("Should throw Exception"); //$NON-NLS-1$ } catch (IllegalArgumentException e) { - // exptected + // expected } baseBuf.mark(); @@ -237,7 +237,7 @@ baseBuf.reset(); fail("Should throw Exception"); //$NON-NLS-1$ } catch (InvalidMarkException e) { - // exptected + // expected } } @@ -276,7 +276,7 @@ baseBuf.reset(); fail("Should throw Exception"); //$NON-NLS-1$ } catch (InvalidMarkException e) { - // exptected + // expected } // restore state @@ -296,7 +296,7 @@ baseBuf.reset(); fail("Should throw Exception"); //$NON-NLS-1$ } catch (InvalidMarkException e) { - // exptected + // expected } // restore state Index: src/test/java/common/org/apache/harmony/nio/tests/java/nio/DoubleBufferTest.java =================================================================== --- src/test/java/common/org/apache/harmony/nio/tests/java/nio/DoubleBufferTest.java (revision 483902) +++ src/test/java/common/org/apache/harmony/nio/tests/java/nio/DoubleBufferTest.java (working copy) @@ -48,7 +48,7 @@ /* * Test with bit sequences that represent the IEEE754 doubles Positive - * inifinity, negative infinity, and NaN. + * infinity, negative infinity, and NaN. */ public void testNaNs() { long[] nans = new long[] { 0x7ff0000000000000L, 0xfff0000000000000L, Index: src/main/java/java/nio/CharBuffer.java =================================================================== --- src/main/java/java/nio/CharBuffer.java (revision 483902) +++ src/main/java/java/nio/CharBuffer.java (working copy) @@ -124,7 +124,7 @@ *

* The new buffer's position will be start, limit will be * end, capacity will be the length of the char sequence. - * The new buffer is readnly. + * The new buffer is readonly. *

* * @param chseq @@ -396,11 +396,11 @@ } /** - * Returns a char at the specifed index, and the position is not changed. + * Returns a char at the specified index, and the position is not changed. * * @param index * The index, must be no less than zero and less than limit - * @return A char at the specifed index. + * @return A char at the specified index. * @exception IndexOutOfBoundsException * If index is invalid */ @@ -510,7 +510,7 @@ /** * Writes chars in the given char array to the current * position and increase the position by the number of chars - * writtern. + * written. *

* Calling this method has the same effect as * put(src, 0, src.length). @@ -532,7 +532,7 @@ /** * Writes chars in the given char array, starting from the * specified offset, to the current position and increase the position by - * the number of chars writtern. + * the number of chars written. * * @param src * The source char array @@ -638,7 +638,7 @@ /** * Write chars of the given string to the current position * of this buffer, and increase the position by the number of - * chars writtern. + * chars written. * * @param str * The string to write Index: src/main/java/java/nio/Buffer.java =================================================================== --- src/main/java/java/nio/Buffer.java (revision 483902) +++ src/main/java/java/nio/Buffer.java (working copy) @@ -24,7 +24,7 @@ *