sanpwc commented on code in PR #3575:
URL: https://github.com/apache/ignite-3/pull/3575#discussion_r1570529696
##########
modules/affinity/src/main/java/org/apache/ignite/internal/affinity/Assignments.java:
##########
@@ -135,4 +136,14 @@ public static Assignments fromBytes(byte @Nullable []
bytes) {
public String toString() {
return S.toString(this);
}
+
+ /**
+ * Creates a string representation of the given assignments list for
logging usage purpose mostly.
+ *
+ * @param assignments List of assignments to present as string.
+ * @return String representation of the given assignments list.
+ */
+ public static String assignmentListToString(List<Assignments> assignments)
{
Review Comment:
Why we do not use toString for that purpose?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]