style: include NAB_NEEDLESS_BOXING_PARSE
(#5184)
This commit is contained in:
parent
70c1d97ab1
commit
92887a10c2
@ -225,9 +225,6 @@
|
||||
<Match>
|
||||
<Bug pattern="ENMI_EQUALS_ON_ENUM" />
|
||||
</Match>
|
||||
<Match>
|
||||
<Bug pattern="NAB_NEEDLESS_BOXING_PARSE" />
|
||||
</Match>
|
||||
<Match>
|
||||
<Bug pattern="IMC_IMMATURE_CLASS_VAR_NAME" />
|
||||
</Match>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user