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
--- 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);
}
/**