Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java @ 4050:975f608dd254
Cleaned up iterating over maps. Removed some dead code.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sat, 06 Oct 2012 12:27:01 +0200 |
parents | 62d99de39a8d |
children | b74399bd0960 |
comparison
equal
deleted
inserted
replaced
4049:8e66293c5369 | 4050:975f608dd254 |
---|---|
4 import java.io.OutputStream; | 4 import java.io.OutputStream; |
5 import java.util.ArrayList; | 5 import java.util.ArrayList; |
6 import java.util.HashMap; | 6 import java.util.HashMap; |
7 import java.util.List; | 7 import java.util.List; |
8 import java.util.Map; | 8 import java.util.Map; |
9 import java.util.Set; | |
10 | 9 |
11 import javax.xml.xpath.XPathConstants; | 10 import javax.xml.xpath.XPathConstants; |
12 | 11 |
13 import org.apache.log4j.Logger; | 12 import org.apache.log4j.Logger; |
14 import org.w3c.dom.Document; | 13 import org.w3c.dom.Document; |
255 if (outputMap == null || outputMap.isEmpty()) { | 254 if (outputMap == null || outputMap.isEmpty()) { |
256 log.debug("No Output Settings check necessary."); | 255 log.debug("No Output Settings check necessary."); |
257 return modified; | 256 return modified; |
258 } | 257 } |
259 | 258 |
260 Set<Map.Entry<String, Output>> entries = outputMap.entrySet(); | 259 |
261 | 260 for (Map.Entry<String, Output> entry: outputMap.entrySet()) { |
262 for (Map.Entry<String, Output> entry: entries) { | |
263 String outName = entry.getKey(); | 261 String outName = entry.getKey(); |
264 Output output = entry.getValue(); | 262 Output output = entry.getValue(); |
265 | 263 |
266 if (outName.equals("sq_overview")) { | 264 if (outName.equals("sq_overview")) { |
267 continue; | 265 continue; |