mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Closing streams using IOUtils.closeQuietly
Fixed badly handled stream found in the meanwhile
This commit is contained in:
@ -29,6 +29,7 @@
|
||||
|
||||
package processing.app;
|
||||
|
||||
import org.apache.commons.compress.utils.IOUtils;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
@ -63,9 +64,7 @@ public class I18NTest {
|
||||
is = new FileInputStream(file);
|
||||
properties.load(is);
|
||||
} finally {
|
||||
if (is != null) {
|
||||
is.close();
|
||||
}
|
||||
IOUtils.closeQuietly(is);
|
||||
}
|
||||
return properties;
|
||||
}
|
||||
|
Reference in New Issue
Block a user