mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8215443: The use of TransportContext.fatal() leads to bad coding style
Reviewed-by: ascarpino
This commit is contained in:
parent
5a6385b363
commit
84105b36fd
48 changed files with 454 additions and 585 deletions
|
@ -68,9 +68,8 @@ final class ServerKeyExchange {
|
|||
}
|
||||
|
||||
// not producer defined.
|
||||
shc.conContext.fatal(Alert.HANDSHAKE_FAILURE,
|
||||
throw shc.conContext.fatal(Alert.HANDSHAKE_FAILURE,
|
||||
"No ServerKeyExchange handshake message can be produced.");
|
||||
return null; // make the compiler happe
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -107,7 +106,7 @@ final class ServerKeyExchange {
|
|||
}
|
||||
|
||||
// no consumer defined.
|
||||
chc.conContext.fatal(Alert.UNEXPECTED_MESSAGE,
|
||||
throw chc.conContext.fatal(Alert.UNEXPECTED_MESSAGE,
|
||||
"Unexpected ServerKeyExchange handshake message.");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue