File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
main/java/com/thealgorithms/ciphers
test/java/com/thealgorithms/ciphers Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ private ElGamalEncryption() {
2626 * @param message the plaintext message to encrypt
2727 * @param bitLength the bit length for prime generation
2828 */
29- @ SuppressWarnings ({ "PMD.SystemPrintln" , "PMD.DataflowAnomalyAnalysis" })
29+ @ SuppressWarnings ({"PMD.SystemPrintln" , "PMD.DataflowAnomalyAnalysis" })
3030 public static void runElGamal (final String message , final int bitLength ) {
3131 final BigInteger p = BigInteger .probablePrime (bitLength , RANDOM );
3232 final BigInteger g = new BigInteger ("2" );
Original file line number Diff line number Diff line change 11package com .thealgorithms .ciphers ;
22
3- import org .junit .jupiter .api .Test ;
3+ import static org .junit .jupiter .api .Assertions .assertTrue ;
4+
45import java .lang .reflect .Constructor ;
56import java .lang .reflect .Modifier ;
6- import static org .junit .jupiter .api .Assertions . assertTrue ;
7+ import org .junit .jupiter .api .Test ;
78
89/**
910 * Unit tests for {@link ElGamalEncryption}.
@@ -22,7 +23,6 @@ void testEncryptionDecryption() {
2223 @ Test
2324 void testUtilityConstructor () throws NoSuchMethodException {
2425 Constructor <ElGamalEncryption > constructor = ElGamalEncryption .class .getDeclaredConstructor ();
25- assertTrue (Modifier .isPrivate (constructor .getModifiers ()),
26- "Utility class constructor should be private" );
26+ assertTrue (Modifier .isPrivate (constructor .getModifiers ()), "Utility class constructor should be private" );
2727 }
2828}
You can’t perform that action at this time.
0 commit comments