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 2018/06/09 16:48:55 UTC

[10/50] [abbrv] [text] DateStringLookup: remove confusing part of IllegalArgumentException message

DateStringLookup: remove confusing part of IllegalArgumentException message


Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/26a308f4
Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/26a308f4
Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/26a308f4

Branch: refs/heads/release
Commit: 26a308f40f9026fb1f5cffb0f359270a5a3b345c
Parents: 8dde83f
Author: Pascal Schumacher <pa...@gmx.net>
Authored: Wed Apr 4 17:04:35 2018 +0200
Committer: Pascal Schumacher <pa...@gmx.net>
Committed: Wed Apr 4 17:04:35 2018 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/text/lookup/DateStringLookup.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/26a308f4/src/main/java/org/apache/commons/text/lookup/DateStringLookup.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/text/lookup/DateStringLookup.java b/src/main/java/org/apache/commons/text/lookup/DateStringLookup.java
index cb4908a..e7f0114 100644
--- a/src/main/java/org/apache/commons/text/lookup/DateStringLookup.java
+++ b/src/main/java/org/apache/commons/text/lookup/DateStringLookup.java
@@ -55,7 +55,7 @@ final class DateStringLookup extends AbstractStringLookup {
             try {
                 dateFormat = FastDateFormat.getInstance(format);
             } catch (final Exception ex) {
-                throw IllegalArgumentExceptions.format(ex, "Invalid date format: [%s], using default", format);
+                throw IllegalArgumentExceptions.format(ex, "Invalid date format: [%s]", format);
             }
         }
         if (dateFormat == null) {