Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit eebe1be

Browse filesBrowse files
committed
Java 10: Reader.transferTo(Writer) instead of JVM-based byte transfer
Provides potential higher performance. Signed-off-by: Markus KARG <markus@headcrashing.eu>
1 parent e6165e5 commit eebe1be
Copy full SHA for eebe1be

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/main/java/org/codehaus/plexus/util/IOUtil.java
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.