void () { doTest( """ import java.io.*; class C { void foo(File file1, File file2) throws IOException { /*_Merge nested 'try' statements*/try (FileInputStream in = new FileInputStream(file1)) { try (FileOutputStream out = new FileOutputStream(file2)) { System.out.println(in + ", " + out); } } } }""", """ import java.io.*; class C { void foo(File file1, File file2) throws IOException { try (FileInputStream in = new FileInputStream(file1); FileOutputStream out = new FileOutputStream(file2)) { System.out.println(in + ", " + out); } } }"""); }