# HG changeset patch
# User chegar
# Date 1298025619 0
# Node ID 4c569f18b5a1f4eeb7e13fafba7375e39a5b9161
# Parent  05a59c28ae9fcb8f7c3362a4e1eeeaa1818edbdc
7013969: NetworkInterface.toString can reveal bindings
Reviewed-by: alanb, michaelm, hawtin

diff --git a/src/share/classes/java/net/NetworkInterface.java b/src/share/classes/java/net/NetworkInterface.java
--- openjdk/jdk/src/share/classes/java/net/NetworkInterface.java
+++ openjdk/jdk/src/share/classes/java/net/NetworkInterface.java
@@ -527,13 +527,8 @@ public final class NetworkInterface {
         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();
-
 }
