You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2016/11/17 00:27:20 UTC
[lang] The declared exception ParseException is not actually thrown.
Repository: commons-lang
Updated Branches:
refs/heads/master c0771cbc3 -> 3aface958
The declared exception ParseException is not actually thrown.
Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/3aface95
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/3aface95
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/3aface95
Branch: refs/heads/master
Commit: 3aface95813003ff75505e2ed7d75b072228d3f8
Parents: c0771cb
Author: Gary Gregory <gg...@apache.org>
Authored: Wed Nov 16 16:27:19 2016 -0800
Committer: Gary Gregory <gg...@apache.org>
Committed: Wed Nov 16 16:27:19 2016 -0800
----------------------------------------------------------------------
.../org/apache/commons/lang3/time/FastDateParserSDFTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-lang/blob/3aface95/src/test/java/org/apache/commons/lang3/time/FastDateParserSDFTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/lang3/time/FastDateParserSDFTest.java b/src/test/java/org/apache/commons/lang3/time/FastDateParserSDFTest.java
index 43464ed..3816d69 100644
--- a/src/test/java/org/apache/commons/lang3/time/FastDateParserSDFTest.java
+++ b/src/test/java/org/apache/commons/lang3/time/FastDateParserSDFTest.java
@@ -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);