Skip to content

Commit eebe1be

Browse files
committed
Java 10: Reader.transferTo(Writer) instead of JVM-based byte transfer
Provides potential higher performance. Signed-off-by: Markus KARG <[email protected]>
1 parent e6165e5 commit eebe1be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/codehaus/plexus/util/IOUtil.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public static void copy( final InputStream input, final OutputStream output, fin
186186
public static void copy( final Reader input, final Writer output )
187187
throws IOException
188188
{
189-
copy( input, output, DEFAULT_BUFFER_SIZE );
189+
input.transferTo( output );
190190
}
191191

192192
/**

0 commit comments

Comments
 (0)