From b6936fb5972c5cca39db521e1a18a1d3078527be Mon Sep 17 00:00:00 2001 From: JET Date: Wed, 14 Apr 2010 09:43:56 -0600 Subject: [PATCH] optimized InputStreamReader.read() --- classpath/java/io/InputStreamReader.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/classpath/java/io/InputStreamReader.java b/classpath/java/io/InputStreamReader.java index 3da80e2189..a2049b1b62 100644 --- a/classpath/java/io/InputStreamReader.java +++ b/classpath/java/io/InputStreamReader.java @@ -38,9 +38,7 @@ public class InputStreamReader extends Reader { char[] buffer16 = Utf8.decode16(buffer, 0, c); - for (int i = 0; i < buffer16.length; ++i) { - b[i + offset] = buffer16[i]; - } + System.arraycopy(buffer16, 0, b, offset, buffer16.length); return buffer16.length; }