From 6216172444c125a0fe38e1796a0df2ea6feda12a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Cogolu=C3=A8gnes?= Date: Fri, 2 Feb 2024 17:04:53 +0100 Subject: [PATCH] Add single-argument method version for binary compatibility --- src/org/jgroups/protocols/Discovery.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/jgroups/protocols/Discovery.java b/src/org/jgroups/protocols/Discovery.java index 1076f35b8b..e26eb1e6a3 100644 --- a/src/org/jgroups/protocols/Discovery.java +++ b/src/org/jgroups/protocols/Discovery.java @@ -636,6 +636,10 @@ protected static List deserialize(final byte[] data, int offset, int l return list; } + public static ByteArray marshal(PingData data) { + return marshal(new PingData[] {data}); + } + public static ByteArray marshal(PingData ... list) { return marshal(List.of(list)); }