mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 04:37:32 +07:00
Fixes IDEA-202559 "Replace with StandardCharsets.UTF_8" produces uncompilable source
14 lines
343 B
Java
14 lines
343 B
Java
// "Replace with 'StandardCharsets.UTF_8'" "true"
|
|
|
|
import java.io.*;
|
|
import java.nio.charset.StandardCharsets;
|
|
|
|
class Test {
|
|
void test(String inputFile) {
|
|
try (InputStream inputStream = new FileInputStream(inputFile)) {
|
|
new InputStreamReader(inputStream, StandardCharsets.UTF_8);
|
|
}
|
|
catch (IOException ignored) {
|
|
}
|
|
}
|
|
} |