Skip to content

Commit 8ff6fd0

Browse files
committed
Fix Checkstyle
1 parent f42858e commit 8ff6fd0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/thealgorithms/ciphers/BaconianCipher.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class BaconianCipher {
1818

1919
static {
2020
// Initialize the Baconian cipher mappings
21-
String[] baconianAlphabet = { "AAAAA", "AAAAB", "AAABA", "AAABB", "AABAA", "AABAB", "AABBA", "AABBB", "ABAAA", "ABAAB", "ABABA", "ABABB", "ABBAA", "ABBAB", "ABBBA", "ABBBB", "BAAAA", "BAAAB", "BAABA", "BAABB", "BABAA", "BABAB", "BABBA", "BABBB", "BBAAA", "BBAAB"};
21+
String[] baconianAlphabet = {"AAAAA", "AAAAB", "AAABA", "AAABB", "AABAA", "AABAB", "AABBA", "AABBB", "ABAAA", "ABAAB", "ABABA", "ABABB", "ABBAA", "ABBAB", "ABBBA", "ABBBB", "BAAAA", "BAAAB", "BAABA", "BAABB", "BABAA", "BABAB", "BABBA", "BABBB", "BBAAA", "BBAAB"};
2222
char letter = 'A';
2323
for (String code : baconianAlphabet) {
2424
BACONIAN_MAP.put(letter, code);
@@ -33,7 +33,7 @@ public class BaconianCipher {
3333

3434
/**
3535
* Encrypts the given plaintext using the Baconian cipher.
36-
*
36+
*
3737
* @param plaintext The plaintext message to encrypt.
3838
* @return The ciphertext as a binary (A/B) sequence.
3939
*/
@@ -50,7 +50,7 @@ public String encrypt(String plaintext) {
5050

5151
/**
5252
* Decrypts the given ciphertext encoded in binary (A/B) format using the Baconian cipher.
53-
*
53+
*
5454
* @param ciphertext The ciphertext to decrypt.
5555
* @return The decrypted plaintext message.
5656
*/

0 commit comments

Comments
 (0)