import java.util.Formatter; import java.io.PrintStream; import java.io.PrintWriter; import java.io.Console; import java.io.File; public class A { void f_string() { String.format("%s%s", ""); // missing } void f_formatter(Formatter x) { x.format("%s%s", ""); // missing } void f_printstream(PrintStream x) { x.format("%s%s", ""); // missing x.printf("%s%s", ""); // missing } void f_printwriter(PrintWriter x) { x.format("%s%s", ""); // missing x.printf("%s%s", ""); // missing } void f_console(Console x) { x.format("%s%s", ""); // missing x.printf("%s%s", ""); // missing x.readLine("%s%s", ""); // missing x.readPassword("%s%s", ""); // missing } void custom_format(Object o, String fmt, Object... args) { String.format(fmt, args); } void f_wrapper() { custom_format(new Object(), "%s%s", ""); // missing } void f() { String.format("%s", "", ""); // unused String.format("s", ""); // unused String.format("%2$s %2$s", "", ""); // unused String.format("%2$s %1$s", "", ""); // ok String.format("%2$s %s", ""); // missing String.format("%s%