[Dive4elements-commits] [PATCH 7 of 9] Use getRiverId from the baseclass
Wald Commits
scm-commit at wald.intevation.org
Wed Mar 27 15:40:13 CET 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1364395004 -3600
# Node ID 84da5ed67e93fc18e598441c6742fef0733b39f2
# Parent 6aa04b30f7ffcb29a3c7fec6de01830755b237e2
Use getRiverId from the baseclass
diff -r 6aa04b30f7ff -r 84da5ed67e93 flys-artifacts/src/main/java/de/intevation/flys/artifacts/WMSQPSArtifact.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WMSQPSArtifact.java Wed Mar 27 15:36:02 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WMSQPSArtifact.java Wed Mar 27 15:36:44 2013 +0100
@@ -77,26 +77,8 @@
private static final Logger logger =
Logger.getLogger(WMSQPSState.class);
- protected int riverId;
-
public WMSQPSState(WMSDBArtifact artifact) {
super(artifact);
- riverId = 0;
- }
-
- public int getRiverId() {
- if (riverId == 0) {
- String ids = artifact.getDataAsString("ids");
-
- try {
- riverId = Integer.parseInt(ids);
- }
- catch (NumberFormatException nfe) {
- logger.error("Cannot parse river id from '" + ids + "'");
- }
- }
-
- return riverId;
}
@Override
More information about the Dive4elements-commits
mailing list