Skip to content

Commit

Permalink
Renamed per @rfsholte's request
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarg committed Apr 2, 2021
1 parent e139896 commit d9824e2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
Expand Up @@ -9,14 +9,10 @@
/**
* Implementation specific to Java SE 8 version.
*/
final class VersionSpecifics
abstract class BaseIOUtil
{
private static final int DEFAULT_BUFFER_SIZE = 1024 * 16;

private VersionSpecifics() {
// singleton
}

static void copy( final InputStream input, final OutputStream output )
throws IOException
{
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/codehaus/plexus/util/IOUtil.java
Expand Up @@ -132,7 +132,7 @@
* method variants to specify buffer size and encoding, each row may correspond to up to 4 methods.
*/

public final class IOUtil
public final class IOUtil extends BaseIOUtil
{
private static final int DEFAULT_BUFFER_SIZE = 1024 * 16;

Expand All @@ -156,7 +156,7 @@ private IOUtil()
public static void copy( final InputStream input, final OutputStream output )
throws IOException
{
VersionSpecifics.copy( input, output );
BaseIOUtil.copy( input, output );
}

/**
Expand Down Expand Up @@ -186,7 +186,7 @@ public static void copy( final InputStream input, final OutputStream output, fin
public static void copy( final Reader input, final Writer output )
throws IOException
{
VersionSpecifics.copy( input, output );
BaseIOUtil.copy( input, output );
}

/**
Expand Down
Expand Up @@ -9,12 +9,8 @@
/**
* Implementation specific to Java SE 10 version.
*/
final class VersionSpecifics
abstract class BaseIOUtil
{
private VersionSpecifics() {
// singleton
}

static void copy( final InputStream input, final OutputStream output )
throws IOException
{
Expand Down
Expand Up @@ -9,14 +9,10 @@
/**
* Implementation specific to Java SE 9 version.
*/
final class VersionSpecifics
abstract class BaseIOUtil
{
private static final int DEFAULT_BUFFER_SIZE = 1024 * 16;

private VersionSpecifics() {
// singleton
}

static void copy( final InputStream input, final OutputStream output )
throws IOException
{
Expand Down

0 comments on commit d9824e2

Please sign in to comment.