ensured the properties file was closed after being read

Former-commit-id: 337a350cc728f3a39eacbd004176a526ac38968f
This commit is contained in:
Jeremy Long
2013-09-02 12:48:17 -04:00
parent 5828266e1e
commit 96214259c7

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);
}
}
}
}
}