Skip to content

Commit e6165e5

Browse files
committed
Java 9: InputStream.transferTo(OutputStream) instead of JVM-based byte transferTo
Provides potential higher performance. Signed-off-by: Markus KARG <[email protected]>
1 parent 7e2e788 commit e6165e5

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
@@ -156,7 +156,7 @@ private IOUtil()
156156
public static void copy( final InputStream input, final OutputStream output )
157157
throws IOException
158158
{
159-
copy( input, output, DEFAULT_BUFFER_SIZE );
159+
input.transferTo( output );
160160
}
161161

162162
/**

0 commit comments

Comments
 (0)