axreldable commented on code in PR #1017:
URL: https://github.com/apache/arrow-java/pull/1017#discussion_r2816402893


##########
memory/memory-core/src/main/java/org/apache/arrow/util/AutoCloseables.java:
##########
@@ -48,7 +51,10 @@ public void close() throws Exception {
    * @param t the throwable to add suppressed exception to
    * @param autoCloseables the closeables to close
    */
-  public static void close(Throwable t, AutoCloseable... autoCloseables) {
+  public static void close(Throwable t, @Nullable AutoCloseable... 
autoCloseables) {
+    if (autoCloseables == null) {
+      return;

Review Comment:
   Yes, they are saying it's not overly cautious.
   https://stackoverflow.com/a/28271272/8269828



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