mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +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
|
@ -133,7 +133,7 @@ final class ECDHServerKeyExchange {
|
|||
} else {
|
||||
useExplicitSigAlgorithm =
|
||||
shc.negotiatedProtocol.useTLS12PlusSpec();
|
||||
Signature signer = null;
|
||||
Signature signer;
|
||||
if (useExplicitSigAlgorithm) {
|
||||
Map.Entry<SignatureScheme, Signature> schemeAndSigner =
|
||||
SignatureScheme.getSignerOfPreferableAlgorithm(
|
||||
|
@ -165,7 +165,7 @@ final class ECDHServerKeyExchange {
|
|||
}
|
||||
}
|
||||
|
||||
byte[] signature = null;
|
||||
byte[] signature;
|
||||
try {
|
||||
updateSignature(signer, shc.clientHelloRandom.randomBytes,
|
||||
shc.serverHelloRandom.randomBytes,
|
||||
|
@ -419,7 +419,7 @@ final class ECDHServerKeyExchange {
|
|||
|
||||
private static Signature getSignature(String keyAlgorithm,
|
||||
Key key) throws NoSuchAlgorithmException, InvalidKeyException {
|
||||
Signature signer = null;
|
||||
Signature signer;
|
||||
switch (keyAlgorithm) {
|
||||
case "EC":
|
||||
signer = Signature.getInstance(JsseJce.SIGNATURE_ECDSA);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue