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"/> <module name="MethodParamPad"/>
<!-- TODO <module name="NoWhitespaceAfter"/> --> <!-- TODO <module name="NoWhitespaceAfter"/> -->
<module name="NoWhitespaceBefore"/> <module name="NoWhitespaceBefore"/>
<!-- TODO <module name="OperatorWrap"/> --> <module name="OperatorWrap"/>
<!-- TODO <module name="ParenPad"/> --> <!-- TODO <module name="ParenPad"/> -->
<module name="TypecastParenPad"/> <module name="TypecastParenPad"/>
<module name="WhitespaceAfter"/> <module name="WhitespaceAfter"/>

View File

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