diff --git a/spotbugs-exclude.xml b/spotbugs-exclude.xml index 32a12926..99a24bbf 100644 --- a/spotbugs-exclude.xml +++ b/spotbugs-exclude.xml @@ -225,9 +225,6 @@ - - - diff --git a/src/main/java/com/thealgorithms/maths/HarshadNumber.java b/src/main/java/com/thealgorithms/maths/HarshadNumber.java index e063c860..0b1ba128 100644 --- a/src/main/java/com/thealgorithms/maths/HarshadNumber.java +++ b/src/main/java/com/thealgorithms/maths/HarshadNumber.java @@ -34,7 +34,7 @@ public final class HarshadNumber { * {@code false} */ public static boolean isHarshad(String s) { - long n = Long.valueOf(s); + final Long n = Long.valueOf(s); if (n <= 0) return false; int sumOfDigits = 0;