From 70c1d97ab1ec41e3412f6b3c45fd1cb4e1878142 Mon Sep 17 00:00:00 2001 From: Piotr Idzik <65706193+vil02@users.noreply.github.com> Date: Mon, 27 May 2024 23:07:20 +0200 Subject: [PATCH] style: include `SPP_TOSTRING_ON_STRING` (#5183) --- spotbugs-exclude.xml | 3 --- src/main/java/com/thealgorithms/ciphers/DES.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/spotbugs-exclude.xml b/spotbugs-exclude.xml index ffccae63..32a12926 100644 --- a/spotbugs-exclude.xml +++ b/spotbugs-exclude.xml @@ -261,9 +261,6 @@ - - - diff --git a/src/main/java/com/thealgorithms/ciphers/DES.java b/src/main/java/com/thealgorithms/ciphers/DES.java index 5d27ca67..4f92c18e 100644 --- a/src/main/java/com/thealgorithms/ciphers/DES.java +++ b/src/main/java/com/thealgorithms/ciphers/DES.java @@ -238,7 +238,7 @@ public class DES { } for (i = 0; i < l; i += 64) { String block = message.substring(i, i + 64); - String result = decryptBlock(block.toString(), subKeys); + String result = decryptBlock(block, subKeys); byte[] res = new byte[8]; for (j = 0; j < 64; j += 8) { res[j / 8] = (byte) Integer.parseInt(result.substring(j, j + 8), 2);