Skip to content

Commit 708f705

Browse files
committed
style: include NAB_NEEDLESS_BOXING_PARSE
1 parent 70c1d97 commit 708f705

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
@@ -225,9 +225,6 @@
225225
<Match>
226226
<Bug pattern="ENMI_EQUALS_ON_ENUM" />
227227
</Match>
228-
<Match>
229-
<Bug pattern="NAB_NEEDLESS_BOXING_PARSE" />
230-
</Match>
231228
<Match>
232229
<Bug pattern="IMC_IMMATURE_CLASS_VAR_NAME" />
233230
</Match>

src/main/java/com/thealgorithms/maths/HarshadNumber.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static boolean isHarshad(long n) {
3434
* {@code false}
3535
*/
3636
public static boolean isHarshad(String s) {
37-
long n = Long.valueOf(s);
37+
final Long n = Long.valueOf(s);
3838
if (n <= 0) return false;
3939

4040
int sumOfDigits = 0;

0 commit comments

Comments
 (0)