PMD Results

The following document contains the results of PMD 7.14.0.

Violations By Priority

Priority 3

org/forgerock/json/schema/validator/helpers/FormatHelper.java

Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'format'. 40

org/forgerock/json/schema/validator/helpers/MaximumHelper.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 8486

org/forgerock/json/schema/validator/helpers/MinimumHelper.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 8587

org/forgerock/json/schema/validator/validators/BooleanTypeValidator.java

Rule Violation Line
UnnecessaryReturn Unnecessary return statement 58

org/forgerock/json/schema/validator/validators/IntegerTypeValidator.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 116118

org/forgerock/json/schema/validator/validators/NumberTypeValidator.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 117119

org/forgerock/json/schema/validator/validators/ObjectTypeValidator.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 173176
EmptyControlStatement Empty if statement 195203
CollapsibleIfStatements This if statement could be combined with its parent 229240

org/forgerock/json/schema/validator/validators/SimpleValidator.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'validate': the method is declared in an interface type 41

org/forgerock/json/schema/validator/validators/StringTypeValidator.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 110112
CollapsibleIfStatements This if statement could be combined with its parent 133135

org/forgerock/json/schema/validator/validators/UnionTypeValidator.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 8385

Priority 4

org/forgerock/json/schema/validator/validators/ArrayTypeValidator.java

Rule Violation Line
UselessParentheses Useless parentheses. 160
UselessParentheses Useless parentheses. 163

org/forgerock/json/schema/validator/validators/ObjectTypeValidator.java

Rule Violation Line
UselessParentheses Useless parentheses. 153

Files

org/forgerock/json/schema/validator/helpers/FormatHelper.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'format'. 3 40

org/forgerock/json/schema/validator/helpers/MaximumHelper.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 8486

org/forgerock/json/schema/validator/helpers/MinimumHelper.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 8587

org/forgerock/json/schema/validator/validators/ArrayTypeValidator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 160
UselessParentheses Useless parentheses. 4 163

org/forgerock/json/schema/validator/validators/BooleanTypeValidator.java

Rule Violation Priority Line
UnnecessaryReturn Unnecessary return statement 3 58

org/forgerock/json/schema/validator/validators/IntegerTypeValidator.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 116118

org/forgerock/json/schema/validator/validators/NumberTypeValidator.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 117119

org/forgerock/json/schema/validator/validators/ObjectTypeValidator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 153
EmptyCatchBlock Avoid empty catch blocks 3 173176
EmptyControlStatement Empty if statement 3 195203
CollapsibleIfStatements This if statement could be combined with its parent 3 229240

org/forgerock/json/schema/validator/validators/SimpleValidator.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'validate': the method is declared in an interface type 3 41

org/forgerock/json/schema/validator/validators/StringTypeValidator.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 110112
CollapsibleIfStatements This if statement could be combined with its parent 3 133135

org/forgerock/json/schema/validator/validators/UnionTypeValidator.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 8385