Skip to content

Commit 70c1d97

Browse files
authored
style: include SPP_TOSTRING_ON_STRING (#5183)
1 parent 295e743 commit 70c1d97

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

spotbugs-exclude.xml

-3
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,6 @@
261261
<Match>
262262
<Bug pattern="SLS_SUSPICIOUS_LOOP_SEARCH" />
263263
</Match>
264-
<Match>
265-
<Bug pattern="SPP_TOSTRING_ON_STRING" />
266-
</Match>
267264
<!-- find-sec-bugs -->
268265
<Match>
269266
<Bug pattern="PREDICTABLE_RANDOM" />

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public String decrypt(String message) {
238238
}
239239
for (i = 0; i < l; i += 64) {
240240
String block = message.substring(i, i + 64);
241-
String result = decryptBlock(block.toString(), subKeys);
241+
String result = decryptBlock(block, subKeys);
242242
byte[] res = new byte[8];
243243
for (j = 0; j < 64; j += 8) {
244244
res[j / 8] = (byte) Integer.parseInt(result.substring(j, j + 8), 2);

0 commit comments

Comments
 (0)