chia7712 commented on code in PR #20180:
URL: https://github.com/apache/kafka/pull/20180#discussion_r2223425093


##########
server/src/main/java/org/apache/kafka/server/share/session/ShareSessionKey.java:
##########
@@ -21,23 +21,12 @@
 
 import java.util.Objects;
 
-public class ShareSessionKey {
-    private final String groupId;
-    private final Uuid memberId;
-
+public record ShareSessionKey(String groupId, Uuid memberId) {
     public ShareSessionKey(String groupId, Uuid memberId) {
         this.groupId = Objects.requireNonNull(groupId);
         this.memberId = Objects.requireNonNull(memberId);
     }
 
-    public String groupId() {
-        return groupId;
-    }
-
-    public Uuid memberId() {
-        return memberId;
-    }
-
     @Override
     public int hashCode() {

Review Comment:
   If the implementation is equal to generated code, please remove them to 
simplify the code base :)



-- 
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