changeset 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 1e379598c47a
files flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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