Mercurial > dive4elements > gnv-client
changeset 508:90f03b909bb0
Removed never try-catch of a never thrown exception.
gnv-artifacts/trunk@591 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 21 Jan 2010 16:08:08 +0000 |
parents | 45be952a3215 |
children | e17621ccf06c |
files | gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileOutputState.java |
diffstat | 3 files changed, 11 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog Thu Jan 21 14:42:51 2010 +0000 +++ b/gnv-artifacts/ChangeLog Thu Jan 21 16:08:08 2010 +0000 @@ -1,3 +1,8 @@ +2010-01-21 Ingo Weinzierl <ingo.weinzierl@intevation.de> + + * src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileOutputState.java: + Repaired revision. Removed try-catch of a never thrown exception. + 2010-01-21 Ingo Weinzierl <ingo.weinzierl@intevation.de> Issue136 & Issue137
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java Thu Jan 21 14:42:51 2010 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java Thu Jan 21 16:08:08 2010 +0000 @@ -447,6 +447,8 @@ ArtifactNamespaceContext.NAMESPACE_PREFIX ); + ArtifactXMLUtilities xml = new ArtifactXMLUtilities(); + log.debug("DESCRIBE: " + xml.writeDocument2String(document)); return document; }
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileOutputState.java Thu Jan 21 14:42:51 2010 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileOutputState.java Thu Jan 21 16:08:08 2010 +0000 @@ -255,16 +255,11 @@ String qry = CHART_TITLE_META[i]; if (qry.equals("SHAPE")) { - try { - String wktPoint = result.getString(qry); + String wktPoint = result.getString(qry); - meta.append(getMessage(locale,"coordinate","coordinate")); - meta.append(": "); - meta.append(WKTUtils.toText(wktPoint)); - } - catch (ParseException pe) { - log.warn("Error while parsing point.", pe); - } + meta.append(getMessage(locale,"coordinate","coordinate")); + meta.append(": "); + meta.append(WKTUtils.toText(wktPoint)); } else { log.debug(