Skip to content

Commit 308a850

Browse files
committed
try fix
1 parent 7d5ea9a commit 308a850

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app/src/androidTest/java/at/tomtasche/reader/test/CoreTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import java.io.IOException;
1919
import java.io.InputStream;
2020
import java.io.OutputStream;
21-
import java.nio.file.Files;
2221

2322
import at.tomtasche.reader.background.CoreWrapper;
2423

@@ -54,7 +53,7 @@ public void cleanupTestFile() {
5453
}
5554

5655
private static void copy(InputStream src, File dst) throws IOException {
57-
try (OutputStream out = Files.newOutputStream(dst.toPath())) {
56+
try (OutputStream out = new FileOutputStream(dst)) {
5857
byte[] buf = new byte[1024];
5958
int len;
6059
while ((len = src.read(buf)) > 0) {

0 commit comments

Comments
 (0)