style: enable OperatorWrap in checkstyle (#5212)

This commit is contained in:
StarDxxx 2024-06-08 15:36:42 +08:00 committed by GitHub
parent 41efe7fbbc
commit be38886d43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -139,7 +139,7 @@
<module name="MethodParamPad"/>
<!-- TODO <module name="NoWhitespaceAfter"/> -->
<module name="NoWhitespaceBefore"/>
<!-- TODO <module name="OperatorWrap"/> -->
<module name="OperatorWrap"/>
<!-- TODO <module name="ParenPad"/> -->
<module name="TypecastParenPad"/>
<module name="WhitespaceAfter"/>

View File

@ -2756,8 +2756,8 @@ public final class AES {
in = input.nextLine();
BigInteger encryptionKey = new BigInteger(in, 16);
System.out.println(
"The encrypted message is: \n" +
encrypt(plaintext, encryptionKey).toString(16)
"The encrypted message is: \n"
+ encrypt(plaintext, encryptionKey).toString(16)
);
}
case 'D', 'd' -> {
@ -2772,8 +2772,8 @@ public final class AES {
in = input.nextLine();
BigInteger decryptionKey = new BigInteger(in, 16);
System.out.println(
"The deciphered message is:\n" +
decrypt(ciphertext, decryptionKey).toString(16)
"The deciphered message is:\n"
+ decrypt(ciphertext, decryptionKey).toString(16)
);
}
default -> System.out.println("** End **");