mirror of
https://github.com/google/nomulus
synced 2026-09-17 21:44:30 +00:00
Enable new errorprone checks and fix violations (#3018)
This commit is contained in:
+2
-3
@@ -152,9 +152,8 @@ public class SslServerInitializer<C extends Channel> extends ChannelInitializer<
|
||||
PublicKey clientPublicKey = clientCertificate.getPublicKey();
|
||||
// Note that for non-RSA keys the length would be -1.
|
||||
int clientCertificateLength = -1;
|
||||
if (clientPublicKey instanceof RSAPublicKey) {
|
||||
clientCertificateLength =
|
||||
((RSAPublicKey) clientPublicKey).getModulus().bitLength();
|
||||
if (clientPublicKey instanceof RSAPublicKey rsaPublicKey) {
|
||||
clientCertificateLength = rsaPublicKey.getModulus().bitLength();
|
||||
}
|
||||
logger.atInfo().log(
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user