Fix Eclipse case drop-thru warnings

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829391 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2009-10-24 15:48:10 +00:00
parent c341321e0c
commit 835085d912
1 changed files with 4 additions and 1 deletions

View File

@ -293,7 +293,7 @@ public class DateUtils {
if (i == 0) {
parser = new SimpleDateFormat(parsePatterns[0]);
} else {
parser.applyPattern(parsePatterns[i]);
parser.applyPattern(parsePatterns[i]); // cannot be null if i != 0
}
pos.setIndex(0);
Date date = parser.parse(str, pos);
@ -1621,10 +1621,13 @@ public class DateUtils {
case Calendar.DAY_OF_YEAR:
case Calendar.DATE:
result += (calendar.get(Calendar.HOUR_OF_DAY) * MILLIS_PER_HOUR) / millisPerUnit;
//$FALL-THROUGH$
case Calendar.HOUR_OF_DAY:
result += (calendar.get(Calendar.MINUTE) * MILLIS_PER_MINUTE) / millisPerUnit;
//$FALL-THROUGH$
case Calendar.MINUTE:
result += (calendar.get(Calendar.SECOND) * MILLIS_PER_SECOND) / millisPerUnit;
//$FALL-THROUGH$
case Calendar.SECOND:
result += (calendar.get(Calendar.MILLISECOND) * 1) / millisPerUnit;
break;