Skip to content

Commit e44c110

Browse files
committed
style: include SLS_SUSPICIOUS_LOOP_SEARCH
1 parent e123ca1 commit e44c110

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

spotbugs-exclude.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,6 @@
195195
<Match>
196196
<Bug pattern="DRE_DECLARED_RUNTIME_EXCEPTION" />
197197
</Match>
198-
<Match>
199-
<Bug pattern="SLS_SUSPICIOUS_LOOP_SEARCH" />
200-
</Match>
201198
<Match>
202199
<Bug pattern="BAS_BLOATED_ASSIGNMENT_SCOPE" />
203200
</Match>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ static String decryptCipher(String cipher) {
6868
// then i will be the multiplicative inverse of a
6969
if (flag == 1) {
7070
aInv = i;
71+
break;
7172
}
7273
}
7374
for (int i = 0; i < cipher.length(); i++) {

0 commit comments

Comments
 (0)