Code cleanup JDK-8171279-XDH-TLS-branch-2
authorapetcher
Wed, 29 Aug 2018 10:49:56 -0400
branchJDK-8171279-XDH-TLS-branch-2
changeset 56876 ea6498b870e9
parent 56871 bda6e40cd2f4
child 56877 b37a3b5b5a29
Code cleanup
src/java.base/share/classes/sun/security/ssl/DHKeyExchange.java
--- a/src/java.base/share/classes/sun/security/ssl/DHKeyExchange.java	Tue Aug 28 14:46:44 2018 -0400
+++ b/src/java.base/share/classes/sun/security/ssl/DHKeyExchange.java	Wed Aug 29 10:49:56 2018 -0400
@@ -414,15 +414,15 @@
                     continue;
                 }
 
-                DHEPossession dhep = (DHEPossession) poss;
+                DHEPossession dhep = (DHEPossession)poss;
                 for (SSLCredentials cred : context.handshakeCredentials) {
                     if (!(cred instanceof DHECredentials)) {
                         continue;
                     }
-                    DHECredentials dhec = (DHECredentials) cred;
+                    DHECredentials dhec = (DHECredentials)cred;
                     if (dhep.namedGroup != null && dhec.namedGroup != null) {
                         if (dhep.namedGroup.equals(dhec.namedGroup)) {
-                            dheCredentials = (DHECredentials) cred;
+                            dheCredentials = (DHECredentials)cred;
                             break;
                         }
                     } else {
@@ -430,14 +430,14 @@
                         DHParameterSpec cps = dhec.popPublicKey.getParams();
                         if (pps.getP().equals(cps.getP()) &&
                         pps.getG().equals(cps.getG())) {
-                            dheCredentials = (DHECredentials) cred;
+                            dheCredentials = (DHECredentials)cred;
                             break;
                         }
                     }
                 }
 
                 if (dheCredentials != null) {
-                    dhePossession = (DHEPossession) poss;
+                    dhePossession = (DHEPossession)poss;
                     break;
                 }
             }