[Dive4elements-commits] [PATCH 1 of 6] Use FacetType static String instead of literal

Wald Commits scm-commit at wald.intevation.org
Wed Oct 24 14:25:29 CEST 2012


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1351068156 -7200
# Node ID e972d8ea8555c03aaf4976fe030ef9a49018715b
# Parent  adcb8aee1910d8d790ccfdfdd9a77f143b62c0a2
Use FacetType static String instead of literal.

diff -r adcb8aee1910 -r e972d8ea8555 flys-artifacts/src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.java	Tue Oct 23 16:07:39 2012 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WaterlevelArtifact.java	Wed Oct 24 10:42:36 2012 +0200
@@ -64,7 +64,7 @@
             List<Facet> list = new ArrayList<Facet>();
             List<Facet> wlist = filterFacets.get("longitudinal_section");
             for (Facet f: wlist) {
-                if (!f.getName().equals("longitudinal_section.q")) {
+                if (!f.getName().equals(LONGITUDINAL_Q)) {
                     DefaultFacet df = new DefaultFacet(f.getIndex(),
                         "longitudinal_section.q", "");
                     list.add(df);


More information about the Dive4elements-commits mailing list