forked from I2P_Developers/i2p.i2p
Cleanups: Close resources via try-finally
This commit is contained in:
@@ -394,12 +394,11 @@ public class TranslateReader extends FilterReader {
|
||||
}
|
||||
|
||||
private static void test(String file) throws IOException {
|
||||
FileInputStream fio = new FileInputStream(file);
|
||||
TranslateReader r = null;
|
||||
try {
|
||||
r = new TranslateReader(I2PAppContext.getGlobalContext(),
|
||||
"net.i2p.router.web.messages",
|
||||
fio);
|
||||
new FileInputStream(file));
|
||||
int c;
|
||||
while ((c = r.read()) >= 0) {
|
||||
System.out.print((char)c);
|
||||
|
||||
Reference in New Issue
Block a user