This is an automated email from the ASF dual-hosted git repository.
cshannon pushed a commit to branch activemq-5.16.x
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/activemq-5.16.x by this push:
new 99998f3bc AMQ-9370 - Fix compatibility in test with java 8
99998f3bc is described below
commit 99998f3bce1f141676124b0e912caae0b5a3a94f
Author: Christopher L. Shannon (cshannon) <[email protected]>
AuthorDate: Tue Oct 24 08:30:02 2023 -0400
AMQ-9370 - Fix compatibility in test with java 8
---
.../test/java/org/apache/activemq/openwire/OpenWireValidationTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/activemq-client/src/test/java/org/apache/activemq/openwire/OpenWireValidationTest.java
b/activemq-client/src/test/java/org/apache/activemq/openwire/OpenWireValidationTest.java
index a7a6a4f7c..0d5b68bc2 100644
---
a/activemq-client/src/test/java/org/apache/activemq/openwire/OpenWireValidationTest.java
+++
b/activemq-client/src/test/java/org/apache/activemq/openwire/OpenWireValidationTest.java
@@ -22,6 +22,7 @@ import java.io.DataOutput;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import org.apache.activemq.command.CommandTypes;
@@ -43,7 +44,7 @@ public class OpenWireValidationTest {
@Parameters(name = "version={0}")
public static Collection<Object[]> data() {
- List<Integer> versions = List.of(1, 9, 10, 11, 12);
+ List<Integer> versions = Arrays.asList(1, 9, 10, 11, 12);
List<Object[]> versionObjs = new ArrayList<>();
for (int i : versions) {
versionObjs.add(new Object[]{i});