# HG changeset patch # User Felix Wolfsteller # 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); }