Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/redundantFileCreation/beforeTakeStringFromMethod.java
T
Andrey.Cherkasov a65ac28d32 RedundantFileCreationInspection created: IDEA-249165
GitOrigin-RevId: 2d8ea0c12c2320d5f8b0e685b9a047bf3f972852
2020-09-04 09:42:42 +00:00

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()));
}
}