mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
[DS-707] Fix stream closure from previous checkin
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5666 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -214,7 +214,20 @@ public class ConfigurationManager
|
||||
if (modFile.exists())
|
||||
{
|
||||
modProps = new Properties();
|
||||
modProps.load(new FileInputStream(modFile));
|
||||
InputStream modIS = null;
|
||||
try
|
||||
{
|
||||
modIS = new FileInputStream(modFile);
|
||||
modProps.load(modIS);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (modIS != null)
|
||||
{
|
||||
modIS.close();
|
||||
}
|
||||
}
|
||||
|
||||
for (Enumeration pe = modProps.propertyNames(); pe.hasMoreElements(); )
|
||||
{
|
||||
String key = (String)pe.nextElement();
|
||||
|
Reference in New Issue
Block a user