mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-08 03:49:56 +08:00
cleanup
This commit is contained in:
@@ -13,8 +13,8 @@ public record ProtocolUplinkMsg<T>(SocketAddress address, UUID id, T data, int s
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
if (data instanceof byte[]) {
|
if (data instanceof byte[] bytes) {
|
||||||
return ByteBufUtil.hexDump((byte[]) data);
|
return ByteBufUtil.hexDump(bytes);
|
||||||
} else {
|
} else {
|
||||||
return data.toString();
|
return data.toString();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user