Klocwork Quality Standard Java checker reference

Checker name Description Default severity Enabled by default? Version
JAVA.ASSERT.ARG Never use assertions to validate method arguments 4 False 2024.4
JAVA.BIGDEC.FLOAT Do not construct BigDecimal objects from floating-point literals 4 False 2024.4
JAVA.COMPARE.NAN Do not attempt comparisons with NaN 4 False 2024.4
JAVA.CTOR.EXCEPT Be wary of letting constructors throw exceptions 4 False 2024.4
JAVA.DANGEROUS_CAST Dangerous cast used 4 False 2020.1
JAVA.DEBUG.ENTRY Production code must not contain debugging entry points 4 False 2024.4
JAVA.FINAL.STATIC.VAR Use of nonfinal static variable 4 False 2024.4
JAVA.HIDDEN.MEMBER.LOCAL Class data member is hidden by a local variable 4 False 2020.1
JAVA.HIDDEN.PARAM.LOCAL Class data member is hidden by a method parameter 4 False 2020.1
JAVA.INF.LOOP.EMPTY Do not use an empty infinite loop 4 False 2024.4
JAVA.LOOP.CTR.FLOAT Do not use floating-point variables as loop counters 4 False 2024.4
JAVA.MAGIC.CHAR Magic number used:Char 4 False 2020.1
JAVA.MAGIC.NUMBER Magic number used:Number 4 False 2020.1
JAVA.MAGIC.STRING Magic number used:String 4 False 2020.1
JAVA.NATIVE.PUBLIC Define wrappers around native methods 4 False 2024.4
JAVA.SERIALIZE.INNER Do not serialize instances of inner classes 4 False 2024.4
JAVA.STMT.DO.BLOCK Body for do statement should be a block 4 False 2020.1
JAVA.STMT.FOR.BLOCK Body for for statement should be a block 4 False 2020.1
JAVA.STMT.IFELSE.BLOCK Body for If/Else statement should be a block 4 False 2020.1
JAVA.STMT.WHILE.BLOCK Body for while statement should be a block 4 False 2020.1
JAVA.SWITCH.DEFAULT.POSITION default label not appear in the first or the last in switch statement 4 False 2020.1
JAVA.SWITCH.NOBREAK Switch case phrase should be ends with break 4 False 2020.1
JAVA.SWITCH.NODEFAULT No default label in switch statement 4 False 2020.1
JAVA.THREADGROUP Do not invoke ThreadGroup methods 4 False 2024.4
JAVA.UNINIT.LOCAL_VAR Uninitialized local variable 4 False 2020.1
JAVA.UNINIT.LOOP_COUNTER Uninitialized loop counter in for statement 4 False 2020.1
JAVA.WAIT.IN.LOOP Always invoke wait() and await() methods inside a loop 4 False 2024.4