8003951: Removes unused variables in sun.security.ssl
Reviewed-by: xuelei
This commit is contained in:
parent
7363eaae0e
commit
9eb345a1e4
@ -394,8 +394,6 @@ class ServerHello extends HandshakeMessage
|
||||
s.print("RandomCookie: ");
|
||||
svr_random.print(s);
|
||||
|
||||
int i;
|
||||
|
||||
s.print("Session ID: ");
|
||||
s.println(sessionId);
|
||||
|
||||
|
@ -54,8 +54,6 @@ import static sun.security.ssl.SunJSSE.cryptoProvider;
|
||||
*/
|
||||
final class JsseJce {
|
||||
|
||||
private final static Debug debug = Debug.getInstance("ssl");
|
||||
|
||||
private final static ProviderList fipsProviderList;
|
||||
|
||||
// Flag indicating whether EC crypto is available.
|
||||
|
@ -82,9 +82,6 @@ class SSLServerSocketImpl extends SSLServerSocket
|
||||
/* which protocol to use by default */
|
||||
private ProtocolList enabledProtocols = null;
|
||||
|
||||
/* could enabledCipherSuites ever complete handshaking? */
|
||||
private boolean checkedEnabled = false;
|
||||
|
||||
// the endpoint identification protocol to use by default
|
||||
private String identificationProtocol = null;
|
||||
|
||||
@ -195,7 +192,6 @@ class SSLServerSocketImpl extends SSLServerSocket
|
||||
@Override
|
||||
synchronized public void setEnabledCipherSuites(String[] suites) {
|
||||
enabledCipherSuites = new CipherSuiteList(suites);
|
||||
checkedEnabled = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -44,8 +44,6 @@ final class SSLSessionContextImpl implements SSLSessionContext {
|
||||
private int cacheLimit; // the max cache size
|
||||
private int timeout; // timeout in seconds
|
||||
|
||||
private static final Debug debug = Debug.getInstance("ssl");
|
||||
|
||||
// package private
|
||||
SSLSessionContextImpl() {
|
||||
cacheLimit = getDefaultCacheLimit(); // default cache size
|
||||
|
@ -43,7 +43,6 @@ import javax.net.ssl.SSLSocketFactory;
|
||||
*/
|
||||
final public class SSLSocketFactoryImpl extends SSLSocketFactory {
|
||||
|
||||
private static SSLContextImpl defaultContext;
|
||||
private SSLContextImpl context;
|
||||
|
||||
/**
|
||||
|
@ -346,7 +346,6 @@ final class X509TrustManagerImpl extends X509ExtendedTrustManager
|
||||
} catch (IllegalArgumentException iae) {
|
||||
// unlikely to happen, just in case ...
|
||||
if ((debug != null) && Debug.isOn("trustmanager")) {
|
||||
byte[] encoded = hostname.getEncoded();
|
||||
System.out.println("Illegal server name: " + sniName);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user