PMD Results

The following document contains the results of PMD.

Summary

FilesErrors
833

Files

FilesViolations
org/apache/commons/jelly/tags/jaxme/GeneratorTag.java 4
org/apache/commons/jelly/tags/jaxme/MarshallTag.java 4
org/apache/commons/jelly/tags/jaxme/UnmarshallTag.java 7
org/apache/commons/jelly/tags/jaxme/ExecutionTestCase.java 1
org/apache/ws/jaxme/examples/misc/address/ObjectFactory.java 1
org/apache/ws/jaxme/examples/misc/address/impl/AddressTypeHandler.java 14
org/apache/ws/jaxme/examples/misc/address/impl/AddressTypeImpl.java 1
org/apache/ws/jaxme/examples/misc/address/impl/AddressTypeSerializer.java 1

org/apache/commons/jelly/tags/jaxme/GeneratorTag.java

ViolationLine
Avoid unused imports such as 'java.io.IOException' 19
Avoid unused imports such as 'org.apache.ws.jaxme.generator.SchemaReader' 27
Avoid unused imports such as 'org.apache.ws.jaxme.js.JavaSourceFactory' 31
Avoid unused local variables such as 'schemaSG' 103

org/apache/commons/jelly/tags/jaxme/MarshallTag.java

ViolationLine
Avoid unused imports such as 'java.io.File' 18
Avoid unused imports such as 'java.io.IOException' 19
Avoid unused imports such as 'java.io.StringWriter' 20
Avoid unused imports such as 'org.xml.sax.SAXException' 31

org/apache/commons/jelly/tags/jaxme/UnmarshallTag.java

ViolationLine
Avoid unused imports such as 'java.io.File' 18
Avoid unused imports such as 'java.io.IOException' 19
Avoid unused imports such as 'org.apache.ws.jaxme.generator.Generator' 31
Avoid unused imports such as 'org.apache.ws.jaxme.generator.SchemaReader' 32
Avoid unused imports such as 'org.apache.ws.jaxme.generator.sg.impl.JAXBSchemaReader' 33
Avoid unused imports such as 'org.apache.ws.jaxme.generator.sg.SchemaSG' 34
Avoid unused imports such as 'org.apache.ws.jaxme.generator.impl.GeneratorImpl' 35

org/apache/commons/jelly/tags/jaxme/ExecutionTestCase.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 34

org/apache/ws/jaxme/examples/misc/address/ObjectFactory.java

ViolationLine
Private field could be made final. It is only initialized in the declaration or constructor. 19

org/apache/ws/jaxme/examples/misc/address/impl/AddressTypeHandler.java

ViolationLine
The class 'AddressTypeHandler' has a Cyclomatic Complexity of 4 (Highest = 11). 18
The class 'NameTypeHandler' has a Cyclomatic Complexity of 8 (Highest = 20). 19
The method 'startElement' has a Cyclomatic Complexity of 20. 54
A high ratio of statements to labels in a switch statement. Consider refactoring. 55
The String literal " was unexpected at this place." appears 5 times in this file; the first occurrence is on line 75 75
The String literal "The element " appears 5 times in this file; the first occurrence is on line 75 75
The method 'endElement' has a Cyclomatic Complexity of 14. 128
A high ratio of statements to labels in a switch statement. Consider refactoring. 136
Switch statements should have a default label 136
Avoid reassigning parameters such as 'pURI' 211
These nested if statements could be combined 217
The method 'startElement' has a Cyclomatic Complexity of 11. 233
These nested if statements could be combined 245
Switch statements should have a default label 277

org/apache/ws/jaxme/examples/misc/address/impl/AddressTypeImpl.java

ViolationLine
Private field could be made final. It is only initialized in the declaration or constructor. 22

org/apache/ws/jaxme/examples/misc/address/impl/AddressTypeSerializer.java

ViolationLine
The String literal "http://ws.apache.org/jaxme/examples/misc/address" appears 5 times in this file; the first occurrence is on line 21 21