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:
parent
d3d4622998
commit
e909357fb4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue