m1a2st commented on code in PR #21484:
URL: https://github.com/apache/kafka/pull/21484#discussion_r2820469429


##########
clients/src/main/java/org/apache/kafka/clients/admin/AlterConfigOp.java:
##########
@@ -76,10 +79,18 @@ public enum OpType {
             this.id = id;
         }
 
+        /**
+         * Returns the byte ID associated with this operation type. This ID is 
used for serialization 
+         * and protocol communication.
+         */
         public byte id() {
             return id;
         }
 
+        /**
+         * Returns the {@code OpType} corresponding to the given byte ID, or 
{@code null} if the
+         * ID does not match any known operation type.

Review Comment:
   It will return `null`, since this method retrieves values from the 
`OP_TYPES` map. If the key does not exist, the returned value will be `null`.



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

Reply via email to