private static String badIndexMsg(int index, int size, String desc, Object... params) {
		if (index < 0) {
			return StrUtil.format("{} ({}) must not be negative", StrUtil.format(desc, params), index);
		} else if (size < 0) {
			throw new IllegalArgumentException("negative size: " + size);
		} else { // index >= size
			return StrUtil.format("{} ({}) must be less than size ({})", StrUtil.format(desc, params), index, size);
		}
	}
private static String badIndexMsg ( int index , int size , String desc , Object ... params ) { if ( index < 0 ) { return StrUtil . format ( "{} ({}) must not be negative" , StrUtil . format ( desc , params ) , index ) ; } else if ( size < 0 ) { throw new IllegalArgumentException ( "negative size: " + size ) ; } else { return StrUtil . format ( "{} ({}) must be less than size ({})" , StrUtil . format ( desc , params ) , index , size ) ; } }
错误的下标时显示的消息

@param index 下标
@param size 长度
@param desc 异常时的消息模板
@param params 参数列表
@return 消息