We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SPP_TOSTRING_ON_STRING
1 parent 295e743 commit 70c1d97Copy full SHA for 70c1d97
spotbugs-exclude.xml
@@ -261,9 +261,6 @@
261
<Match>
262
<Bug pattern="SLS_SUSPICIOUS_LOOP_SEARCH" />
263
</Match>
264
- <Match>
265
- <Bug pattern="SPP_TOSTRING_ON_STRING" />
266
- </Match>
267
<!-- find-sec-bugs -->
268
269
<Bug pattern="PREDICTABLE_RANDOM" />
src/main/java/com/thealgorithms/ciphers/DES.java
@@ -238,7 +238,7 @@ public String decrypt(String message) {
238
}
239
for (i = 0; i < l; i += 64) {
240
String block = message.substring(i, i + 64);
241
- String result = decryptBlock(block.toString(), subKeys);
+ String result = decryptBlock(block, subKeys);
242
byte[] res = new byte[8];
243
for (j = 0; j < 64; j += 8) {
244
res[j / 8] = (byte) Integer.parseInt(result.substring(j, j + 8), 2);
0 commit comments