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