void () { doTest( """ import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.List; class AutoCloseableSample { private void processFiles(List<String> files) throws IOException { OutputStream stream = null; try { for (String file : files) { stream = new <warning descr="'FileOutputStream' used without 'try'-with-resources statement">FileOutputStream</warning>(file); } } finally { stream.close(); } } } """); }