sashapolo commented on a change in pull request #203:
URL: https://github.com/apache/ignite-3/pull/203#discussion_r672298010



##########
File path: 
modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
##########
@@ -469,4 +472,16 @@ public static void closeAll(Collection<? extends 
AutoCloseable> closeables) thro
         if (ex != null)
             throw ex;
     }
+
+    /**
+     * Closes all provided objects.
+     *
+     * @param closeables Array of closeable objects to close.
+     * @throws Exception If failed to close.
+     *
+     * @see #closeAll(Collection)
+     */
+    public static void closeAll(AutoCloseable... closeables) throws Exception {
+        closeAll(Arrays.asList(closeables));

Review comment:
       why? Isn't this a bit of a premature optimization?




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