comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/MapArtifact.java @ 3555:b1912514e0f5

s/container.size() == 0/container.isEmpty()/ flys-artifacts/trunk@5149 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sat, 28 Jul 2012 21:48:15 +0000
parents 453d2d0c4258
children 2fdbe78a8fc2
comparison
equal deleted inserted replaced
3554:9b356ed24411 3555:b1912514e0f5
96 for (String stateId: stateIds) { 96 for (String stateId: stateIds) {
97 logger.debug("Append output modes for state: " + stateId); 97 logger.debug("Append output modes for state: " + stateId);
98 DefaultState state = (DefaultState) engine.getState(stateId); 98 DefaultState state = (DefaultState) engine.getState(stateId);
99 99
100 List<Output> list = state.getOutputs(); 100 List<Output> list = state.getOutputs();
101 if (list == null || list.size() == 0) { 101 if (list == null || list.isEmpty()) {
102 logger.debug("-> No output modes for this state."); 102 logger.debug("-> No output modes for this state.");
103 continue; 103 continue;
104 } 104 }
105 105
106 List<Facet> fs = facets.get(stateId); 106 List<Facet> fs = facets.get(stateId);
107 107
108 if (fs == null || fs.size() == 0) { 108 if (fs == null || fs.isEmpty()) {
109 logger.debug("No facets for previous state found."); 109 logger.debug("No facets for previous state found.");
110 continue; 110 continue;
111 } 111 }
112 112
113 logger.debug("Found " + fs.size() + " facets in previous states."); 113 logger.debug("Found " + fs.size() + " facets in previous states.");

http://dive4elements.wald.intevation.org