Explicit boxing

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1132390 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2011-06-05 12:45:10 +00:00
parent d3d4622998
commit e909357fb4
1 changed files with 1 additions and 1 deletions

View File

@ -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);