comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.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 b17634649e61
children a56fe3bc6700
comparison
equal deleted inserted replaced
7253:90a3bcd8060a 7254:fe32a7f9655e
235 kms.add(km); 235 kms.add(km);
236 } 236 }
237 } 237 }
238 } 238 }
239 239
240 for (int j = 0; j < kms.size(); j++) { 240 for (int j = 0, J = kms.size(); j < J; j++) {
241 calculateEpochKm(epochLoads, resLoad, kms.get(j)); 241 calculateEpochKm(epochLoads, resLoad, kms.get(j));
242 } 242 }
243 resLoad.setDescription(""); 243 resLoad.setDescription("");
244 resLoad.setEpoch(true); 244 resLoad.setEpoch(true);
245 245

http://dive4elements.wald.intevation.org