mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-31 07:20:25 +07:00
a65ac28d32
GitOrigin-RevId: 2d8ea0c12c2320d5f8b0e685b9a047bf3f972852
20 lines
714 B
Java
20 lines
714 B
Java
// "Fix all 'Redundant file creation' problems in file" "true"
|
|
import java.io.*;
|
|
import java.util.Formatter;
|
|
|
|
class Main {
|
|
private static String getSomePathname() {
|
|
return "Some pathname";
|
|
}
|
|
|
|
public main(String[] args) {
|
|
InputStream is = new FileInputStream(new Fi<caret>le(getSomePathname()));
|
|
OutputStream os = new FileOutputStream(new File(getSomePathname()));
|
|
FileReader fr = new FileReader(new File(getSomePathname()));
|
|
FileWriter fw = new FileWriter(new File(getSomePathname()));
|
|
PrintStream ps = new PrintStream(new File(getSomePathname()));
|
|
PrintWriter pw = new PrintWriter(new File(getSomePathname()));
|
|
Formatter f = new Formatter(new File(getSomePathname()));
|
|
}
|
|
}
|