mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-07 18:48:39 +00:00
The declared exception ParseException is not actually thrown.
This commit is contained in:
parent
c0771cbc3c
commit
3aface9581
@ -149,7 +149,7 @@ public void testLowerCasePP() throws Exception {
|
|||||||
checkParsePosition(input.toLowerCase(locale));
|
checkParsePosition(input.toLowerCase(locale));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkParse(final String formattedDate) throws ParseException {
|
private void checkParse(final String formattedDate) {
|
||||||
final SimpleDateFormat sdf = new SimpleDateFormat(format, locale);
|
final SimpleDateFormat sdf = new SimpleDateFormat(format, locale);
|
||||||
sdf.setTimeZone(timeZone);
|
sdf.setTimeZone(timeZone);
|
||||||
final DateParser fdf = new FastDateParser(format, timeZone, locale);
|
final DateParser fdf = new FastDateParser(format, timeZone, locale);
|
||||||
@ -189,7 +189,7 @@ private void checkParse(final String formattedDate) throws ParseException {
|
|||||||
assertEquals(locale.toString()+" "+formattedDate + " expected same Exception ", sdfE, fdfE);
|
assertEquals(locale.toString()+" "+formattedDate + " expected same Exception ", sdfE, fdfE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void checkParsePosition(final String formattedDate) throws ParseException {
|
private void checkParsePosition(final String formattedDate) {
|
||||||
final SimpleDateFormat sdf = new SimpleDateFormat(format, locale);
|
final SimpleDateFormat sdf = new SimpleDateFormat(format, locale);
|
||||||
sdf.setTimeZone(timeZone);
|
sdf.setTimeZone(timeZone);
|
||||||
final DateParser fdf = new FastDateParser(format, timeZone, locale);
|
final DateParser fdf = new FastDateParser(format, timeZone, locale);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user