commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1132390 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/FormattableUtils.java
Date Sun, 05 Jun 2011 12:45:11 GMT
Author: sebb
Date: Sun Jun  5 12:45:10 2011
New Revision: 1132390

URL: http://svn.apache.org/viewvc?rev=1132390&view=rev
Log:
Explicit boxing

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/FormattableUtils.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/FormattableUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/FormattableUtils.java?rev=1132390&r1=1132389&r2=1132390&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/FormattableUtils.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/FormattableUtils.java
Sun Jun  5 12:45:10 2011
@@ -134,7 +134,7 @@ public class FormattableUtils {
     public static Formatter append(CharSequence seq, Formatter formatter, int flags, int
width,
             int precision, char padChar, CharSequence ellipsis) {
         Validate.isTrue(ellipsis == null || precision < 0 || ellipsis.length() <= precision,
-                "Specified ellipsis '%1$s' exceeds precision of %2$s", ellipsis, precision);
+                "Specified ellipsis '%1$s' exceeds precision of %2$s", ellipsis, Integer.valueOf(precision));
         StringBuilder buf = new StringBuilder(seq);
         if (precision >= 0 && precision < seq.length()) {
             CharSequence _ellipsis = ObjectUtils.defaultIfNull(ellipsis, StringUtils.EMPTY);



Mime
View raw message