This commit is contained in:
三丙
2024-10-15 17:40:45 +08:00
parent 26588112a3
commit 2780298b60

View File

@@ -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();
}