From e909357fb4548a297d6c7a9204b064a7662e7ac6 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Sun, 5 Jun 2011 12:45:10 +0000 Subject: [PATCH] Explicit boxing git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1132390 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/commons/lang3/text/FormattableUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/lang3/text/FormattableUtils.java b/src/main/java/org/apache/commons/lang3/text/FormattableUtils.java index cc485a8db..f983229bd 100644 --- a/src/main/java/org/apache/commons/lang3/text/FormattableUtils.java +++ b/src/main/java/org/apache/commons/lang3/text/FormattableUtils.java @@ -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);