mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 05:20:54 +07:00
12 lines
285 B
Java
12 lines
285 B
Java
// "Replace with 'Files.newInputStream()'" "true-preview"
|
|
import java.io.*;
|
|
import java.nio.file.Files;
|
|
|
|
class Foo {
|
|
void test(File file) {
|
|
try (InputStream is = Files.newInputStream(file.toPath())) {
|
|
} catch (IOException e) {
|
|
throw new RuntimeException(e);
|
|
}
|
|
}
|
|
} |