diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-04-12 08:30:35 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2024-04-12 08:39:04 +0200 |
commit | 76a89b62274060452022ddf24a7685ee2f380cb4 (patch) | |
tree | ef924603de22efd026f519ab31fd8f5a6ff60f2f /messagebus_test | |
parent | 7e7ebf7b527be1f163d497a41898e2252d878fe7 (diff) |
Replace all usages of Arrays.asList with List.of where possible.
Diffstat (limited to 'messagebus_test')
-rw-r--r-- | messagebus_test/src/tests/error/JavaClient.java | 3 | ||||
-rw-r--r-- | messagebus_test/src/tests/error/JavaServer.java | 3 | ||||
-rw-r--r-- | messagebus_test/src/tests/speed/JavaServer.java | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/messagebus_test/src/tests/error/JavaClient.java b/messagebus_test/src/tests/error/JavaClient.java index 764cf4c1d86..487c839013c 100644 --- a/messagebus_test/src/tests/error/JavaClient.java +++ b/messagebus_test/src/tests/error/JavaClient.java @@ -6,7 +6,6 @@ import com.yahoo.messagebus.routing.*; import com.yahoo.messagebus.network.*; import com.yahoo.messagebus.network.rpc.*; import com.yahoo.messagebus.network.rpc.test.*; -import java.util.Arrays; import java.util.logging.*; public class JavaClient { @@ -16,7 +15,7 @@ public class JavaClient { public static void main(String[] args) { try { RPCMessageBus mb = new RPCMessageBus( - Arrays.asList((Protocol)new SimpleProtocol()), + List.of((Protocol)new SimpleProtocol()), new RPCNetworkParams() .setIdentity(new Identity("server/java")) .setSlobrokConfigId("file:slobrok.cfg"), diff --git a/messagebus_test/src/tests/error/JavaServer.java b/messagebus_test/src/tests/error/JavaServer.java index 7cc366fd7b4..97591b65823 100644 --- a/messagebus_test/src/tests/error/JavaServer.java +++ b/messagebus_test/src/tests/error/JavaServer.java @@ -5,7 +5,6 @@ import com.yahoo.config.*; import com.yahoo.messagebus.routing.*; import com.yahoo.messagebus.network.*; import com.yahoo.messagebus.network.rpc.*; -import java.util.Arrays; import java.util.logging.*; public class JavaServer implements MessageHandler { @@ -29,7 +28,7 @@ public class JavaServer implements MessageHandler { public static void main(String[] args) { try { RPCMessageBus mb = new RPCMessageBus( - Arrays.asList((Protocol)new SimpleProtocol()), + List.of((Protocol)new SimpleProtocol()), new RPCNetworkParams() .setIdentity(new Identity("server/java")) .setSlobrokConfigId("file:slobrok.cfg"), diff --git a/messagebus_test/src/tests/speed/JavaServer.java b/messagebus_test/src/tests/speed/JavaServer.java index 256f6f00223..3f7ed6ba5fd 100644 --- a/messagebus_test/src/tests/speed/JavaServer.java +++ b/messagebus_test/src/tests/speed/JavaServer.java @@ -5,7 +5,6 @@ import com.yahoo.config.*; import com.yahoo.messagebus.routing.*; import com.yahoo.messagebus.network.*; import com.yahoo.messagebus.network.rpc.*; -import java.util.Arrays; import java.util.logging.*; public class JavaServer implements MessageHandler { @@ -36,7 +35,7 @@ public class JavaServer implements MessageHandler { public static void main(String[] args) { try { RPCMessageBus mb = new RPCMessageBus( - Arrays.asList((Protocol)new SimpleProtocol()), + List.of((Protocol)new SimpleProtocol()), new RPCNetworkParams() .setIdentity(new Identity("server/java")) .setSlobrokConfigId("file:slobrok.cfg"), |