The declared exception ParseException is not actually thrown.

This commit is contained in:
Gary Gregory 2016-11-16 16:27:19 -08:00
parent c0771cbc3c
commit 3aface9581
1 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ public class FastDateParserSDFTest {
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);
sdf.setTimeZone(timeZone);
final DateParser fdf = new FastDateParser(format, timeZone, locale);
@ -189,7 +189,7 @@ public class FastDateParserSDFTest {
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);
sdf.setTimeZone(timeZone);
final DateParser fdf = new FastDateParser(format, timeZone, locale);