提交 fdee3fd8 编写于 作者: S Serge Rider

Byte array formatting fix

上级 92e81d22
......@@ -263,7 +263,10 @@ public final class DBValueFormatting {
if (value.getClass().isArray()) {
if (value.getClass().getComponentType() == Byte.TYPE) {
byte[] bytes = (byte[]) value;
return CommonUtils.toHexString(bytes, 0, 2000);
int length = bytes.length;
if (length > 2000) length = 2000;
String string = CommonUtils.toHexString(bytes, 0, length);
return bytes.length > 2000 ? string + "..." : string;
} else {
return GeneralUtils.makeDisplayString(value).toString();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册