8003951: Removes unused variables in sun.security.ssl
authorxuelei
Sat, 24 Nov 2012 04:27:28 -0800
changeset 14665 8caa5add16ed
parent 14664 e71aa0962e70
child 14666 d8517fe0118e
8003951: Removes unused variables in sun.security.ssl Reviewed-by: xuelei Contributed-by: Florian Weimer <fweimer@redhat.com>
jdk/src/share/classes/sun/security/ssl/HandshakeMessage.java
jdk/src/share/classes/sun/security/ssl/JsseJce.java
jdk/src/share/classes/sun/security/ssl/SSLServerSocketImpl.java
jdk/src/share/classes/sun/security/ssl/SSLSessionContextImpl.java
jdk/src/share/classes/sun/security/ssl/SSLSocketFactoryImpl.java
jdk/src/share/classes/sun/security/ssl/X509TrustManagerImpl.java
--- a/jdk/src/share/classes/sun/security/ssl/HandshakeMessage.java	Sat Nov 24 04:09:19 2012 -0800
+++ b/jdk/src/share/classes/sun/security/ssl/HandshakeMessage.java	Sat Nov 24 04:27:28 2012 -0800
@@ -394,8 +394,6 @@
             s.print("RandomCookie:  ");
             svr_random.print(s);
 
-            int i;
-
             s.print("Session ID:  ");
             s.println(sessionId);
 
--- a/jdk/src/share/classes/sun/security/ssl/JsseJce.java	Sat Nov 24 04:09:19 2012 -0800
+++ b/jdk/src/share/classes/sun/security/ssl/JsseJce.java	Sat Nov 24 04:27:28 2012 -0800
@@ -54,8 +54,6 @@
  */
 final class JsseJce {
 
-    private final static Debug debug = Debug.getInstance("ssl");
-
     private final static ProviderList fipsProviderList;
 
     // Flag indicating whether EC crypto is available.
--- a/jdk/src/share/classes/sun/security/ssl/SSLServerSocketImpl.java	Sat Nov 24 04:09:19 2012 -0800
+++ b/jdk/src/share/classes/sun/security/ssl/SSLServerSocketImpl.java	Sat Nov 24 04:27:28 2012 -0800
@@ -82,9 +82,6 @@
     /* 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 @@
     @Override
     synchronized public void setEnabledCipherSuites(String[] suites) {
         enabledCipherSuites = new CipherSuiteList(suites);
-        checkedEnabled = false;
     }
 
     @Override
--- a/jdk/src/share/classes/sun/security/ssl/SSLSessionContextImpl.java	Sat Nov 24 04:09:19 2012 -0800
+++ b/jdk/src/share/classes/sun/security/ssl/SSLSessionContextImpl.java	Sat Nov 24 04:27:28 2012 -0800
@@ -44,8 +44,6 @@
     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
--- a/jdk/src/share/classes/sun/security/ssl/SSLSocketFactoryImpl.java	Sat Nov 24 04:09:19 2012 -0800
+++ b/jdk/src/share/classes/sun/security/ssl/SSLSocketFactoryImpl.java	Sat Nov 24 04:27:28 2012 -0800
@@ -43,7 +43,6 @@
  */
 final public class SSLSocketFactoryImpl extends SSLSocketFactory {
 
-    private static SSLContextImpl defaultContext;
     private SSLContextImpl context;
 
     /**
--- a/jdk/src/share/classes/sun/security/ssl/X509TrustManagerImpl.java	Sat Nov 24 04:09:19 2012 -0800
+++ b/jdk/src/share/classes/sun/security/ssl/X509TrustManagerImpl.java	Sat Nov 24 04:27:28 2012 -0800
@@ -346,7 +346,6 @@
                 } 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);
                     }
                 }