This is an automated email from the ASF dual-hosted git repository. jbonofre pushed a commit to branch activemq-5.15.x in repository https://gitbox.apache.org/repos/asf/activemq.git
commit c84b295db83863eff626ecfb67d7e48593b687c5 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});
