提交 3b853d33 编写于 作者: M mchung

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
上级 9a262cd5
......@@ -34,7 +34,6 @@ import java.security.AllPermission;
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 @@ public final class System {
}
security = s;
InetAddressCachePolicy.setIfNotSet(InetAddressCachePolicy.FOREVER);
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册