Skip to content

Commit d403237

Browse files
committed
Import instead of using a FQCN
1 parent 744db00 commit d403237

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/test/java/org/apache/commons/io/test/TestUtils.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import java.io.InputStream;
2929
import java.io.OutputStream;
3030
import java.io.OutputStreamWriter;
31+
import java.io.PrintStream;
3132
import java.io.PrintWriter;
3233
import java.io.Reader;
3334
import java.io.Writer;
@@ -152,15 +153,15 @@ public static void checkFile(final File file, final File referenceFile)
152153

153154
public static void checkWrite(final OutputStream output) {
154155
try {
155-
new java.io.PrintStream(output).write(0);
156+
new PrintStream(output).write(0);
156157
} catch (final Throwable t) {
157158
fail("The copy() method closed the stream when it shouldn't have. " + t.getMessage());
158159
}
159160
}
160161

161162
public static void checkWrite(final Writer output) {
162163
try {
163-
new java.io.PrintWriter(output).write('a');
164+
new PrintWriter(output).write('a');
164165
} catch (final Throwable t) {
165166
fail("The copy() method closed the stream when it shouldn't have. " + t.getMessage());
166167
}

0 commit comments

Comments
 (0)