philipnee commented on code in PR #14364:
URL: https://github.com/apache/kafka/pull/14364#discussion_r1332443272


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/AssignorSelection.java:
##########
@@ -79,6 +80,9 @@ public int hashCode() {
 
     @Override
     public String toString() {
-        return String.format("Assignor selection {type:%s, name:%s}", type, 
serverAssignor);
+        return "AssignorSelection(" +
+                "type=" + type +
+                ", serverAssignor='" + serverAssignor + '\'' +

Review Comment:
   This is a pretty common pattern to override toString. Do you mean making it 
doing?
   
   ```
   AssignorSelection(
   type=TYPE,
   serverAssignor=assignor,
   ...);
   ```
   
   Currently everything is in a single line. Though - this can be used for 
logging, so i wonder what would it look like it if we add line separator.



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to