8257788: Class fields could be local in the SunJSSE provider

Reviewed-by: shade
This commit is contained in:
Xue-Lei Andrew Fan 2020-12-07 16:35:01 +00:00
parent d29c78da19
commit dcf63f8578
4 changed files with 4 additions and 15 deletions

View file

@ -203,14 +203,10 @@ enum SSLTrafficKeyDerivation implements SSLKeyDerivationGenerator {
@SuppressWarnings("deprecation")
static final class LegacyTrafficKeyDerivation implements SSLKeyDerivation {
private final HandshakeContext context;
private final SecretKey masterSecret;
private final TlsKeyMaterialSpec keyMaterialSpec;
LegacyTrafficKeyDerivation(
HandshakeContext context, SecretKey masterSecret) {
this.context = context;
this.masterSecret = masterSecret;
CipherSuite cipherSuite = context.negotiatedCipherSuite;
ProtocolVersion protocolVersion = context.negotiatedProtocol;