jiafu1115 commented on code in PR #21398:
URL: https://github.com/apache/kafka/pull/21398#discussion_r2766852745


##########
clients/src/main/java/org/apache/kafka/common/utils/Utils.java:
##########
@@ -901,22 +901,10 @@ public FileVisitResult postVisitDirectory(Path path, 
IOException exc) throws IOE
         });
     }
 
-    /**
-     * Returns an empty list if the provided list is null, otherwise returns 
the list itself.
-     * <p>
-     * This method is useful for avoiding {@code NullPointerException} when 
working with potentially null lists.
-     *
-     * @param other the list to check for null
-     * @return an empty list if the provided list is null, otherwise the 
original list
-     */
-    public static <T> List<T> safe(List<T> other) {
-        return other == null ? Collections.emptyList() : other;
-    }
-
    /**
     * Get the ClassLoader which loaded Kafka.
     */
-    public static ClassLoader getKafkaClassLoader() {
+    private static ClassLoader getKafkaClassLoader() {

Review Comment:
   @chia7712 done



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