8259385: Cleanup unused assignment

Reviewed-by: attila
This commit is contained in:
Xue-Lei Andrew Fan 2021-01-11 00:33:22 +00:00
parent 9154f64349
commit b72de3c5fc
18 changed files with 70 additions and 79 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -156,7 +156,7 @@ final class X509TrustManagerImpl extends X509ExtendedTrustManager
"null or zero-length authentication type");
}
Validator v = null;
Validator v;
if (checkClientTrusted) {
v = clientValidator;
if (v == null) {
@ -197,7 +197,7 @@ final class X509TrustManagerImpl extends X509ExtendedTrustManager
boolean checkClientTrusted) throws CertificateException {
Validator v = checkTrustedInit(chain, authType, checkClientTrusted);
X509Certificate[] trustedChain = null;
X509Certificate[] trustedChain;
if ((socket != null) && socket.isConnected() &&
(socket instanceof SSLSocket)) {
@ -254,7 +254,7 @@ final class X509TrustManagerImpl extends X509ExtendedTrustManager
boolean checkClientTrusted) throws CertificateException {
Validator v = checkTrustedInit(chain, authType, checkClientTrusted);
X509Certificate[] trustedChain = null;
X509Certificate[] trustedChain;
if (engine != null) {
SSLSession session = engine.getHandshakeSession();
if (session == null) {