This is an automated email from the ASF dual-hosted git repository.

kezhuw pushed a commit to branch branch-3.9
in repository https://gitbox.apache.org/repos/asf/zookeeper.git


The following commit(s) were added to refs/heads/branch-3.9 by this push:
     new 90aa205d23 hotfix: Fix compilation error due to usages of java 9 
List.of
90aa205d23 is described below

commit 90aa205d23fab3d0844602fd76d99891763ed84e
Author: Kezhu Wang <[email protected]>
AuthorDate: Sun Sep 20 19:22:00 2026 +0800

    hotfix: Fix compilation error due to usages of java 9 List.of
---
 .../src/test/java/org/apache/zookeeper/common/IOUtilsTest.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/zookeeper-server/src/test/java/org/apache/zookeeper/common/IOUtilsTest.java 
b/zookeeper-server/src/test/java/org/apache/zookeeper/common/IOUtilsTest.java
index 0ac77da640..b1e43d15bb 100644
--- 
a/zookeeper-server/src/test/java/org/apache/zookeeper/common/IOUtilsTest.java
+++ 
b/zookeeper-server/src/test/java/org/apache/zookeeper/common/IOUtilsTest.java
@@ -130,6 +130,6 @@ public void 
testCloseAllCollectionPreservesFirstFailureAndSuppressesLaterFailure
 
         assertSame(first, failure);
         assertArrayEquals(new Throwable[]{second}, failure.getSuppressed());
-        assertEquals(List.of(1, 2, 3), closed);
+        assertEquals(Arrays.asList(1, 2, 3), closed);
     }
 }

Reply via email to