Index: src/test/java/tests/api/java/nio/charset/CharsetProviderTest.java =================================================================== --- src/test/java/tests/api/java/nio/charset/CharsetProviderTest.java (revision 483460) +++ src/test/java/tests/api/java/nio/charset/CharsetProviderTest.java (working copy) @@ -194,7 +194,7 @@ } /* - * Test the method isSupported(String) with insufficient prililege to use + * Test the method isSupported(String) with insufficient privilege to use * charset provider. */ public void testIsSupported_InsufficientPrililege() throws Exception { Index: src/test/java/tests/api/java/nio/charset/ISOCharsetDecoderTest.java =================================================================== --- src/test/java/tests/api/java/nio/charset/ISOCharsetDecoderTest.java (revision 483460) +++ src/test/java/tests/api/java/nio/charset/ISOCharsetDecoderTest.java (working copy) @@ -44,7 +44,7 @@ // } ByteBuffer getUnmappedByteBuffer() throws UnsupportedEncodingException { - // TODO how onmap? + // TODO how on map? return null; } Index: src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/CharsetEncoderTest.java =================================================================== --- src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/CharsetEncoderTest.java (revision 483460) +++ src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/CharsetEncoderTest.java (working copy) @@ -64,7 +64,7 @@ } /** - * Helper for contructor tests + * Helper for constructor tests */ public static class MockCharsetEncoderForHarmony141 extends CharsetEncoder { Index: src/main/java/java/nio/charset/CharsetDecoder.java =================================================================== --- src/main/java/java/nio/charset/CharsetDecoder.java (revision 483460) +++ src/main/java/java/nio/charset/CharsetDecoder.java (working copy) @@ -35,7 +35,7 @@ *
  • Invoking the {@link #reset() reset} method to reset the decoder if the * decoder has been used;
  • *
  • Invoking the {@link #decode(ByteBuffer, CharBuffer, boolean) decode} - * method until the addtional input is not needed, the endOfInput + * method until the additional input is not needed, the endOfInput * parameter must be set to false, the input buffer must be filled and the * output buffer must be flushed between invocations;
  • *
  • Invoking the {@link #decode(ByteBuffer, CharBuffer, boolean) decode} @@ -67,7 +67,7 @@ * alternatives are to ignore it or to replace the erroneous input with the * replacement string. The replacement string is "\uFFFD" by default and can be * changed by invoking {@link #replaceWith(String) replaceWith} method. The - * invoker of this decoder can choose one way by specifing a + * invoker of this decoder can choose one way by specifying a * {@link CodingErrorAction CodingErrorAction} instance for each error type via * {@link #onMalformedInput(CodingErrorAction) onMalformedInput} method and * {@link #onUnmappableCharacter(CodingErrorAction) onUnmappableCharacter} @@ -133,7 +133,7 @@ private byte[] remains = null; // replaceString should be put into output by next decode invocation - // if OVERFLOW occured in current decode invocation. + // if OVERFLOW occurred in current decode invocation. private boolean needReplace = false; /* @@ -207,7 +207,7 @@ /** * This is a facade method for decoding operation. *

    - * This method decodes the remaning byte sequence of the given byte buffer + * This method decodes the remaining byte sequence of the given byte buffer * into a new character buffer. This method performs a complete decoding * operation, resets at first, then decodes, and flushes at last. *

    @@ -232,7 +232,7 @@ * encountered, and the action for unmappable character error is * {@link CodingErrorAction#REPORT CodingErrorAction.REPORT}. * Unmappable means the byte sequence at the input buffer's - * current postion cannot be mapped to a Unicode character + * current position cannot be mapped to a Unicode character * sequence. * @throws CharacterCodingException * if other exception happened during the decode operation @@ -268,7 +268,7 @@ output.flip(); CharBuffer truncatedBuffer = null; // truncate elements after limit in the output. - // clippedBuffer has the same value of capcity and limit. + // clippedBuffer has the same value of capacity and limit. if (output.limit() == output.capacity()) { truncatedBuffer = output; } else { @@ -311,17 +311,17 @@ /** * Decodes bytes starting at the current position of the given input buffer, * and writes the equivalent character sequence into the given output buffer - * from its current postion. + * from its current position. *

    * The buffers' position will be changed with the reading and writing - * operation, but their limis and marks will be kept intact. + * operation, but their limits and marks will be kept intact. *

    *

    * A CoderResult instance will be returned according to * following rules: *