Skip to content
Snippets Groups Projects
Commit 5f05553e authored by Nikolaus Krismer's avatar Nikolaus Krismer
Browse files

fixed minor findbugs warning

parent 91d52752
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,6 @@ import it.unibz.inf.isochrone.util.ResourceHelper; ...@@ -17,7 +17,6 @@ import it.unibz.inf.isochrone.util.ResourceHelper;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream;
import java.net.URL; import java.net.URL;
import java.text.DateFormat; import java.text.DateFormat;
import java.text.ParseException; import java.text.ParseException;
...@@ -369,8 +368,6 @@ public class ConfigDataset { ...@@ -369,8 +368,6 @@ public class ConfigDataset {
final Pattern dsConfigPattern = Pattern.compile(DS_CONFIG_PATTERN); final Pattern dsConfigPattern = Pattern.compile(DS_CONFIG_PATTERN);
URL r = null; URL r = null;
InputStream r2 = null;
final Collection<String> resources = new ArrayList<>(); final Collection<String> resources = new ArrayList<>();
try { try {
// find resources on disk and add to available ones // find resources on disk and add to available ones
...@@ -397,14 +394,6 @@ public class ConfigDataset { ...@@ -397,14 +394,6 @@ public class ConfigDataset {
} }
} catch (IOException e) { } catch (IOException e) {
LOGGER.warn("Datasets could not be read. There might be no configured datasets available!"); LOGGER.warn("Datasets could not be read. There might be no configured datasets available!");
} finally {
if (r2 != null) {
try {
r2.close();
} catch (IOException e) {
LOGGER.debug("Could not close input stream after searching for config files in classpath");
}
}
} }
if (resources.size() <= 0) { if (resources.size() <= 0) {
......
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