diff flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java @ 4925:57609ffb3843

AttributeWriter: Use new CollectionAttribute.hasOutput .
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 31 Jan 2013 09:29:24 +0100
parents 725de57d3774
children 345f3bba6f15
line wrap: on
line diff
--- 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);
             }
 

http://dive4elements.wald.intevation.org