Skip to content

Commit 50d97ca

Browse files
committed
Implement sebb's suggestions. Thank you Sebb.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1147977 13f79535-47bb-0310-9956-ffa450edef68
1 parent 027c13d commit 50d97ca

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/test/java/org/apache/commons/io/input/ReaderInputStreamTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,15 @@ public void testReadZero() throws Exception {
120120
@Ignore
121121
public void testCharsetMismatchInfiniteLoop() throws IOException {
122122
// Input is UTF-8 bytes: 0xE0 0xB2 0xA0
123-
byte[] input = new byte[] { (byte) 0xE0, (byte) 0xB2, (byte) 0xA0 };
124123
char[] inputChars = new char[] { (char) 0xE0, (char) 0xB2, (char) 0xA0 };
125-
System.out.println("Input: " + new String(input, Charset.forName("UTF-8")));
126-
127124
// Charset charset = Charset.forName("UTF-8"); // works
128125
Charset charset = Charset.forName("ASCII"); // infinite loop
129-
130126
ReaderInputStream stream = new ReaderInputStream(new CharArrayReader(inputChars), charset);
131127
try {
132128
while (stream.read() != -1) {
133129
}
134130
} finally {
135131
stream.close();
136132
}
137-
138133
}
139134
}

0 commit comments

Comments
 (0)