void () { doTest( """ import java.io.*; class C { void m() throws Exception { Reader r1 = new StringReader(); /*_Merge nested 'try' statements*/try (r1) { try (Reader r2 = new StringReader()) { System.out.println(r1 + ", " + r2); } } } }""", """ import java.io.*; class C { void m() throws Exception { Reader r1 = new StringReader(); try (r1; Reader r2 = new StringReader()) { System.out.println(r1 + ", " + r2); } } }"""); }