Add explict default case
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1565257 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
65392be352
commit
d6a556dad7
|
@ -389,6 +389,8 @@ public class ExtendedMessageFormat extends MessageFormat {
|
|||
case QUOTE:
|
||||
getQuotedString(pattern, pos, false);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException(
|
||||
|
|
|
@ -1073,6 +1073,8 @@ public class DateUtils {
|
|||
offsetSet = true;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (!offsetSet) {
|
||||
final int min = val.getActualMinimum(aField[0]);
|
||||
|
@ -1195,6 +1197,8 @@ public class DateUtils {
|
|||
startCutoff = focus.get(Calendar.DAY_OF_WEEK) - 3;
|
||||
endCutoff = focus.get(Calendar.DAY_OF_WEEK) + 3;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
@ -1694,6 +1698,8 @@ public class DateUtils {
|
|||
case Calendar.MONTH:
|
||||
result += ((calendar.get(Calendar.DAY_OF_MONTH) -1) * MILLIS_PER_DAY) / millisPerUnit;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
switch (fragment) {
|
||||
|
|
|
@ -346,6 +346,8 @@ public class FastDateParser implements DateParser, Serializable {
|
|||
c = 'Q'; // appended below
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
regex.append(c);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue