chia7712 commented on code in PR #20973:
URL: https://github.com/apache/kafka/pull/20973#discussion_r2569194851
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareAcquireMode.java:
##########
@@ -65,7 +65,7 @@ public static ShareAcquireMode forId(byte id) {
@Override
public String toString() {
- return "ShareAcquireMode(" + name + " (" + id + "))";
+ return name;
Review Comment:
@JimmyWang6 Could you add a unit test to ensure that the value from
`toString()` can be successfully parsed back by `of(String)`?
--
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]