8226683: Remove review suggestion from fix to 8219804
authormichaelm
Mon, 24 Jun 2019 15:19:11 +0100
changeset 55475 6ca3526c4e25
parent 55474 73250862f818
child 55476 aee0d296c0ef
8226683: Remove review suggestion from fix to 8219804 Reviewed-by: chegar
test/jdk/java/net/MulticastSocket/Promiscuous.java
--- a/test/jdk/java/net/MulticastSocket/Promiscuous.java	Mon Jun 24 15:10:44 2019 +0100
+++ b/test/jdk/java/net/MulticastSocket/Promiscuous.java	Mon Jun 24 15:19:11 2019 +0100
@@ -93,12 +93,9 @@
     static void test(InetAddress group1, InetAddress group2)
         throws IOException
     {
-        InetSocketAddress ad1 = new InetSocketAddress(group1, 0);
-        try (MulticastSocket mc1 = new MulticastSocket(ad1);
-             MulticastSocket mc2 = new MulticastSocket(
-                 new InetSocketAddress(group2, mc1.getLocalPort()));
+        try (MulticastSocket mc1 = new MulticastSocket();
+             MulticastSocket mc2 = new MulticastSocket(mc1.getLocalPort());
              DatagramSocket ds = new DatagramSocket()) {
-
             final int port = mc1.getLocalPort();
             out.printf("Using port: %d\n", port);