harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r644224 - /harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/org/apache/harmony/niochar/charset/UTF_8.java
Date Thu, 03 Apr 2008 08:36:18 GMT
Author: tellison
Date: Thu Apr  3 01:36:18 2008
New Revision: 644224

URL: http://svn.apache.org/viewvc?rev=644224&view=rev
Log:
Apply patch for HARMONY-5679 ([classlib][archive] UTF-8 decoder & Attributes.Name.hashCode
optimizations)

Modified:
    harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/org/apache/harmony/niochar/charset/UTF_8.java

Modified: harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/org/apache/harmony/niochar/charset/UTF_8.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/org/apache/harmony/niochar/charset/UTF_8.java?rev=644224&r1=644223&r2=644224&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/org/apache/harmony/niochar/charset/UTF_8.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio_char/src/main/java/org/apache/harmony/niochar/charset/UTF_8.java
Thu Apr  3 01:36:18 2008
@@ -149,7 +149,6 @@
                         jchar -= remainingNumbers[tail];
                         inIndex += tail;
                     }
-                    pos++;
                     cArr[outIndex++] = (char) jchar;
                     outRemaining--;
                 }
@@ -186,9 +185,8 @@
                             }
                             jchar -= remainingNumbers[tail];
                             pos += tail;
-                            pos++;
                         }
-
+                        pos++;
                         out.put((char) jchar);
                         outRemaining--;
                     }



Mime
View raw message