harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r484835 - in /harmony/enhanced/classlib/trunk/modules/nio_char/src: main/java/java/nio/charset/ main/java/java/nio/charset/spi/ test/java/org/apache/harmony/nio_char/tests/java/nio/charset/ test/java/tests/api/java/nio/charset/
Date Fri, 08 Dec 2006 23:00:50 GMT
Author: tellison
Date: Fri Dec  8 15:00:48 2006
New Revision: 484835

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

Modified:
    harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/Charset.java
    harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/CharsetDecoder.java
    harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/CharsetEncoder.java
    harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/CoderResult.java
    harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/spi/CharsetProvider.java
    harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/CharsetEncoderTest.java
    harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/CharsetProviderTest.java
    harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/ISOCharsetDecoderTest.java

Modified: harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/Charset.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/Charset.java?view=diff&rev=484835&r1=484834&r2=484835
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/Charset.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/Charset.java
Fri Dec  8 15:00:48 2006
@@ -63,7 +63,7 @@
  * encoded in "UTF-8". Each line of their content specifies the class name of a
  * charset provider which extends <code>java.nio.spi.CharsetProvider</code>.
  * A line should ends with '\r', '\n' or '\r\n'. Leading and trailing
- * whitespaces are trimed. Blank lines, and lines (after trimed) starting with
+ * whitespaces are trimmed. Blank lines, and lines (after trimmed) starting with
  * "#" which are regarded as comments, are both ignored. Duplicates of already
  * appeared names are also ignored. Both the configuration files and the
  * provider classes will be loaded using the thread context class loader.
@@ -180,7 +180,7 @@
 		// check whether the given canonical name is legal
 		checkCharsetName(canonicalName);
 		this.canonicalName = canonicalName;
-		// check each aliase and put into a set
+		// check each alias and put into a set
 		this.aliasesSet = new HashSet<String>();
 		if (null != aliases) {
 			for (int i = 0; i < aliases.length; i++) {
@@ -720,7 +720,7 @@
 	 * 
 	 * @param buffer
 	 *            the byte buffer containing the content to be decoded
-	 * @return a character buffer containing the output of the dencoding
+	 * @return a character buffer containing the output of the decoding
 	 */
 	public final CharBuffer decode(ByteBuffer buffer) {
 		CharsetDecoder d = getCachedCharsetDecoder(canonicalName);

Modified: harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/CharsetDecoder.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/CharsetDecoder.java?view=diff&rev=484835&r1=484834&r2=484835
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/CharsetDecoder.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/CharsetDecoder.java
Fri Dec  8 15:00:48 2006
@@ -35,7 +35,7 @@
  * <li>Invoking the {@link #reset() reset} method to reset the decoder if the
  * decoder has been used;</li>
  * <li>Invoking the {@link #decode(ByteBuffer, CharBuffer, boolean) decode}
- * method until the addtional input is not needed, the <code>endOfInput</code>
+ * method until the additional input is not needed, the <code>endOfInput</code>
  * parameter must be set to false, the input buffer must be filled and the
  * output buffer must be flushed between invocations;</li>
  * <li>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.
 	 * <p>
-	 * 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.
 	 * </p>
@@ -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.
 	 * <p>
 	 * 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.
 	 * </p>
 	 * <p>
 	 * A <code>CoderResult</code> instance will be returned according to
 	 * following rules:
 	 * <ul>
 	 * <li>{@link CoderResult#OVERFLOW CoderResult.OVERFLOW} indicates that
-	 * even though not all of the input has ben processed, the buffer the output
+	 * even though not all of the input has been processed, the buffer the output
 	 * is being written to has reached its capacity. In the event of this code
 	 * being returned this method should be called once more with an
 	 * <code>out</code> argument that has not already been filled.</li>
@@ -332,13 +332,13 @@
 	 * called once more with additional input.</li>
 	 * <li>A {@link CoderResult#malformedForLength(int) malformed input} result
 	 * indicates that some malformed input error encountered, and the erroneous
-	 * bytes start at the input buffer's postion and their number can be got by
+	 * bytes start at the input buffer's position and their number can be got by
 	 * result's {@link CoderResult#length() length}. This kind of result can be
 	 * returned only if the malformed action is
 	 * {@link CodingErrorAction#REPORT CodingErrorAction.REPORT}. </li>
 	 * <li>A {@link CoderResult#unmappableForLength(int) unmappable character}
 	 * result indicates that some unmappable character error encountered, and
-	 * the erroneous bytes start at the input buffer's postion and their number
+	 * the erroneous bytes start at the input buffer's position and their number
 	 * can be got by result's {@link CoderResult#length() length}. This kind of
 	 * result can be returned only if the unmappable character action is
 	 * {@link CodingErrorAction#REPORT CodingErrorAction.REPORT}. </li>
@@ -488,12 +488,12 @@
 	 * decoding operation. The rules to construct the <code>CoderResult</code>
 	 * is same as the {@link #decode(ByteBuffer, CharBuffer, boolean) decode}.
 	 * When exception encountered in the decoding operation, most implementation
-	 * of this mehtod will return a relevant result object to
+	 * of this method will return a relevant result object to
 	 * {@link #decode(ByteBuffer, CharBuffer, boolean) decode} method, and some
 	 * performance optimized implementation may handle the exception and
 	 * implement the error action itself.
 	 * 
-	 * The buffers are scanned from their current positions, and their postions
+	 * The buffers are scanned from their current positions, and their positions
 	 * will be modified accordingly, while their marks and limits will be
 	 * intact. At most {@link ByteBuffer#remaining() in.remaining()} characters
 	 * will be read, and {@link CharBuffer#remaining() out.remaining()} bytes
@@ -518,11 +518,11 @@
 	 * charset will be the same for the rest of the decode operation.
 	 * </p>
 	 * <p>
-	 * If insuffient bytes have been read to determine the charset,
-	 * <code>IllegalStateException</code> will be throwed.
+	 * If insufficient bytes have been read to determine the charset,
+	 * <code>IllegalStateException</code> will be thrown.
 	 * </p>
 	 * <p>
-	 * The default implementation alwyas throws
+	 * The default implementation always throws
 	 * <code>UnsupportedOperationException</code>, so it should be overridden
 	 * by subclass if needed.
 	 * </p>
@@ -530,9 +530,9 @@
 	 * @return the charset detected by this decoder, or null if it is not yet
 	 *         determined
 	 * @throws UnsupportedOperationException
-	 *             if this decoder does not implmenet an auto-detecting charset
+	 *             if this decoder does not implement an auto-detecting charset
 	 * @throws IllegalStateException
-	 *             if insuffient bytes have been read to determine the charset
+	 *             if insufficient bytes have been read to determine the charset
 	 */
 	public Charset detectedCharset() {
 		throw new UnsupportedOperationException();
@@ -542,7 +542,7 @@
 	 * Flush this decoder.
 	 * 
 	 * This method will call {@link #implFlush(CharBuffer) implFlush}. Some
-	 * decoders may need to write some charaters to the output buffer when they
+	 * decoders may need to write some characters to the output buffer when they
 	 * have read all input bytes, subclasses can overridden
 	 * {@link #implFlush(CharBuffer) implFlush} to perform writing action.
 	 * 
@@ -552,7 +552,7 @@
 	 * <code>CoderResult.OVERFLOW</code> will be returned, and this method
 	 * must be called again with a character buffer that has more spaces.
 	 * Otherwise this method will return <code>CoderResult.UNDERFLOW</code>,
-	 * which means one decoding process has been completed sucessfully.
+	 * which means one decoding process has been completed successfully.
 	 * 
 	 * During the flush, the output buffer's position will be changed
 	 * accordingly, while its mark and limit will be intact.
@@ -581,7 +581,7 @@
 	}
 
 	/**
-	 * Flush this decoder. Default implementaion does nothing and always return
+	 * Flush this decoder. Default implementation does nothing and always return
 	 * <code>CoderResult.UNDERFLOW</code>, and this method can be overridden
 	 * if needed.
 	 * 
@@ -596,7 +596,7 @@
 
 	/**
 	 * Notify that this decoder's <code>CodingErrorAction</code> specified for
-	 * malformed input error has been changed. Default implementaion does
+	 * malformed input error has been changed. Default implementation does
 	 * nothing, and this method can be overridden if needed.
 	 * 
 	 * @param newAction
@@ -608,7 +608,7 @@
 
 	/**
 	 * Notify that this decoder's <code>CodingErrorAction</code> specified for
-	 * unmappable character error has been changed. Default implementaion does
+	 * unmappable character error has been changed. Default implementation does
 	 * nothing, and this method can be overridden if needed.
 	 * 
 	 * @param newAction
@@ -620,7 +620,7 @@
 
 	/**
 	 * Notify that this decoder's replacement has been changed. Default
-	 * implementaion does nothing, and this method can be overridden if needed.
+	 * implementation does nothing, and this method can be overridden if needed.
 	 * 
 	 * @param newReplacement
 	 *            the new replacement string
@@ -630,7 +630,7 @@
 	}
 
 	/**
-	 * Reset this decoder's charset related state. Default implementaion does
+	 * Reset this decoder's charset related state. Default implementation does
 	 * nothing, and this method can be overridden if needed.
 	 */
 	protected void implReset() {
@@ -678,10 +678,10 @@
 
 	/**
 	 * Gets this decoder's <code>CodingErrorAction</code> when malformed input
-	 * occured during decoding process.
+	 * occurred during decoding process.
 	 * 
 	 * @return this decoder's <code>CodingErrorAction</code> when malformed
-	 *         input occured during decoding process.
+	 *         input occurred during decoding process.
 	 */
 	public CodingErrorAction malformedInputAction() {
 		return malformAction;
@@ -765,7 +765,7 @@
 	 * @return this decoder
 	 * @throws IllegalArgumentException
 	 *             if the given replacement cannot satisfy the requirement
-	 *             metioned above
+	 *             mentioned above
 	 */
 	public final CharsetDecoder replaceWith(String newReplacement) {
 		if (null == newReplacement || newReplacement.length() == 0) {
@@ -799,10 +799,10 @@
 
 	/**
 	 * Gets this decoder's <code>CodingErrorAction</code> when unmappable
-	 * character occured during decoding process.
+	 * character occurred during decoding process.
 	 * 
 	 * @return this decoder's <code>CodingErrorAction</code> when unmappable
-	 *         character occured during decoding process.
+	 *         character occurred during decoding process.
 	 */
 	public CodingErrorAction unmappableCharacterAction() {
 		return unmapAction;

Modified: harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/CharsetEncoder.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/CharsetEncoder.java?view=diff&rev=484835&r1=484834&r2=484835
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/CharsetEncoder.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/CharsetEncoder.java
Fri Dec  8 15:00:48 2006
@@ -66,7 +66,7 @@
  * alternatives are to ignore it or to replace the erroneous input with the
  * replacement byte array. The replacement byte array is {(byte)'?'} by default
  * and can be changed by invoking {@link #replaceWith(byte[]) replaceWith}
- * method. The invoker of this encoder can choose one way by specifing a
+ * method. The invoker of this encoder 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}
@@ -232,14 +232,14 @@
 	 * it should not be called when another encode process is ongoing, otherwise
 	 * it will throw <code>IllegalStateException</code>.
 	 * 
-	 * This method can be overriden for performance improvement.
+	 * This method can be overridden for performance improvement.
 	 * 
 	 * @param c
 	 *            the given encoder
 	 * @return true if given character can be encoded by this encoder
 	 * @throws IllegalStateException
 	 *             if another encode process is ongoing so that current internal
-	 *             status is neigher RESET or FLUSH
+	 *             status is neither RESET or FLUSH
 	 */
 	public boolean canEncode(char c) {
 		return implCanEncode(CharBuffer.wrap(new char[] { c }));
@@ -279,14 +279,14 @@
 	 * it should not be called when another encode process is ongoing, otherwise
 	 * it will throw <code>IllegalStateException</code>.
 	 * 
-	 * This method can be overriden for performance improvement.
+	 * This method can be overridden for performance improvement.
 	 * 
 	 * @param sequence
 	 *            the given <code>CharSequence</code>
 	 * @return true if given <code>CharSequence</code> can be encoded by this
 	 *         encoder
 	 * @throws IllegalStateException
-	 *             if current internal status is neigher RESET or FLUSH
+	 *             if current internal status is neither RESET or FLUSH
 	 */
 	public boolean canEncode(CharSequence sequence) {
 		CharBuffer cb;
@@ -310,7 +310,7 @@
 	/**
 	 * This is a facade method for encoding operation.
 	 * <p>
-	 * This method encodes the remaning character sequence of the given
+	 * This method encodes the remaining character sequence of the given
 	 * character buffer into a new byte buffer. This method performs a complete
 	 * encoding operation, resets at first, then encodes, and flushes at last.
 	 * </p>
@@ -335,7 +335,7 @@
 	 *             error is
 	 *             {@link CodingErrorAction#REPORT CodingErrorAction.REPORT}.
 	 *             Unmappable means the Unicode character sequence at the input
-	 *             buffer's current postion cannot be mapped to a equivalent
+	 *             buffer's current position cannot be mapped to a equivalent
 	 *             byte sequence.
 	 * @throws CharacterCodingException
 	 *             if other exception happened during the encode operation
@@ -379,7 +379,7 @@
 		}
 		ByteBuffer 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 {
@@ -418,10 +418,10 @@
 	/**
 	 * Encodes characters starting at the current position of the given input
 	 * buffer, and writes the equivalent byte sequence into the given output
-	 * buffer from its current postion.
+	 * buffer from its current position.
 	 * <p>
 	 * 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.
 	 * </p>
 	 * <p>
 	 * A <code>CoderResult</code> instance will be returned according to
@@ -429,7 +429,7 @@
 	 * <ul>
 	 * <li>A {@link CoderResult#malformedForLength(int) malformed input} result
 	 * indicates that some malformed input error encountered, and the erroneous
-	 * characters start at the input buffer's postion and their number can be
+	 * characters start at the input buffer's position and their number can be
 	 * got by result's {@link CoderResult#length() length}. This kind of result
 	 * can be returned only if the malformed action is
 	 * {@link CodingErrorAction#REPORT CodingErrorAction.REPORT}. </li>
@@ -444,7 +444,7 @@
 	 * non-full output buffer </li>
 	 * <li>A {@link CoderResult#unmappableForLength(int) unmappable character}
 	 * result indicates that some unmappable character error was encountered,
-	 * and the erroneous characters start at the input buffer's postion and
+	 * and the erroneous characters start at the input buffer's position and
 	 * their number can be got by result's {@link CoderResult#length() length}.
 	 * This kind of result can be returned only on
 	 * {@link CodingErrorAction#REPORT CodingErrorAction.REPORT}. </li>
@@ -493,7 +493,7 @@
 		int inOldPosition = in.position();
 		CharBuffer encodingBuffer = null;
 
-		// check whether need to put the last unput replace string.
+		// check whether need to put the last input replace string.
 		if (needReplace) {
 			if (out.remaining() >= replace.length) {
 				out.put(replace);
@@ -592,12 +592,12 @@
 	 * encoding operation. The rules to construct the <code>CoderResult</code>
 	 * is same as the {@link #encode(CharBuffer, ByteBuffer, boolean) encode}.
 	 * When exception encountered in the encoding operation, most implementation
-	 * of this mehtod will return a relevant result object to
+	 * of this method will return a relevant result object to
 	 * {@link #encode(CharBuffer, ByteBuffer, boolean) encode} method, and some
 	 * performance optimized implementation may handle the exception and
 	 * implement the error action itself.
 	 * 
-	 * The buffers are scanned from their current positions, and their postions
+	 * The buffers are scanned from their current positions, and their positions
 	 * will be modified accordingly, while their marks and limits will be
 	 * intact. At most {@link CharBuffer#remaining() in.remaining()} characters
 	 * will be read, and {@link ByteBuffer#remaining() out.remaining()} bytes
@@ -628,7 +628,7 @@
 	 * <code>CoderResult.OVERFLOW</code> will be returned, and this method
 	 * must be called again with a byte buffer has more spaces. Otherwise this
 	 * method will return <code>CoderResult.UNDERFLOW</code>, which means one
-	 * encoding process has been completed sucessfully.
+	 * encoding process has been completed successfully.
 	 * 
 	 * During the flush, the output buffer's position will be changed
 	 * accordingly, while its mark and limit will be intact.
@@ -657,7 +657,7 @@
 	}
 
 	/**
-	 * Flush this encoder. Default implementaion does nothing and always return
+	 * Flush this encoder. Default implementation does nothing and always return
 	 * <code>CoderResult.UNDERFLOW</code>, and this method can be overridden
 	 * if needed.
 	 * 
@@ -672,7 +672,7 @@
 
 	/**
 	 * Notify that this encoder's <code>CodingErrorAction</code> specified for
-	 * malformed input error has been changed. Default implementaion does
+	 * malformed input error has been changed. Default implementation does
 	 * nothing, and this method can be overridden if needed.
 	 * 
 	 * @param newAction
@@ -684,7 +684,7 @@
 
 	/**
 	 * Notify that this encoder's <code>CodingErrorAction</code> specified for
-	 * unmappable character error has been changed. Default implementaion does
+	 * unmappable character error has been changed. Default implementation does
 	 * nothing, and this method can be overridden if needed.
 	 * 
 	 * @param newAction
@@ -696,7 +696,7 @@
 
 	/**
 	 * Notify that this encoder's replacement has been changed. Default
-	 * implementaion does nothing, and this method can be overridden if needed.
+	 * implementation does nothing, and this method can be overridden if needed.
 	 * 
 	 * @param newReplacement
 	 *            the new replacement string
@@ -706,7 +706,7 @@
 	}
 
 	/**
-	 * Reset this encoder's charset related state. Default implementaion does
+	 * Reset this encoder's charset related state. Default implementation does
 	 * nothing, and this method can be overridden if needed.
 	 */
 	protected void implReset() {
@@ -720,7 +720,7 @@
 	 * The given byte array is legal if and only if it can be decode into
 	 * sixteen bits Unicode characters.
 	 * 
-	 * This method can be overriden for performance improvement.
+	 * This method can be overridden for performance improvement.
 	 * 
 	 * @param repl
 	 *            the given byte array to be checked
@@ -747,10 +747,10 @@
 
 	/**
 	 * Gets this encoder's <code>CodingErrorAction</code> when malformed input
-	 * occured during encoding process.
+	 * occurred during encoding process.
 	 * 
 	 * @return this encoder's <code>CodingErrorAction</code> when malformed
-	 *         input occured during encoding process.
+	 *         input occurred during encoding process.
 	 */
 	public CodingErrorAction malformedInputAction() {
 		return malformAction;
@@ -843,7 +843,7 @@
 	 * @return this encoder
 	 * @throws IllegalArgumentException
 	 *             if the given replacement cannot satisfy the requirement
-	 *             metioned above
+	 *             mentioned above
 	 */
 	public final CharsetEncoder replaceWith(byte[] replacement) {
 		if (null == replacement || 0 == replacement.length
@@ -872,10 +872,10 @@
 
 	/**
 	 * Gets this encoder's <code>CodingErrorAction</code> when unmappable
-	 * character occured during encoding process.
+	 * character occurred during encoding process.
 	 * 
 	 * @return this encoder's <code>CodingErrorAction</code> when unmappable
-	 *         character occured during encoding process.
+	 *         character occurred during encoding process.
 	 */
 	public CodingErrorAction unmappableCharacterAction() {
 		return unmapAction;

Modified: harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/CoderResult.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/CoderResult.java?view=diff&rev=484835&r1=484834&r2=484835
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/CoderResult.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/CoderResult.java
Fri Dec  8 15:00:48 2006
@@ -36,7 +36,7 @@
  * units has been encountered. Get an instance of this type of result by calling
  * <code>CoderResult.malformedForLength(int)</code> with the length of the
  * malformed-input.
- * <li>An unmappable-charactor error indicates a sequence of input units can
+ * <li>An unmappable-character error indicates a sequence of input units can
  * not be mapped to the output charset. Get an instance of this type of result
  * by calling <code>CoderResult.unmappableForLength(int)</code> with the input
  * sequence size indicating the identity of the unmappable character.

Modified: harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/spi/CharsetProvider.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/spi/CharsetProvider.java?view=diff&rev=484835&r1=484834&r2=484835
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/spi/CharsetProvider.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/java/nio/charset/spi/CharsetProvider.java
Fri Dec  8 15:00:48 2006
@@ -34,7 +34,7 @@
 	 * 
 	 * @throws SecurityException
 	 *             if there is a security manager installed that does not permit
-	 *             the runtime permission labelled "charsetProvider".
+	 *             the runtime permission labeled "charsetProvider".
 	 */
 	protected CharsetProvider() {
 		SecurityManager securityManager = System.getSecurityManager();

Modified: harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/CharsetEncoderTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/CharsetEncoderTest.java?view=diff&rev=484835&r1=484834&r2=484835
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/CharsetEncoderTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/CharsetEncoderTest.java
Fri Dec  8 15:00:48 2006
@@ -64,7 +64,7 @@
     }
 
     /**
-     * Helper for contructor tests
+     * Helper for constructor tests
      */
 
     public static class MockCharsetEncoderForHarmony141 extends CharsetEncoder {

Modified: harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/CharsetProviderTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/CharsetProviderTest.java?view=diff&rev=484835&r1=484834&r2=484835
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/CharsetProviderTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/CharsetProviderTest.java
Fri Dec  8 15:00:48 2006
@@ -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 {

Modified: harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/ISOCharsetDecoderTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/ISOCharsetDecoderTest.java?view=diff&rev=484835&r1=484834&r2=484835
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/ISOCharsetDecoderTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/ISOCharsetDecoderTest.java
Fri Dec  8 15:00:48 2006
@@ -44,7 +44,7 @@
 	// }
 
 	ByteBuffer getUnmappedByteBuffer() throws UnsupportedEncodingException {
-		// TODO how onmap?
+		// TODO how on map?
 		return null;
 
 	}



Mime
View raw message