# HG changeset patch # User Ingo Weinzierl # Date 1264090088 0 # Node ID 90f03b909bb09990cf6a86ec12002a54c9a5f1ce # Parent 45be952a321510ed619f9f3f15e11e9348be3b58 Removed never try-catch of a never thrown exception. gnv-artifacts/trunk@591 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 45be952a3215 -r 90f03b909bb0 gnv-artifacts/ChangeLog --- 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 + + * 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 Issue136 & Issue137 diff -r 45be952a3215 -r 90f03b909bb0 gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java --- 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; } diff -r 45be952a3215 -r 90f03b909bb0 gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileOutputState.java --- 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(