Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9824e2

Browse files
committed
Renamed per @rfsholte's request
1 parent e139896 commit d9824e2

File tree

4 files changed

+6
-18
lines changed

4 files changed

+6
-18
lines changed

src/main/java/org/codehaus/plexus/util/VersionSpecifics.java renamed to src/main/java/org/codehaus/plexus/util/BaseIOUtil.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,10 @@
99
/**
1010
* Implementation specific to Java SE 8 version.
1111
*/
12-
final class VersionSpecifics
12+
abstract class BaseIOUtil
1313
{
1414
private static final int DEFAULT_BUFFER_SIZE = 1024 * 16;
1515

16-
private VersionSpecifics() {
17-
// singleton
18-
}
19-
2016
static void copy( final InputStream input, final OutputStream output )
2117
throws IOException
2218
{

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
* method variants to specify buffer size and encoding, each row may correspond to up to 4 methods.
133133
*/
134134

135-
public final class IOUtil
135+
public final class IOUtil extends BaseIOUtil
136136
{
137137
private static final int DEFAULT_BUFFER_SIZE = 1024 * 16;
138138

@@ -156,7 +156,7 @@ private IOUtil()
156156
public static void copy( final InputStream input, final OutputStream output )
157157
throws IOException
158158
{
159-
VersionSpecifics.copy( input, output );
159+
BaseIOUtil.copy( input, output );
160160
}
161161

162162
/**
@@ -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-
VersionSpecifics.copy( input, output );
189+
BaseIOUtil.copy( input, output );
190190
}
191191

192192
/**

src/main/java10/org/codehaus/plexus/util/VersionSpecifics.java renamed to src/main/java10/org/codehaus/plexus/util/BaseIOUtil.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@
99
/**
1010
* Implementation specific to Java SE 10 version.
1111
*/
12-
final class VersionSpecifics
12+
abstract class BaseIOUtil
1313
{
14-
private VersionSpecifics() {
15-
// singleton
16-
}
17-
1814
static void copy( final InputStream input, final OutputStream output )
1915
throws IOException
2016
{

src/main/java9/org/codehaus/plexus/util/VersionSpecifics.java renamed to src/main/java9/org/codehaus/plexus/util/BaseIOUtil.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,10 @@
99
/**
1010
* Implementation specific to Java SE 9 version.
1111
*/
12-
final class VersionSpecifics
12+
abstract class BaseIOUtil
1313
{
1414
private static final int DEFAULT_BUFFER_SIZE = 1024 * 16;
1515

16-
private VersionSpecifics() {
17-
// singleton
18-
}
19-
2016
static void copy( final InputStream input, final OutputStream output )
2117
throws IOException
2218
{

0 commit comments

Comments
 (0)