Skip to content

Commit

Permalink
Add single-argument method version for binary compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
acogoluegnes committed Feb 2, 2024
1 parent 6404cdd commit 6216172
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/jgroups/protocols/Discovery.java
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,10 @@ protected static List<PingData> 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));
}
Expand Down

0 comments on commit 6216172

Please sign in to comment.