Repository: commons-text
Updated Branches:
  refs/heads/master 644de693c -> 146bf5c9d


Better exception messages.

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

Branch: refs/heads/master
Commit: 146bf5c9dbcb606bfe628dc47b626a55ca485931
Parents: 644de69
Author: Gary Gregory <[email protected]>
Authored: Thu Aug 23 12:49:39 2018 -0600
Committer: Gary Gregory <[email protected]>
Committed: Thu Aug 23 12:49:39 2018 -0600

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


http://git-wip-us.apache.org/repos/asf/commons-text/blob/146bf5c9/src/main/java/org/apache/commons/text/lookup/FileStringLookup.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/text/lookup/FileStringLookup.java 
b/src/main/java/org/apache/commons/text/lookup/FileStringLookup.java
index 111ddb8..66db525 100644
--- a/src/main/java/org/apache/commons/text/lookup/FileStringLookup.java
+++ b/src/main/java/org/apache/commons/text/lookup/FileStringLookup.java
@@ -63,7 +63,7 @@ final class FileStringLookup extends AbstractStringLookup {
         final String[] keys = key.split(":");
         final int keyLen = keys.length;
         if (keyLen != 2) {
-            throw IllegalArgumentExceptions.format("Bad file key format 
[%s],expected format is DocumentPath:Key.",
+            throw IllegalArgumentExceptions.format("Bad file key format [%s], 
expected format is DocumentPath:Key.",
                     key);
         }
         final String charsetName = keys[0];

Reply via email to