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.
*
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 @@
*
- * Particular implementations or sub-interfaces of Channel dictate whther they + * Particular implementations or sub-interfaces of Channel dictate whether they * are thread-safe or not. *
* @@ -56,7 +56,7 @@ * ** If multiple threads attempts to simultaneously close a channel, then only - * one thread will runthe closure code, and others will be blocked until the + * one thread will run the closure code, and others will be blocked until the * first returns. *
* Index: src/main/java/java/nio/channels/FileChannel.java =================================================================== --- src/main/java/java/nio/channels/FileChannel.java (revision 483902) +++ src/main/java/java/nio/channels/FileChannel.java (working copy) @@ -37,11 +37,11 @@ * write-only. FileChannels created from a RandomAccessFile created in mode "rw" * are read/write. FileChannels created from a RandomAccessFile that was opened * in append-mode will also be in append-mode -- meaning that each write will be - * preceeded by a seek to the end of file. Some platforms will seek and write + * proceeded by a seek to the end of file. Some platforms will seek and write * atomically, others will not. * *- * FileChannels has a virtual pointer into the file which is refered to as a + * FileChannels has a virtual pointer into the file which is referred to as a * file position. The position can be manipulated by repositioning * it within the file, and its current position can be queried. *
@@ -165,7 +165,7 @@ * @throws ClosedChannelException * if the channel is already closed. * @throws IOException - * some other problem occured. + * some other problem occurred. */ public abstract void force(boolean metadata) throws IOException; @@ -195,7 +195,7 @@ * The channel was closed while the calling thread was waiting * to acquire the lock. * @throws IOException - * some other problem occured obtaining the requested lock. + * some other problem occurred obtaining the requested lock. */ public final FileLock lock() throws IOException { return lock(0L, Long.MAX_VALUE, false); @@ -382,7 +382,7 @@ * operation is in progress. The calling thread will have the * interrupt state set, and the channel will be closed. * @throws IOException - * some other IO error occured. + * some other IO error occurred. */ public abstract int read(ByteBuffer buffer, long position) throws IOException; @@ -435,7 +435,7 @@ * Transfers bytes into this channel's file from the given readable byte * channel. It may be very efficient. * - * By invoking this methid, it will read form the source channel and write + * By invoking this method, it will read form the source channel and write * into the file channel. * * Note: no guarantee whether all bytes may be transferred. And it does not @@ -471,7 +471,7 @@ * Transfers data from the file to the given channel. It may be very * efficient. * - * By invoking this methid, it will read form the file and write into the + * By invoking this method, it will read form the file and write into the * writable channel. * * Note: no guarantee whether all bytes may be transfered.And it does not @@ -524,7 +524,7 @@ * @throws NonWritableChannelException * the channel cannot be written. * @throws IOException - * some other IO problem occured. + * some other IO problem occurred. * @return this channel */ public abstract FileChannel truncate(long size) throws IOException; @@ -568,7 +568,7 @@ * * * @param position - * the starting positon + * the starting position * @param size * the size of file to lock * @param shared @@ -630,7 +630,7 @@ * @throws IllegalArgumentException * ifposition is less than -1.
* @throws ClosedChannelException
- * if the channel is aleady closed.
+ * if the channel is already closed.
* @throws NonWritableChannelException
* if the channel was not opened in write-mode.
* @throws AsynchronousCloseException
@@ -641,7 +641,7 @@
* operation is in progress. The calling thread will have the
* interrupt state set, and the channel will be closed.
* @throws IOException
- * some other IO error occured.
+ * some other IO error occurred.
*/
public abstract int write(ByteBuffer buffer, long position)
throws IOException;
Index: src/main/java/java/nio/channels/spi/AbstractSelectableChannel.java
===================================================================
--- src/main/java/java/nio/channels/spi/AbstractSelectableChannel.java (revision 483902)
+++ src/main/java/java/nio/channels/spi/AbstractSelectableChannel.java (working copy)
@@ -31,7 +31,7 @@
/**
* Abstract class for selectable channels.
* - * In this class, there are methods about registring/deregistering a channel, + * In this class, there are methods about registering/deregistering a channel, * about channel closing. It realize the multi-thread safe. *
* @@ -165,7 +165,7 @@ * Implement the closing function of the SelectableChannel. * * @throws IOException - * If some I/O exception occured. + * If some I/O exception occurred. */ protected abstract void implCloseSelectableChannel() throws IOException; @@ -219,7 +219,7 @@ *true for blocking mode; false
* for non-blocking mode.
* @throws IOException
- * If some I/O exception occured.
+ * If some I/O exception occurred.
*/
protected abstract void implConfigureBlocking(boolean blockingMode)
throws IOException;
Index: src/main/java/java/nio/channels/spi/AbstractSelector.java
===================================================================
--- src/main/java/java/nio/channels/spi/AbstractSelector.java (revision 483902)
+++ src/main/java/java/nio/channels/spi/AbstractSelector.java (working copy)
@@ -106,7 +106,7 @@
* The interest set.
* @param attachment
* The attachment of the key.
- * @return The key related with the channel and the selecotr.
+ * @return The key related with the channel and the selector.
*/
protected abstract SelectionKey register(AbstractSelectableChannel channel,
int operations, Object attachment);
@@ -123,7 +123,7 @@
}
protected final void begin() {
- // FIXME: be accomodate before VM actually provides
+ // FIXME: be accommodate before VM actually provides
// setInterruptAction method
if (AbstractInterruptibleChannel.setInterruptAction != null) {
try {
@@ -140,7 +140,7 @@
}
protected final void end() {
- // FIXME: be accomodate before VM actually provides
+ // FIXME: be accommodate before VM actually provides
// setInterruptAction method
if (AbstractInterruptibleChannel.setInterruptAction != null) {
try {
Index: src/main/java/java/nio/channels/spi/AbstractInterruptibleChannel.java
===================================================================
--- src/main/java/java/nio/channels/spi/AbstractInterruptibleChannel.java (revision 483902)
+++ src/main/java/java/nio/channels/spi/AbstractInterruptibleChannel.java (working copy)
@@ -27,7 +27,7 @@
import java.security.PrivilegedExceptionAction;
/**
- * This class roots the implementation of interruptable channels.
+ * This class roots the implementation of interruptible channels.
*
* The basic usage pattern for an interruptible channel is to invoke
* begin() before any IO operations, then
@@ -55,7 +55,7 @@
});
setInterruptAction.setAccessible(true);
} catch (Exception e) {
- // FIXME: be accomodate before VM actually provides
+ // FIXME: be accommodate before VM actually provides
// setInterruptAction method
// throw new Error(e);
}
@@ -109,7 +109,7 @@
* corresponding end(boolean).
*/
protected final void begin() {
- // FIXME: be accomodate before VM actually provides
+ // FIXME: be accommodate before VM actually provides
// setInterruptAction method
if (setInterruptAction != null) {
try {
@@ -134,7 +134,7 @@
* End an IO operation that was previously started with begin().
*
* @param success
- * pass true if the operation succeeded and had a side effcet on
+ * pass true if the operation succeeded and had a side effect on
* the Java system, or false if not.
* @throws AsynchronousCloseException
* the channel was closed while the IO operation was in
@@ -143,7 +143,7 @@
* the thread conducting the IO operation was interrupted.
*/
protected final void end(boolean success) throws AsynchronousCloseException {
- // FIXME: be accomodate before VM actually provides
+ // FIXME: be accommodate before VM actually provides
// setInterruptAction method
if (setInterruptAction != null) {
try {
@@ -174,7 +174,7 @@
* AsynchronousCloseException.
*
* @throws IOException
- * if a problem occurs closig the channel.
+ * if a problem occurs closing the channel.
*/
protected abstract void implCloseChannel() throws IOException;
}
Index: src/main/java/java/nio/channels/spi/SelectorProvider.java
===================================================================
--- src/main/java/java/nio/channels/spi/SelectorProvider.java (revision 483902)
+++ src/main/java/java/nio/channels/spi/SelectorProvider.java (working copy)
@@ -186,7 +186,7 @@
*
* @return The channel.
* @throws IOException
- * If some I/O exception occured.
+ * If some I/O exception occurred.
*/
public abstract DatagramChannel openDatagramChannel() throws IOException;
@@ -195,7 +195,7 @@
*
* @return The pipe.
* @throws IOException
- * If some I/O exception occured.
+ * If some I/O exception occurred.
*/
public abstract Pipe openPipe() throws IOException;
@@ -204,7 +204,7 @@
*
* @return The selector.
* @throws IOException
- * If some I/O exception occured.
+ * If some I/O exception occurred.
*/
public abstract AbstractSelector openSelector() throws IOException;
@@ -213,7 +213,7 @@
*
* @return The channel.
* @throws IOException
- * If some I/O exception occured.
+ * If some I/O exception occurred.
*/
public abstract ServerSocketChannel openServerSocketChannel()
throws IOException;
@@ -223,7 +223,7 @@
*
* @return The channel.
* @throws IOException
- * If some I/O exception occured.
+ * If some I/O exception occurred.
*/
public abstract SocketChannel openSocketChannel() throws IOException;
@@ -232,7 +232,7 @@
*
* @return The channel.
* @throws IOException
- * If some I/O exception occured.
+ * If some I/O exception occurred.
* @throws SecurityException
* If there is a security manager, and it denies
* RuntimePermission("selectorProvider").
Index: src/main/java/java/nio/channels/SocketChannel.java
===================================================================
--- src/main/java/java/nio/channels/SocketChannel.java (revision 483902)
+++ src/main/java/java/nio/channels/SocketChannel.java (working copy)
@@ -93,7 +93,7 @@
*
* @param address
* The socket address to be connected.
- * @return The new opend channel.
+ * @return The new opened channel.
* @throws AsynchronousCloseException
* If the channel is closed by another thread while this method
* is in operation.
Index: src/main/java/java/nio/channels/FileLock.java
===================================================================
--- src/main/java/java/nio/channels/FileLock.java (revision 483902)
+++ src/main/java/java/nio/channels/FileLock.java (working copy)
@@ -44,7 +44,7 @@
*
* Once a lock is acquired it is immutable in all its state except isValid(). The lock
* will initially be valid, but may be rendered invalid by explicit removal of the lock, using
- * release(), or implictly by closing the channel or exiting the process (terminating the JVM).
* Platform dependencies
*@@ -136,7 +136,7 @@ } /** - * Answers true if the file lock is shared with other proceses and false if + * Answers true if the file lock is shared with other processes and false if * it is not. * * @return true if the lock is a shared lock, and false if it is exclusive. Index: src/main/java/java/nio/channels/DatagramChannel.java =================================================================== --- src/main/java/java/nio/channels/DatagramChannel.java (revision 483902) +++ src/main/java/java/nio/channels/DatagramChannel.java (working copy) @@ -172,7 +172,7 @@ * @param target * The byte buffer to store the received datagram. * @return Address of the datagram if the transfer is performed, or null if - * the channel is in non-blocking mode and the datagrama are + * the channel is in non-blocking mode and the datagram are * unavailable. * @throws ClosedChannelException * If the channel is already closed. Index: src/main/java/java/nio/channels/InterruptibleChannel.java =================================================================== --- src/main/java/java/nio/channels/InterruptibleChannel.java (revision 483902) +++ src/main/java/java/nio/channels/InterruptibleChannel.java (working copy) @@ -20,16 +20,16 @@ import java.io.IOException; /** - * Channels that implement this interface are both asynchronously closeable and - * interruptable. + * Channels that implement this interface are both asynchronously closable and + * interruptible. *
- * A channel that is asynchronously closeable permits a thread blocked on an IO
+ * A channel that is asynchronously closable permits a thread blocked on an IO
* operation (the IO thread) to be released by another thread calling the
* channel's close() method. The IO thread will throw an
* AsynchronousCloseException and the channel will be closed.
*
- * A channel that is interruptable permits a thread blocked on an IO operation
+ * A channel that is interruptible permits a thread blocked on an IO operation
* (the IO thread) to be interrupted by another thread (by invoking
* interrupt() on the IO thread). When the IO thread is
* interrupted it will throw a ClosedByInterruptException
Index: src/main/java/java/nio/channels/WritableByteChannel.java
===================================================================
--- src/main/java/java/nio/channels/WritableByteChannel.java (revision 483902)
+++ src/main/java/java/nio/channels/WritableByteChannel.java (working copy)
@@ -21,9 +21,9 @@
import java.nio.ByteBuffer;
/**
- * A WriteableByteChannel is a type of Channel that can write bytes.
+ * A WritableByteChannel is a type of Channel that can write bytes.
*
- * Writes are synchronous on a WriteableByteChannel, that is, if a write is
+ * Writes are synchronous on a WritableByteChannel, that is, if a write is
* already in progress on the channel then subsequent writes will block until
* the first write completes. It is undefined whether non-write operations will
* block.
Index: src/main/java/java/nio/channels/SelectionKey.java
===================================================================
--- src/main/java/java/nio/channels/SelectionKey.java (revision 483902)
+++ src/main/java/java/nio/channels/SelectionKey.java (working copy)
@@ -114,10 +114,10 @@
/**
* Tells whether the channel of this key is interested in accept operation
- * and ready for acception.
+ * and ready for acceptation.
*
* @return true if the channel is interested in accept operation and ready
- * for acception
+ * for acceptation
* @throws CancelledKeyException
* If the key has been cancelled already
*/
Index: src/main/java/java/nio/BufferOverflowException.java
===================================================================
--- src/main/java/java/nio/BufferOverflowException.java (revision 483902)
+++ src/main/java/java/nio/BufferOverflowException.java (working copy)
@@ -28,7 +28,7 @@
private static final long serialVersionUID = -5484897634319144535L;
/**
- * Construts a BufferOverflowException.
+ * Constructs a BufferOverflowException.
*/
public BufferOverflowException() {
super();
Index: src/main/java/java/nio/IntBuffer.java
===================================================================
--- src/main/java/java/nio/IntBuffer.java (revision 483902)
+++ src/main/java/java/nio/IntBuffer.java (working copy)
@@ -319,11 +319,11 @@
}
/**
- * Returns a int at the specifed index, and the position is not changed.
+ * Returns a int 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 int at the specifed index.
+ * @return A int at the specified index.
* @exception IndexOutOfBoundsException
* If index is invalid
*/
@@ -420,7 +420,7 @@
/**
* Writes ints in the given int array to the current
* position and increase the position by the number of ints
- * writtern.
+ * written.
*
* Calling this method has the same effect as
* put(src, 0, src.length).
@@ -442,7 +442,7 @@
/**
* Writes ints in the given int array, starting from the
* specified offset, to the current position and increase the position by
- * the number of ints writtern.
+ * the number of ints written.
*
* @param src
* The source int array
Index: src/main/java/java/nio/LongBuffer.java
===================================================================
--- src/main/java/java/nio/LongBuffer.java (revision 483902)
+++ src/main/java/java/nio/LongBuffer.java (working copy)
@@ -321,11 +321,11 @@
}
/**
- * Returns a long at the specifed index, and the position is not changed.
+ * Returns a long 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 long at the specifed index.
+ * @return A long at the specified index.
* @exception IndexOutOfBoundsException
* If index is invalid
*/
@@ -428,7 +428,7 @@
/**
* Writes longs in the given long array to the current
* position and increase the position by the number of longs
- * writtern.
+ * written.
*
* Calling this method has the same effect as
* put(src, 0, src.length).
@@ -450,7 +450,7 @@
/**
* Writes longs in the given long array, starting from the
* specified offset, to the current position and increase the position by
- * the number of longs writtern.
+ * the number of longs written.
*
* @param src
* The source long array
Index: src/main/java/java/nio/ShortBuffer.java
===================================================================
--- src/main/java/java/nio/ShortBuffer.java (revision 483902)
+++ src/main/java/java/nio/ShortBuffer.java (working copy)
@@ -320,11 +320,11 @@
}
/**
- * Returns a short at the specifed index, and the position is not changed.
+ * Returns a short 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 short at the specifed index.
+ * @return A short at the specified index.
* @exception IndexOutOfBoundsException
* If index is invalid
*/
@@ -425,7 +425,7 @@
/**
* Writes shorts in the given short array to the current
* position and increase the position by the number of shorts
- * writtern.
+ * written.
*
* Calling this method has the same effect as
* put(src, 0, src.length).
@@ -447,7 +447,7 @@
/**
* Writes shorts in the given short array, starting from the
* specified offset, to the current position and increase the position by
- * the number of shorts writtern.
+ * the number of shorts written.
*
* @param src
* The source short array
Index: src/main/java/java/nio/ByteBuffer.java
===================================================================
--- src/main/java/java/nio/ByteBuffer.java (revision 483902)
+++ src/main/java/java/nio/ByteBuffer.java (working copy)
@@ -353,7 +353,7 @@
* bytes are exactly the same. Position, limit, capacity and
* mark are not considered.
bytes in the given byte array to the current
* position and increase the position by the number of bytes
- * writtern.
+ * written.
*
* Calling this method has the same effect as
* put(src, 0, src.length).
@@ -764,7 +764,7 @@
/**
* Writes bytes in the given byte array, starting from the
* specified offset, to the current position and increase the position by
- * the number of bytes writtern.
+ * the number of bytes written.
*
* @param src
* The source byte array
@@ -864,7 +864,7 @@
/**
* Write a char to the specified index of this buffer.
*
- * The char is converted to bytes using the current byte order. The posotion + * The char is converted to bytes using the current byte order. The position * is not changed. *
* @@ -902,7 +902,7 @@ * Write a double to the specified index of this buffer. ** The double is converted to bytes using the current byte order. The - * posotion is not changed. + * position is not changed. *
* * @param index @@ -939,7 +939,7 @@ * Write a float to the specified index of this buffer. ** The float is converted to bytes using the current byte order. The - * posotion is not changed. + * position is not changed. *
* * @param index @@ -975,7 +975,7 @@ /** * Write a int to the specified index of this buffer. *- * The int is converted to bytes using the current byte order. The posotion + * The int is converted to bytes using the current byte order. The position * is not changed. *
* @@ -1050,7 +1050,7 @@ * Write a short to the specified index of this buffer. ** The short is converted to bytes using the current byte order. The - * posotion is not changed. + * position is not changed. *
* * @param index Index: src/main/java/java/nio/FloatBuffer.java =================================================================== --- src/main/java/java/nio/FloatBuffer.java (revision 483902) +++ src/main/java/java/nio/FloatBuffer.java (working copy) @@ -309,10 +309,10 @@ } /** - * Returns a float at the specifed index, and the position is not changed. + * Returns a float 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 float at the specifed index. + * @return A float at the specified index. * @exception IndexOutOfBoundsException If index is invalid */ public abstract float get(int index); @@ -407,7 +407,7 @@ /** * Writesfloats in the given float array to the current
* position and increase the position by the number of floats
- * writtern.
+ * written.
*
* Calling this method has the same effect as
* put(src, 0, src.length).
@@ -429,7 +429,7 @@
/**
* Writes floats in the given float array, starting from the
* specified offset, to the current position and increase the position by
- * the number of floats writtern.
+ * the number of floats written.
*
* @param src
* The source float array
Index: src/main/java/java/nio/DoubleBuffer.java
===================================================================
--- src/main/java/java/nio/DoubleBuffer.java (revision 483902)
+++ src/main/java/java/nio/DoubleBuffer.java (working copy)
@@ -307,10 +307,10 @@
}
/**
- * Returns a double at the specifed index, and the position is not changed.
+ * Returns a double 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 double at the specifed index.
+ * @return A double at the specified index.
* @exception IndexOutOfBoundsException If index is invalid
*/
public abstract double get(int index);
@@ -407,7 +407,7 @@
/**
* Writes doubles in the given double array to the current
* position and increase the position by the number of doubles
- * writtern.
+ * written.
*
* Calling this method has the same effect as
* put(src, 0, src.length).
@@ -429,7 +429,7 @@
/**
* Writes doubles in the given double array, starting from
* the specified offset, to the current position and increase the position
- * by the number of doubles writtern.
+ * by the number of doubles written.
*
* @param src
* The source double array
Index: src/main/java/java/nio/DirectByteBuffer.java
===================================================================
--- src/main/java/java/nio/DirectByteBuffer.java (revision 483902)
+++ src/main/java/java/nio/DirectByteBuffer.java (working copy)
@@ -58,7 +58,7 @@
/*
* Constructs a new direct byte buffer of the given capacity on newly
- * allocatd OS memory. The memory will have been zeroed. When the
+ * allocated OS memory. The memory will have been zeroed. When the
* instance is discarded the OS memory will be freed if it has not
* already been done so by an explicit call to #free(). Callers are
* encouraged to explicitly free the memory where possible.
Index: src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java
===================================================================
--- src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java (revision 483902)
+++ src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java (working copy)
@@ -504,7 +504,7 @@
return sum;
}
/*
- * wirte the source. return the count of bytes written.
+ * write the source. return the count of bytes written.
*/
private int writeImpl(ByteBuffer source) throws IOException {
if (!source.hasRemaining()) {
Index: src/main/java/org/apache/harmony/nio/internal/MappedByteBufferFactory.java
===================================================================
--- src/main/java/org/apache/harmony/nio/internal/MappedByteBufferFactory.java (revision 483902)
+++ src/main/java/org/apache/harmony/nio/internal/MappedByteBufferFactory.java (working copy)
@@ -51,7 +51,7 @@
static MappedByteBuffer getBuffer(PlatformAddress addr, int mapmode,
long size, int offset) throws Exception {
- // Spec points out explicitly that the size of mmap should be no greater than
+ // Spec points out explicitly that the size of map should be no greater than
// Integer.MAX_VALUE, so long to int cast is safe here.
return (MappedByteBuffer) constructor.newInstance(new Object[] { addr,
new Integer((int) size), new Integer(offset),
Index: src/main/java/org/apache/harmony/nio/internal/PipeImpl.java
===================================================================
--- src/main/java/org/apache/harmony/nio/internal/PipeImpl.java (revision 483902)
+++ src/main/java/org/apache/harmony/nio/internal/PipeImpl.java (working copy)
@@ -28,7 +28,7 @@
import org.apache.harmony.luni.platform.FileDescriptorHandler;
/*
- * default implemetation of Pipe
+ * default implementation of Pipe
*
*/
@@ -91,7 +91,7 @@
}
/*
- * default implemetation of SourceChannel
+ * default implementation of SourceChannel
*/
private class SourceChannelImpl extends Pipe.SourceChannel implements
FileDescriptorHandler {
@@ -148,7 +148,7 @@
}
/*
- * default implemetation of SinkChannel
+ * default implementation of SinkChannel
*/
private class SinkChannelImpl extends Pipe.SinkChannel implements
FileDescriptorHandler {
Index: src/main/java/org/apache/harmony/nio/internal/LockManager.java
===================================================================
--- src/main/java/org/apache/harmony/nio/internal/LockManager.java (revision 483902)
+++ src/main/java/org/apache/harmony/nio/internal/LockManager.java (working copy)
@@ -49,7 +49,7 @@
}
/*
- * Add a new pending lock to the manager. Thows an exception if the lock
+ * Add a new pending lock to the manager. Throws an exception if the lock
* would overlap an existing lock. Once the lock is acquired it remains in
* this set as an acquired lock.
*/
Index: src/main/java/org/apache/harmony/nio/internal/ServerSocketChannelImpl.java
===================================================================
--- src/main/java/org/apache/harmony/nio/internal/ServerSocketChannelImpl.java (revision 483902)
+++ src/main/java/org/apache/harmony/nio/internal/ServerSocketChannelImpl.java (working copy)
@@ -63,7 +63,7 @@
// The fd to interact with native code
private final FileDescriptor fd;
- // The interanl ServerSocket
+ // The internal ServerSocket
private final ServerSocket socket;
private final SocketImpl impl;
Index: src/main/java/org/apache/harmony/nio/internal/FileChannelImpl.java
===================================================================
--- src/main/java/org/apache/harmony/nio/internal/FileChannelImpl.java (revision 483902)
+++ src/main/java/org/apache/harmony/nio/internal/FileChannelImpl.java (working copy)
@@ -72,7 +72,7 @@
/*
* Create a new file channel implementation class that wraps the given file
- * handle and operates in the specififed mode.
+ * handle and operates in the specified mode.
*
*/
public FileChannelImpl(Object stream, long handle) {
Index: src/main/java/org/apache/harmony/nio/internal/DatagramChannelImpl.java
===================================================================
--- src/main/java/org/apache/harmony/nio/internal/DatagramChannelImpl.java (revision 483902)
+++ src/main/java/org/apache/harmony/nio/internal/DatagramChannelImpl.java (working copy)
@@ -501,7 +501,7 @@
}
/*
- * wirte the source. return the count of bytes written.
+ * write the source. return the count of bytes written.
*/
private int writeImpl(ByteBuffer buf) throws IOException {
// the return value