chia7712 commented on a change in pull request #9746:
URL: https://github.com/apache/kafka/pull/9746#discussion_r559912752



##########
File path: 
clients/src/main/java/org/apache/kafka/common/requests/ApiVersionsResponse.java
##########
@@ -220,4 +217,16 @@ private static FinalizedFeatureKeyCollection 
createFinalizedFeatureKeys(
 
         return converted;
     }
+
+    public static Optional<ApiVersionsResponseData.ApiVersion> 
intersect(ApiVersionsResponseData.ApiVersion thisVersion,
+                                                                         
ApiVersionsResponseData.ApiVersion other) {
+        if (other == null) return Optional.empty();

Review comment:
       From the usage of this method, only ```other``` can be null. So current 
check is enough.




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

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


Reply via email to