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