Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.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 | 9b356ed24411 |
children | afc7bfb4800b |
comparison
equal
deleted
inserted
replaced
3554:9b356ed24411 | 3555:b1912514e0f5 |
---|---|
1183 if (debug) { | 1183 if (debug) { |
1184 log.debug("Find Outputs for State: " + state.getID()); | 1184 log.debug("Find Outputs for State: " + state.getID()); |
1185 } | 1185 } |
1186 | 1186 |
1187 List<Output> list = state.getOutputs(); | 1187 List<Output> list = state.getOutputs(); |
1188 if (list == null || list.size() == 0) { | 1188 if (list == null || list.isEmpty()) { |
1189 if (debug) { | 1189 if (debug) { |
1190 log.debug("-> No output modes for this state."); | 1190 log.debug("-> No output modes for this state."); |
1191 } | 1191 } |
1192 return new ArrayList<Output>(); | 1192 return new ArrayList<Output>(); |
1193 } | 1193 } |
1194 | 1194 |
1195 String stateId = state.getID(); | 1195 String stateId = state.getID(); |
1196 | 1196 |
1197 List<Facet> fs = facets.get(stateId); | 1197 List<Facet> fs = facets.get(stateId); |
1198 | 1198 |
1199 if (fs == null || fs.size() == 0) { | 1199 if (fs == null || fs.isEmpty()) { |
1200 if (debug) { | 1200 if (debug) { |
1201 log.debug("No facets found."); | 1201 log.debug("No facets found."); |
1202 } | 1202 } |
1203 return new ArrayList<Output>(); | 1203 return new ArrayList<Output>(); |
1204 } | 1204 } |