mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8259385: Cleanup unused assignment
Reviewed-by: attila
This commit is contained in:
parent
9154f64349
commit
b72de3c5fc
18 changed files with 70 additions and 79 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue