Description
Elliotte Rusty Harold opened MRESOLVER-672 and commented
Various opportunities including TestFileProcessor
public void write(File target, InputStream source) throws IOException {
mkdirs(target.getAbsoluteFile().getParentFile());
OutputStream fos = null;
try {
fos = new BufferedOutputStream(new FileOutputStream(target));
copy(fos, source, null);
fos.close();
fos = null;
} finally {
try {
if (fos != null) {
fos.close();
}
} catch (final IOException e) {
// Suppressed due to an exception already thrown in the try block.
}
}
}
No further details from MRESOLVER-672