Fix the Eclipse warnings - no functional change
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 19 Nov 2009 14:05:56 +0000 (14:05 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 19 Nov 2009 14:05:56 +0000 (14:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@882151 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java

index cd6401a..c4265cf 100644 (file)
@@ -116,6 +116,7 @@ public class JSSESocketFactory
 
 
     public JSSESocketFactory () {
+        // NOOP
     }
 
     @Override
@@ -207,7 +208,7 @@ public class JSSESocketFactory
     protected String[] getEnabledCiphers(String requestedCiphers,
                                          String[] supportedCiphers) {
 
-        String[] enabledCiphers = null;
+        String[] result = null;
 
         if (requestedCiphers != null) {
             Vector<String> vec = null;
@@ -261,14 +262,14 @@ public class JSSESocketFactory
             }           
 
             if (vec != null) {
-                enabledCiphers = new String[vec.size()];
-                vec.copyInto(enabledCiphers);
+                result = new String[vec.size()];
+                vec.copyInto(result);
             }
         } else {
-            enabledCiphers = sslProxy.getDefaultCipherSuites();
+            result = sslProxy.getDefaultCipherSuites();
         }
 
-        return enabledCiphers;
+        return result;
     }
      
     /*
@@ -526,11 +527,12 @@ public class JSSESocketFactory
 
         kms = kmf.getKeyManagers();
         if (keyAlias != null) {
+            String alias = keyAlias;
             if (JSSESocketFactory.defaultKeystoreType.equals(keystoreType)) {
-                keyAlias = keyAlias.toLowerCase();
+                alias = alias.toLowerCase();
             }
             for(int i=0; i<kms.length; i++) {
-                kms[i] = new JSSEKeyManager((X509KeyManager)kms[i], keyAlias);
+                kms[i] = new JSSEKeyManager((X509KeyManager)kms[i], alias);
             }
         }
 
@@ -636,6 +638,7 @@ public class JSSESocketFactory
                 try{
                     is.close();
                 } catch(Exception ex) {
+                    // Ignore
                 }
             }
         }