[Dive4elements-commits] [PATCH 1 of 4] Refactor getting the WQKms into it's own method

Wald Commits scm-commit at wald.intevation.org
Tue Nov 27 17:43:33 CET 2012


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1354034303 -3600
# Node ID 5d19a291bd9f96bd2ee2b75f9a49878f0ffdbe20
# Parent  6bfed02f025fd295e2bab9b8939c04e5736126c6
Refactor getting the WQKms into it's own method

diff -r 6bfed02f025f -r 5d19a291bd9f flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeCurveFacet.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeCurveFacet.java	Tue Nov 27 17:47:33 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeCurveFacet.java	Tue Nov 27 17:38:23 2012 +0100
@@ -35,7 +35,10 @@
 
     @Override
     public Object getData(Artifact art, CallContext context) {
+        return getWQKms(art, context);
+    }
 
+    protected WQKms getWQKms(Artifact art, CallContext context) {
         if (!(art instanceof FLYSArtifact)) {
             log.warn("Invalid artifact type");
             return null;


More information about the Dive4elements-commits mailing list