void () { doTest( """ import java.io.*; class C { void m() throws Exception { Reader r1 = new StringReader(); /*_Replace 'try-with-resources' with 'try finally'*/try (r1; Reader r2 = new StringReader()) { System.out.println(r1 + ", " + r2); } } }""", """ import java.io.*; class C { void m() throws Exception { Reader r1 = new StringReader(); try { Reader r2 = new StringReader(); try { System.out.println(r1 + ", " + r2); } finally { r2.close(); } } finally { r1.close(); } } }"""); }