Convert to Java 5 enhanced for loops.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1144992 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2011-07-11 00:49:04 +00:00
parent fab64bbdc7
commit 14373ad1b1
1 changed files with 2 additions and 2 deletions

View File

@ -951,8 +951,8 @@ public class DateUtils {
boolean roundUp = false; boolean roundUp = false;
for (int[] aField : fields) { for (int[] aField : fields) {
for (int j = 0; j < aField.length; j++) { for (int element : aField) {
if (aField[j] == field) { if (element == field) {
//This is our field... we stop looping //This is our field... we stop looping
if (modType == MODIFY_CEILING || (modType == MODIFY_ROUND && roundUp)) { if (modType == MODIFY_CEILING || (modType == MODIFY_ROUND && roundUp)) {
if (field == DateUtils.SEMI_MONTH) { if (field == DateUtils.SEMI_MONTH) {