ensured the properties file was closed after being read

Former-commit-id: bee36a9892968a5455508e2275fdb1787e04c1c2
This commit is contained in:
Jeremy Long
2013-09-02 12:48:17 -04:00
parent 376bfb6799
commit 4e4b7a1c39

View File

@@ -119,6 +119,16 @@ public class DataStoreMetaInfo {
final String msg = String.format("Unable to load properties file '%s'", file.getPath());
Logger.getLogger(DataStoreMetaInfo.class.getName()).log(Level.WARNING, msg);
Logger.getLogger(DataStoreMetaInfo.class.getName()).log(Level.FINE, null, ex);
} finally {
if (is != null) {
try {
is.close();
} catch (IOException ex) {
final String msg = String.format("Unable to close properties file '%s'", file.getPath());
Logger.getLogger(DataStoreMetaInfo.class.getName()).log(Level.WARNING, msg);
Logger.getLogger(DataStoreMetaInfo.class.getName()).log(Level.FINE, null, ex);
}
}
}
}
}