Skip to content

Commit

Permalink
Merge pull request #769 from acogoluegnes/discovery-marshall-one-argu…
Browse files Browse the repository at this point in the history
…ment-method

Add single-argument method version for binary compatibility
  • Loading branch information
belaban authored Feb 2, 2024
2 parents 6404cdd + 6216172 commit 438e554
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 438e554

Please sign in to comment.