Repository: commons-text
Updated Branches:
  refs/heads/master 50c38d6c0 -> ccfb4562b


FormattableUtils#append: simplify String#format pattern


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

Branch: refs/heads/master
Commit: bbd9800a2d611700e1260ff82936c2fa3ec771bc
Parents: 50c38d6
Author: Pascal Schumacher <pascalschumac...@gmx.net>
Authored: Sat Nov 4 13:14:06 2017 +0100
Committer: Pascal Schumacher <pascalschumac...@gmx.net>
Committed: Sat Nov 4 13:14:06 2017 +0100

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


http://git-wip-us.apache.org/repos/asf/commons-text/blob/bbd9800a/src/main/java/org/apache/commons/text/FormattableUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/text/FormattableUtils.java 
b/src/main/java/org/apache/commons/text/FormattableUtils.java
index 69eed1d..a3eb153 100644
--- a/src/main/java/org/apache/commons/text/FormattableUtils.java
+++ b/src/main/java/org/apache/commons/text/FormattableUtils.java
@@ -131,7 +131,7 @@ public class FormattableUtils {
             final int precision, final char padChar, final CharSequence 
ellipsis) {
         if (!(ellipsis == null || precision < 0 || ellipsis.length() <= 
precision)) {
             throw new IllegalArgumentException(
-                    String.format("Specified ellipsis '%1$s' exceeds precision 
of %2$s",
+                    String.format("Specified ellipsis '%s' exceeds precision 
of %s",
                             ellipsis,
                             precision));
         }

Reply via email to