commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1470353 - /commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java
Date Sun, 21 Apr 2013 21:54:11 GMT
Author: sebb
Date: Sun Apr 21 21:54:11 2013
New Revision: 1470353

URL: http://svn.apache.org/r1470353
Log:
IO-356 Fix failures in testIO_356_Loop_UTF16 and testIO_356_Loop_UTF8
Reset the byte buffer and the encoder together

Modified:
    commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java

Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java?rev=1470353&r1=1470352&r2=1470353&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java
(original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java
Sun Apr 21 21:54:11 2013
@@ -210,6 +210,8 @@ public class CharSequenceInputStream ext
         if (this.mark != NO_MARK) {
             this.cbuf.position(this.mark);
             this.mark = NO_MARK;
+            this.bbuf.limit(0);
+            this.encoder.reset();
         }
     }
 



Mime
View raw message