[PATCH] compile error fix
Wald Commits
scm-commit at wald.intevation.org
Fri Jun 29 15:11:28 CEST 2018
# HG changeset patch
# User gernotbelger
# Date 1530277882 -7200
# Node ID fb5272746c74086ecf9f93cec5a265d6b86faccb
# Parent 87c08fa2da8674c28c78b4db3374e5dfc7b8056c
compile error fix
diff -r 87c08fa2da86 -r fb5272746c74 artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/inundationduration/UedauernPropertiesHelper.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/inundationduration/UedauernPropertiesHelper.java Fri Jun 29 14:54:40 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/inundationduration/UedauernPropertiesHelper.java Fri Jun 29 15:11:22 2018 +0200
@@ -9,7 +9,6 @@
*/
package org.dive4elements.river.artifacts.uinfo.inundationduration;
-import java.io.IOException;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
@@ -70,12 +69,7 @@
private Properties getProperties() {
if (this.properties == null) {
- try {
- this.properties = Config.loadProperties(this.CONFIG_FILE);
- }
- catch (final IOException e) {
- e.printStackTrace();
- }
+ this.properties = Config.loadProperties(this.CONFIG_FILE);
}
return this.properties;
}
@@ -118,14 +112,8 @@
}
public static boolean fileExistsForRiver(final String river) {
- try {
- Config.loadProperties(makeFileName(river));
- return true;
- }
- catch (final IOException e) {
- e.printStackTrace();
- return false;
- }
+ Config.loadProperties(makeFileName(river));
+ return true;
}
public String getScenarioUrlFromYear(final Integer year, final Integer dMwspl) {
More information about the Dive4Elements-commits
mailing list