harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r489647 - in /harmony/enhanced/classlib/trunk/modules/nio/src: main/java/java/nio/ main/java/java/nio/channels/ main/java/java/nio/channels/spi/ main/java/org/apache/harmony/nio/internal/ test/java/common/org/apache/harmony/nio/tests/java/n...
Date Fri, 22 Dec 2006 13:17:51 GMT
Author: tellison
Date: Fri Dec 22 05:17:49 2006
New Revision: 489647

URL: http://svn.apache.org/viewvc?view=rev&rev=489647
Log:
Apply patch HARMONY-2545 ([Classlib][NIO] Wrong words in nio module)

Modified:
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/Buffer.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/BufferOverflowException.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/ByteBuffer.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/CharBuffer.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/DirectByteBuffer.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/DoubleBuffer.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/FloatBuffer.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/IntBuffer.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/LongBuffer.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/ShortBuffer.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/Channel.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/DatagramChannel.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/FileChannel.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/FileLock.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/InterruptibleChannel.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/SelectionKey.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/SocketChannel.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/WritableByteChannel.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/AbstractInterruptibleChannel.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/AbstractSelectableChannel.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/AbstractSelector.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/SelectorProvider.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/DatagramChannelImpl.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/FileChannelImpl.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/LockManager.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/MappedByteBufferFactory.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/PipeImpl.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/ServerSocketChannelImpl.java
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java
    harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/AbstractBufferTest.java
    harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/BufferTest.java
    harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/DoubleBufferTest.java
    harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/ChannelsTest.java
    harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java
    harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java
    harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SelectionKeyTest.java
    harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SelectorTest.java
    harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SocketChannelTest.java
    harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/spi/SelectorProviderTest.java

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/Buffer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/Buffer.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/Buffer.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/Buffer.java Fri Dec 22 05:17:49 2006
@@ -24,7 +24,7 @@
  * <ul>
  * <li>Capacity, is the number of elements a buffer can hold. Capacity is no
  * less than zero and never changes.</li>
- * <li>Posotion, is a cursor of this buffer. Elements are read or write at the
+ * <li>Position, is a cursor of this buffer. Elements are read or write at the
  * position if you do not specify an index explicitly. Position is no less than
  * zero and no greater than the limit.</li>
  * <li>Limit controls the scope of accessible elements. You can only read or

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/BufferOverflowException.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/BufferOverflowException.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/BufferOverflowException.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/BufferOverflowException.java Fri Dec 22 05:17:49 2006
@@ -28,7 +28,7 @@
 	private static final long serialVersionUID = -5484897634319144535L;
 
 	/**
-	 * Construts a <code>BufferOverflowException</code>.
+	 * Constructs a <code>BufferOverflowException</code>.
 	 */
 	public BufferOverflowException() {
 		super();

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/ByteBuffer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/ByteBuffer.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/ByteBuffer.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/ByteBuffer.java Fri Dec 22 05:17:49 2006
@@ -353,7 +353,7 @@
 	 * <code>byte</code>s are exactly the same. Position, limit, capacity and
 	 * mark are not considered.</p>
 	 * 
-	 * @param other the object to comapre against
+	 * @param other the object to compare against
 	 * @return Whether this byte buffer equals to another object.
 	 */
 	public boolean equals(Object other) {
@@ -442,10 +442,10 @@
 	}
 
 	/**
-	 * Returns a byte at the specifed index, and the position is not changed.
+	 * Returns a byte 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 byte at the specifed index.
+	 * @return A byte at the specified index.
 	 * @exception IndexOutOfBoundsException If index is invalid
 	 */
 	public abstract byte get(int index);
@@ -742,7 +742,7 @@
 	/**
 	 * Writes <code>byte</code>s in the given byte array to the current
 	 * position and increase the position by the number of <code>byte</code>s
-	 * writtern.
+	 * written.
 	 * <p>
 	 * Calling this method has the same effect as
 	 * <code>put(src, 0, src.length)</code>.
@@ -764,7 +764,7 @@
 	/**
 	 * Writes <code>byte</code>s in the given byte array, starting from the
 	 * specified offset, to the current position and increase the position by
-	 * the number of <code>byte</code>s writtern.
+	 * the number of <code>byte</code>s written.
 	 * 
 	 * @param src
 	 *            The source byte array
@@ -864,7 +864,7 @@
 	/**
 	 * Write a char to the specified index of this buffer.
 	 * <p>
-	 * 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.
 	 * </p>
 	 * 
@@ -902,7 +902,7 @@
 	 * Write a double to the specified index of this buffer.
 	 * <p>
 	 * The double is converted to bytes using the current byte order. The
-	 * posotion is not changed.
+	 * position is not changed.
 	 * </p>
 	 * 
 	 * @param index
@@ -939,7 +939,7 @@
 	 * Write a float to the specified index of this buffer.
 	 * <p>
 	 * The float is converted to bytes using the current byte order. The
-	 * posotion is not changed.
+	 * position is not changed.
 	 * </p>
 	 * 
 	 * @param index
@@ -975,7 +975,7 @@
 	/**
 	 * Write a int to the specified index of this buffer.
 	 * <p>
-	 * 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.
 	 * </p>
 	 * 
@@ -1050,7 +1050,7 @@
 	 * Write a short to the specified index of this buffer.
 	 * <p>
 	 * The short is converted to bytes using the current byte order. The
-	 * posotion is not changed.
+	 * position is not changed.
 	 * </p>
 	 * 
 	 * @param index

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/CharBuffer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/CharBuffer.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/CharBuffer.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/CharBuffer.java Fri Dec 22 05:17:49 2006
@@ -124,7 +124,7 @@
 	 * <p>
 	 * The new buffer's position will be <code>start</code>, limit will be
 	 * <code>end</code>, capacity will be the length of the char sequence.
-	 * The new buffer is readnly.
+	 * The new buffer is readonly.
 	 * </p>
 	 * 
 	 * @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 <code>char</code>s in the given char array to the current
 	 * position and increase the position by the number of <code>char</code>s
-	 * writtern.
+	 * written.
 	 * <p>
 	 * Calling this method has the same effect as
 	 * <code>put(src, 0, src.length)</code>.
@@ -532,7 +532,7 @@
 	/**
 	 * Writes <code>char</code>s in the given char array, starting from the
 	 * specified offset, to the current position and increase the position by
-	 * the number of <code>char</code>s writtern.
+	 * the number of <code>char</code>s written.
 	 * 
 	 * @param src
 	 *            The source char array
@@ -638,7 +638,7 @@
 	/**
 	 * Write <code>char</code>s of the given string to the current position
 	 * of this buffer, and increase the position by the number of
-	 * <code>char</code>s writtern.
+	 * <code>char</code>s written.
 	 * 
 	 * @param str
 	 *            The string to write

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/DirectByteBuffer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/DirectByteBuffer.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/DirectByteBuffer.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/DirectByteBuffer.java Fri Dec 22 05:17:49 2006
@@ -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.

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/DoubleBuffer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/DoubleBuffer.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/DoubleBuffer.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/DoubleBuffer.java Fri Dec 22 05:17:49 2006
@@ -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 <code>double</code>s in the given double array to the current
 	 * position and increase the position by the number of <code>double</code>s
-	 * writtern.
+	 * written.
 	 * <p>
 	 * Calling this method has the same effect as
 	 * <code>put(src, 0, src.length)</code>.
@@ -429,7 +429,7 @@
 	/**
 	 * Writes <code>double</code>s in the given double array, starting from
 	 * the specified offset, to the current position and increase the position
-	 * by the number of <code>double</code>s writtern.
+	 * by the number of <code>double</code>s written.
 	 * 
 	 * @param src
 	 *            The source double array

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/FloatBuffer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/FloatBuffer.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/FloatBuffer.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/FloatBuffer.java Fri Dec 22 05:17:49 2006
@@ -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 @@
 	/**
 	 * Writes <code>float</code>s in the given float array to the current
 	 * position and increase the position by the number of <code>float</code>s
-	 * writtern.
+	 * written.
 	 * <p>
 	 * Calling this method has the same effect as
 	 * <code>put(src, 0, src.length)</code>.
@@ -429,7 +429,7 @@
 	/**
 	 * Writes <code>float</code>s in the given float array, starting from the
 	 * specified offset, to the current position and increase the position by
-	 * the number of <code>float</code>s writtern.
+	 * the number of <code>float</code>s written.
 	 * 
 	 * @param src
 	 *            The source float array

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/IntBuffer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/IntBuffer.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/IntBuffer.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/IntBuffer.java Fri Dec 22 05:17:49 2006
@@ -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 <code>int</code>s in the given int array to the current
 	 * position and increase the position by the number of <code>int</code>s
-	 * writtern.
+	 * written.
 	 * <p>
 	 * Calling this method has the same effect as
 	 * <code>put(src, 0, src.length)</code>.
@@ -442,7 +442,7 @@
 	/**
 	 * Writes <code>int</code>s in the given int array, starting from the
 	 * specified offset, to the current position and increase the position by
-	 * the number of <code>int</code>s writtern.
+	 * the number of <code>int</code>s written.
 	 * 
 	 * @param src
 	 *            The source int array

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/LongBuffer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/LongBuffer.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/LongBuffer.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/LongBuffer.java Fri Dec 22 05:17:49 2006
@@ -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 <code>long</code>s in the given long array to the current
 	 * position and increase the position by the number of <code>long</code>s
-	 * writtern.
+	 * written.
 	 * <p>
 	 * Calling this method has the same effect as
 	 * <code>put(src, 0, src.length)</code>.
@@ -450,7 +450,7 @@
 	/**
 	 * Writes <code>long</code>s in the given long array, starting from the
 	 * specified offset, to the current position and increase the position by
-	 * the number of <code>long</code>s writtern.
+	 * the number of <code>long</code>s written.
 	 * 
 	 * @param src
 	 *            The source long array

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/ShortBuffer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/ShortBuffer.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/ShortBuffer.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/ShortBuffer.java Fri Dec 22 05:17:49 2006
@@ -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 <code>short</code>s in the given short array to the current
 	 * position and increase the position by the number of <code>short</code>s
-	 * writtern.
+	 * written.
 	 * <p>
 	 * Calling this method has the same effect as
 	 * <code>put(src, 0, src.length)</code>.
@@ -447,7 +447,7 @@
 	/**
 	 * Writes <code>short</code>s in the given short array, starting from the
 	 * specified offset, to the current position and increase the position by
-	 * the number of <code>short</code>s writtern.
+	 * the number of <code>short</code>s written.
 	 * 
 	 * @param src
 	 *            The source short array

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/Channel.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/Channel.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/Channel.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/Channel.java Fri Dec 22 05:17:49 2006
@@ -30,7 +30,7 @@
  * </code>.
  * </p>
  * <p>
- * 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.
  * </p>
  * 
@@ -56,7 +56,7 @@
 	 * </p>
 	 * <p>
 	 * 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.
 	 * </p>
 	 * 

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/DatagramChannel.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/DatagramChannel.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/DatagramChannel.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/DatagramChannel.java Fri Dec 22 05:17:49 2006
@@ -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.

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/FileChannel.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/FileChannel.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/FileChannel.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/FileChannel.java Fri Dec 22 05:17:49 2006
@@ -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.
  * </p>
  * <p>
- * 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 <em>position</em>. The position can be manipulated by repositioning
  * it within the file, and its current position can be queried.
  * </p>
@@ -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 @@
      * </p>
      * 
      * @param position
-     *            the starting positon
+     *            the starting position
      * @param size
      *            the size of file to lock
      * @param shared
@@ -630,7 +630,7 @@
 	 * @throws IllegalArgumentException
 	 *             if <code>position</code> is less than <code>-1</code>.
 	 * @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;

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/FileLock.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/FileLock.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/FileLock.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/FileLock.java Fri Dec 22 05:17:49 2006
@@ -44,7 +44,7 @@
  * <p>
  * Once a lock is acquired it is immutable in all its state except <code>isValid()</code>.  The lock
  * will initially be valid, but may be rendered invalid by explicit removal of the lock, using <code>
- * release()</code>, or implictly by closing the channel or exiting the process (terminating the JVM).</p>
+ * release()</code>, or implicitly by closing the channel or exiting the process (terminating the JVM).</p>
  * <p>
  * <em>Platform dependencies</em></p>
  * <p>
@@ -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.

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/InterruptibleChannel.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/InterruptibleChannel.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/InterruptibleChannel.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/InterruptibleChannel.java Fri Dec 22 05:17:49 2006
@@ -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.
  * <p>
- * 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 <code>close()</code> method. The IO thread will throw an
  * <code>AsynchronousCloseException</code> and the channel will be closed.
  * </p>
  * <p>
- * 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
  * <code>interrupt()</code> on the IO thread). When the IO thread is
  * interrupted it will throw a <code>ClosedByInterruptException</code>

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/SelectionKey.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/SelectionKey.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/SelectionKey.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/SelectionKey.java Fri Dec 22 05:17:49 2006
@@ -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
      */

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/SocketChannel.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/SocketChannel.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/SocketChannel.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/SocketChannel.java Fri Dec 22 05:17:49 2006
@@ -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.

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/WritableByteChannel.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/WritableByteChannel.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/WritableByteChannel.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/WritableByteChannel.java Fri Dec 22 05:17:49 2006
@@ -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.
  * <p>
- * 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.

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/AbstractInterruptibleChannel.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/AbstractInterruptibleChannel.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/AbstractInterruptibleChannel.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/AbstractInterruptibleChannel.java Fri Dec 22 05:17:49 2006
@@ -27,7 +27,7 @@
 import java.security.PrivilegedExceptionAction;
 
 /**
- * This class roots the implementation of interruptable channels.
+ * This class roots the implementation of interruptible channels.
  * <p>
  * The basic usage pattern for an interruptible channel is to invoke
  * <code>begin()</code> 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 <code>end(boolean)</code>.
 	 */
 	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 <code>begin()</code>.
 	 * 
 	 * @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 @@
 	 * <code>AsynchronousCloseException</code>.
 	 * 
 	 * @throws IOException
-	 *             if a problem occurs closig the channel.
+	 *             if a problem occurs closing the channel.
 	 */
 	protected abstract void implCloseChannel() throws IOException;
 }

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/AbstractSelectableChannel.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/AbstractSelectableChannel.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/AbstractSelectableChannel.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/AbstractSelectableChannel.java Fri Dec 22 05:17:49 2006
@@ -31,7 +31,7 @@
 /**
  * Abstract class for selectable channels.
  * <p>
- * 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.
  * </p>
  * 
@@ -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 @@
      *            <code>true</code> for blocking mode; <code>false</code>
      *            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;

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/AbstractSelector.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/AbstractSelector.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/AbstractSelector.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/AbstractSelector.java Fri Dec 22 05:17:49 2006
@@ -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 {

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/SelectorProvider.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/SelectorProvider.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/SelectorProvider.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/java/nio/channels/spi/SelectorProvider.java Fri Dec 22 05:17:49 2006
@@ -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").

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/DatagramChannelImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/DatagramChannelImpl.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/DatagramChannelImpl.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/DatagramChannelImpl.java Fri Dec 22 05:17:49 2006
@@ -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

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/FileChannelImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/FileChannelImpl.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/FileChannelImpl.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/FileChannelImpl.java Fri Dec 22 05:17:49 2006
@@ -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) {

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/LockManager.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/LockManager.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/LockManager.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/LockManager.java Fri Dec 22 05:17:49 2006
@@ -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.
      */

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/MappedByteBufferFactory.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/MappedByteBufferFactory.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/MappedByteBufferFactory.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/MappedByteBufferFactory.java Fri Dec 22 05:17:49 2006
@@ -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),

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/PipeImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/PipeImpl.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/PipeImpl.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/PipeImpl.java Fri Dec 22 05:17:49 2006
@@ -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 {

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/ServerSocketChannelImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/ServerSocketChannelImpl.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/ServerSocketChannelImpl.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/ServerSocketChannelImpl.java Fri Dec 22 05:17:49 2006
@@ -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;

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/org/apache/harmony/nio/internal/SocketChannelImpl.java Fri Dec 22 05:17:49 2006
@@ -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()) {

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/AbstractBufferTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/AbstractBufferTest.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/AbstractBufferTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/AbstractBufferTest.java Fri Dec 22 05:17:49 2006
@@ -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

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/BufferTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/BufferTest.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/BufferTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/BufferTest.java Fri Dec 22 05:17:49 2006
@@ -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

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/DoubleBufferTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/DoubleBufferTest.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/DoubleBufferTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/DoubleBufferTest.java Fri Dec 22 05:17:49 2006
@@ -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,

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/ChannelsTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/ChannelsTest.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/ChannelsTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/ChannelsTest.java Fri Dec 22 05:17:49 2006
@@ -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()

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java Fri Dec 22 05:17:49 2006
@@ -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();

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/FileChannelTest.java Fri Dec 22 05:17:49 2006
@@ -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);

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SelectionKeyTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SelectionKeyTest.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SelectionKeyTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SelectionKeyTest.java Fri Dec 22 05:17:49 2006
@@ -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 {
 

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SelectorTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SelectorTest.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SelectorTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SelectorTest.java Fri Dec 22 05:17:49 2006
@@ -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 {
 

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SocketChannelTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SocketChannelTest.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SocketChannelTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/SocketChannelTest.java Fri Dec 22 05:17:49 2006
@@ -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

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/spi/SelectorProviderTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/spi/SelectorProviderTest.java?view=diff&rev=489647&r1=489646&r2=489647
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/spi/SelectorProviderTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/spi/SelectorProviderTest.java Fri Dec 22 05:17:49 2006
@@ -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 {



Mime
View raw message