changeset 4301:ccb2fcfb6d6b

7013969: NetworkInterface.toString can reveal bindings Reviewed-by: alanb, michaelm, hawtin
author chegar
date Fri, 18 Feb 2011 13:31:57 +0000
parents df445f522425
children 026adaac71f1
files src/share/classes/java/net/NetworkInterface.java
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/net/NetworkInterface.java	Thu Feb 17 12:21:49 2011 +0300
+++ b/src/share/classes/java/net/NetworkInterface.java	Fri Feb 18 13:31:57 2011 +0000
@@ -547,13 +547,8 @@
         if (displayName != null) {
             result += " (" + displayName + ")";
         }
-        result += " index: "+index+" addresses:\n";
-        for (Enumeration e = getInetAddresses(); e.hasMoreElements(); ) {
-            InetAddress addr = (InetAddress)e.nextElement();
-            result += addr+";\n";
-        }
         return result;
     }
+
     private static native void init();
-
 }