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:
parent
fab64bbdc7
commit
14373ad1b1
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue