void () { doTest("import java.io.*;" + "import java.net.*;" + "class X {" + " public static void m() throws IOException {" + " try {" + " final Socket socket = new /*'Socket' should be opened in front of a 'try' block and closed in the corresponding 'finally' block*/Socket/**/(InetAddress.getLocalHost(), 1);" + " } finally {" + " }" + " }" + "}"); }