Mercurial > dive4elements > river
changeset 9197:fb5272746c74
compile error fix
author | gernotbelger |
---|---|
date | Fri, 29 Jun 2018 15:11:22 +0200 |
parents | 87c08fa2da86 |
children | 810f47bba83e |
files | artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/inundationduration/UedauernPropertiesHelper.java |
diffstat | 1 files changed, 3 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- 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) {