6817246: Redundant call to set InetAddressCachePolicy to FOREVER if not set during initialization
authormchung
Wed, 18 Mar 2009 17:37:39 -0700
changeset 2288 b45a9855b390
parent 2287 81ef4b88c590
child 2289 99207c64bf80
child 2633 4ea5835ef663
6817246: Redundant call to set InetAddressCachePolicy to FOREVER if not set during initialization Summary: Remove InetAddressCachePolicy.setIfNotSet call from System.setSecurityManager0 Reviewed-by: alanb, jccollet
jdk/src/share/classes/java/lang/System.java
--- a/jdk/src/share/classes/java/lang/System.java	Wed Mar 18 18:55:10 2009 +0100
+++ b/jdk/src/share/classes/java/lang/System.java	Wed Mar 18 17:37:39 2009 -0700
@@ -34,7 +34,6 @@
 import java.nio.channels.Channel;
 import java.nio.channels.spi.SelectorProvider;
 import sun.nio.ch.Interruptible;
-import sun.net.InetAddressCachePolicy;
 import sun.reflect.Reflection;
 import sun.security.util.SecurityConstants;
 import sun.reflect.annotation.AnnotationType;
@@ -310,7 +309,6 @@
         }
 
         security = s;
-        InetAddressCachePolicy.setIfNotSet(InetAddressCachePolicy.FOREVER);
     }
 
     /**