Skip to content
Snippets Groups Projects
Commit d21cb21a authored by kaloyane's avatar kaloyane
Browse files

minor: make sure datastore_server compile with JVM 1.5

SVN: 21632
parent 779ea315
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@
package ch.systemsx.cisd.openbis.dss.generic.shared.utils;
import java.io.File;
import java.io.FileReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
......@@ -70,9 +70,9 @@ class ShareFactory
{
Properties props = new Properties();
try {
FileReader reader = new FileReader(propsFile);
props.load(reader);
reader.close();
FileInputStream fis = new FileInputStream(propsFile);
props.load(fis);
fis.close();
} catch (IOException ioex) {
log.log(LogLevel.WARN, "Error while reading from " + propsFile.getAbsolutePath()
+ " : " + ioex.getMessage());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment