We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d5ea9a commit 308a850Copy full SHA for 308a850
1 file changed
app/src/androidTest/java/at/tomtasche/reader/test/CoreTest.java
@@ -18,7 +18,6 @@
18
import java.io.IOException;
19
import java.io.InputStream;
20
import java.io.OutputStream;
21
-import java.nio.file.Files;
22
23
import at.tomtasche.reader.background.CoreWrapper;
24
@@ -54,7 +53,7 @@ public void cleanupTestFile() {
54
53
}
55
56
private static void copy(InputStream src, File dst) throws IOException {
57
- try (OutputStream out = Files.newOutputStream(dst.toPath())) {
+ try (OutputStream out = new FileOutputStream(dst)) {
58
byte[] buf = new byte[1024];
59
int len;
60
while ((len = src.read(buf)) > 0) {
0 commit comments