changeset 503:4c569f18b5a1

7013969: NetworkInterface.toString can reveal bindings Reviewed-by: alanb, michaelm, hawtin
author chegar
date Fri, 18 Feb 2011 10:40:19 +0000
parents 05a59c28ae9f
children 50636a6053f8
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	Wed Feb 09 11:52:24 2011 +0800
+++ b/src/share/classes/java/net/NetworkInterface.java	Fri Feb 18 10:40:19 2011 +0000
@@ -527,13 +527,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();
-
 }