8291509: Minor cleanup could be done in sun.security

Reviewed-by: weijun
This commit is contained in:
Mark Powers 2022-09-15 19:59:53 +00:00 committed by Weijun Wang
parent 6beeb8471c
commit 4cec141a90
298 changed files with 2650 additions and 3262 deletions

View file

@ -143,11 +143,12 @@ final class Finished {
@Override
public String toString() {
MessageFormat messageFormat = new MessageFormat(
"\"Finished\": '{'\n" +
" \"verify data\": '{'\n" +
"{0}\n" +
" '}'\n" +
"'}'",
"""
"Finished": '{'
"verify data": '{'
{0}
'}'
'}'""",
Locale.ENGLISH);
HexDumpEncoder hexEncoder = new HexDumpEncoder();
@ -214,7 +215,6 @@ final class Finished {
HandshakeHash handshakeHash = context.handshakeHash;
SecretKey masterSecretKey =
context.handshakeSession.getMasterSecret();
boolean useClientLabel =
(context.sslConfig.isClientMode && !isValidation) ||
(!context.sslConfig.isClientMode && isValidation);