[Dive4elements-commits] [PATCH 4 of 4] AttributeWriter: Use new CollectionAttribute.hasOutput

Wald Commits scm-commit at wald.intevation.org
Thu Jan 31 09:22:59 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1359620964 -3600
# Node ID 57609ffb3843fbc25a3e6165b526e8e187a4e973
# Parent  725de57d377414aa5e5fb8873224655066a43c65
AttributeWriter: Use new CollectionAttribute.hasOutput .

diff -r 725de57d3774 -r 57609ffb3843 flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java	Thu Jan 31 09:29:02 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java	Thu Jan 31 09:29:24 2013 +0100
@@ -100,8 +100,7 @@
             String outName = entry.getKey();
             Output a       = entry.getValue();
 
-            Output exists = attribute.getOutput(outName);
-            if (exists == null) {
+            if (!attribute.hasOutput(outName)) {
                 attribute.addOutput(outName, a);
             }
 


More information about the Dive4elements-commits mailing list