Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/OutputHelper.java @ 7254:fe32a7f9655e
Reduce usage of careless 'for (int i = 0; i < x.size(); i++)' pattern.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sat, 05 Oct 2013 17:52:16 +0200 |
parents | 1b35b2ddfc28 |
children | e4606eae8ea5 |
comparison
equal
deleted
inserted
replaced
7253:90a3bcd8060a | 7254:fe32a7f9655e |
---|---|
81 | 81 |
82 List<ArtifactAndFacet> dataProviders = | 82 List<ArtifactAndFacet> dataProviders = |
83 doBlackboardPass(themeList, context, outName); | 83 doBlackboardPass(themeList, context, outName); |
84 | 84 |
85 try { | 85 try { |
86 for (int i = 0; i < themeList.size(); i++) { | 86 for (int i = 0, T = themeList.size(); i < T; i++) { |
87 ManagedFacet theme = themeList.get(i); | 87 ManagedFacet theme = themeList.get(i); |
88 | 88 |
89 if (theme == null) { | 89 if (theme == null) { |
90 log.debug("Theme is empty - no output is generated."); | 90 log.debug("Theme is empty - no output is generated."); |
91 continue; | 91 continue; |