Created
September 10, 2013 19:16
-
-
Save ojacobson/6514227 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void writeFoo(File file, Structure data) throws IOException { | |
try (OutputStream fout = new FileOutputStream(file)) { | |
writeHeader(fout); // writeHeader is marked 'throws IOException' and contains no try/catch | |
writeContent(fout, data); // ditto | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment