PMD Results

The following document contains the results of PMD 4.2.2.

Files

org/springmodules/validation/bean/BeanValidator.java

Violation Line
These nested if statements could be combined 454 - 456

org/springmodules/validation/bean/context/web/ValidationContextFilter.java

Violation Line
Avoid empty catch blocks 59 - 61

org/springmodules/validation/bean/rule/AbstractValidationRule.java

Violation Line
Avoid unused imports such as 'org.springmodules.validation.bean.context.ValidationContextHolder' 22
Avoid unused imports such as 'org.springmodules.validation.bean.context.ValidationContext' 23

org/springmodules/validation/commons/validwhen/ValidWhenLexer.java

Violation Line
Avoid unused local variables such as 'theRetToken'. 57
Avoid unused local variables such as '_token'. 60
Avoid unused local variables such as '_saveIndex'. 200
Avoid unused local variables such as '_saveIndex'. 247
Avoid empty if statements 319 - 320
Avoid unused local variables such as '_saveIndex'. 366
Avoid unused local variables such as '_saveIndex'. 420
Avoid unused local variables such as '_saveIndex'. 487
Avoid unused local variables such as '_saveIndex'. 502
Avoid unused local variables such as '_saveIndex'. 517
Avoid unused local variables such as '_saveIndex'. 532
Avoid unused local variables such as '_saveIndex'. 547
Avoid unused local variables such as '_saveIndex'. 562
Avoid unused local variables such as '_saveIndex'. 686
Avoid unused local variables such as '_saveIndex'. 702
Avoid unused local variables such as '_saveIndex'. 718
Avoid unused local variables such as '_saveIndex'. 733
Avoid unused local variables such as '_saveIndex'. 748
Avoid unused local variables such as '_saveIndex'. 764

org/springmodules/validation/commons/validwhen/ValidWhenParser.java

Violation Line
These nested if statements could be combined 83 - 85
These nested if statements could be combined 88 - 90
Avoid empty catch blocks 147 - 148
An empty statement (semicolon) not part of a loop 149
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. 391
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. 406
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. 408

org/springmodules/validation/valang/javascript/taglib/ValangRulesExportInterceptor.java

Violation Line
Avoid unused local variables such as 'proxiedClass'. 125

org/springmodules/validation/valang/javascript/taglib/ValangValidateTag.java

Violation Line
Avoid unused imports such as 'java.util.Map' 22
Avoid unused imports such as 'org.springframework.web.servlet.mvc.BaseCommandController' 30
Avoid unused imports such as 'org.springmodules.validation.valang.ValangValidator' 32

org/springmodules/validation/valang/predicates/BasicValidationRule.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 21
Avoid unused imports such as 'java.util.Map' 22
Avoid unused imports such as 'org.springframework.beans.BeanWrapper' 25
Avoid unused imports such as 'org.springframework.beans.BeanWrapperImpl' 26
These nested if statements could be combined 172 - 189

org/springmodules/validation/valang/predicates/GenericTestPredicate.java

Violation Line
Avoid unused local variables such as 'rightValue'. 76