mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-04 09:59:55 +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
|
||||
public String toString() {
|
||||
if (data instanceof byte[]) {
|
||||
return ByteBufUtil.hexDump((byte[]) data);
|
||||
if (data instanceof byte[] bytes) {
|
||||
return ByteBufUtil.hexDump(bytes);
|
||||
} else {
|
||||
return data.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user