< prev index next >

src/java.base/share/classes/java/net/SocketPermission.java

Print this page

        

@@ -462,11 +462,11 @@
         } else {
             if (host.length() > 0) {
                 // see if we are being initialized with an IP address.
                 char ch = host.charAt(0);
                 if (ch == ':' || Character.digit(ch, 16) != -1) {
-                    byte ip[] = IPAddressUtil.textToNumericFormatV4(host);
+                    byte[] ip = IPAddressUtil.textToNumericFormatV4(host);
                     if (ip == null) {
                         ip = IPAddressUtil.textToNumericFormatV6(host);
                     }
                     if (ip != null) {
                         try {
< prev index next >