PMD Results

The following document contains the results of PMD 5.5.1.

Files

com/helger/schematron/AbstractSchematronResource.java

Violation Line
Do not use if statements that are always true or always false 137
Avoid empty catch blocks 158–162

com/helger/schematron/CSchematron.java

Violation Line
Avoid unused private fields such as 's_aInstance'. 44

com/helger/schematron/CSchematronXML.java

Violation Line
Avoid unused private fields such as 's_aInstance'. 81

com/helger/schematron/SchematronDebug.java

Violation Line
Unnecessary final modifier in final class 56–59
Unnecessary final modifier in final class 61–64
Unnecessary final modifier in final class 72–75
Unnecessary final modifier in final class 77–81
Unnecessary final modifier in final class 89–92
Unnecessary final modifier in final class 94–98

com/helger/schematron/SchematronHelper.java

Violation Line
Avoid unused private fields such as 's_aInstance'. 70
These nested if statements could be combined 369–376

com/helger/schematron/SchematronResourceHelper.java

Violation Line
Avoid unused private fields such as 's_aInstance'. 54

com/helger/schematron/pure/SchematronResourcePure.java

Violation Line
Avoid empty catch blocks 321–324

com/helger/schematron/pure/binding/PSQueryBindingRegistry.java

Violation Line
Avoid unused private fields such as 's_aInstance'. 74

com/helger/schematron/pure/binding/xpath/CXPath.java

Violation Line
Avoid unused private fields such as 's_aInstance'. 35

com/helger/schematron/pure/binding/xpath/PSXPathVariables.java

Violation Line
These nested if statements could be combined 128–129

com/helger/schematron/pure/bound/IPSBoundSchema.java

Violation Line
Avoid unused imports such as 'com.helger.schematron.CSchematron' 28

com/helger/schematron/pure/bound/xpath/PSXPathBoundSchema.java

Violation Line
Do not use if statements that are always true or always false 424
These nested if statements could be combined 575–583
These nested if statements could be combined 592–600
Do not use if statements that are always true or always false 615

com/helger/schematron/pure/model/PSActive.java

Violation Line
These nested if statements could be combined 64–65
These nested if statements could be combined 87–88

com/helger/schematron/pure/model/PSAssertReport.java

Violation Line
These nested if statements could be combined 92–93
These nested if statements could be combined 117–118

com/helger/schematron/pure/model/PSDiagnostic.java

Violation Line
These nested if statements could be combined 76–77

com/helger/schematron/pure/model/PSP.java

Violation Line
These nested if statements could be combined 67–68

com/helger/schematron/pure/model/PSTitle.java

Violation Line
These nested if statements could be combined 55–56

com/helger/schematron/pure/preprocess/PSPreprocessor.java

Violation Line
Ternary operators that can be simplified with || or && 258
These nested if statements could be combined 501–502

com/helger/schematron/saxon/SchematronTransformerFactory.java

Violation Line
Do not use if statements that are always true or always false 100
Do not use if statements that are always true or always false 102
Do not use if statements that are always true or always false 104

com/helger/schematron/svrl/CSVRL.java

Violation Line
Avoid unused private fields such as 's_aInstance'. 63

com/helger/schematron/svrl/SVRLHelper.java

Violation Line
Avoid unused private fields such as 's_aInstance'. 47

com/helger/schematron/svrl/SVRLLocationBeautifierRegistry.java

Violation Line
Avoid unused private fields such as 's_aInstance'. 42

com/helger/schematron/svrl/SVRLReader.java

Violation Line
Avoid unused private fields such as 's_aInstance'. 41

com/helger/schematron/svrl/SVRLWriter.java

Violation Line
Avoid unused private fields such as 's_aInstance'. 41

com/helger/schematron/xslt/AbstractSchematronXSLTBasedResource.java

Violation Line
Do not use if statements that are always true or always false 248
These nested if statements could be combined 249–270
Do not use if statements that are always true or always false 255
Do not use if statements that are always true or always false 257
Do not use if statements that are always true or always false 264
Do not use if statements that are always true or always false 266
Do not use if statements that are always true or always false 268