zooo-code commented on code in PR #21429:
URL: https://github.com/apache/kafka/pull/21429#discussion_r2820070019


##########
clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRecords.java:
##########
@@ -135,10 +141,22 @@ protected ConsumerRecord<K, V> makeNext() {
         }
     }
 
+    /**
+     * Returns whether this container has any records.
+     *
+     * @return true if there are no records, false otherwise
+     */
     public boolean isEmpty() {
         return records.isEmpty();
     }
 
+    /**
+     * Returns an empty ConsumerRecords instance.

Review Comment:
   That makes sense. It acts as a public utility for returning empty results. 
Since it is currently exposed as a public API, I added the Javadoc to ensure 
full documentation coverage.



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