PMD Results

The following document contains the results of PMD.

Summary

FilesErrors
5698

Files

FilesViolations
com/bea/xml/stream/AttributeBase.java 1
com/bea/xml/stream/ConfigurationContextBase.java 4
com/bea/xml/stream/EventFactory.java 1
com/bea/xml/stream/EventReaderFilter.java 5
com/bea/xml/stream/EventScanner.java 4
com/bea/xml/stream/MXParser.java 4
com/bea/xml/stream/MXParserFactory.java 1
com/bea/xml/stream/NamespaceBase.java 1
com/bea/xml/stream/ReaderDelegate.java 5
com/bea/xml/stream/StaticAllocator.java 3
com/bea/xml/stream/StreamReaderFilter.java 1
com/bea/xml/stream/SubReader.java 4
com/bea/xml/stream/XMLEventAllocatorBase.java 4
com/bea/xml/stream/XMLEventPlayer.java 1
com/bea/xml/stream/XMLEventWriterBase.java 5
com/bea/xml/stream/XMLOutputFactoryBase.java 1
com/bea/xml/stream/XMLStreamPlayer.java 1
com/bea/xml/stream/XMLStreamRecorder.java 4
com/bea/xml/stream/XMLWriterBase.java 2
com/bea/xml/stream/events/DTDEvent.java 1
com/bea/xml/stream/events/EndElementEvent.java 1
com/bea/xml/stream/events/ProcessingInstructionEvent.java 1
com/bea/xml/stream/events/StartElementEvent.java 1
com/bea/xml/stream/reader/XmlReader.java 1
com/bea/xml/stream/samples/AllocEventParser.java 2
com/bea/xml/stream/samples/EventParse.java 3
com/bea/xml/stream/samples/EventWrite.java 2
com/bea/xml/stream/samples/NoAllocEventParser.java 1
com/bea/xml/stream/util/NamespaceContextImpl.java 3
com/bea/xml/stream/util/SymbolTable.java 2
com/wutka/dtd/DTD.java 1
com/wutka/dtd/DTDAny.java 1
com/wutka/dtd/DTDAttlist.java 1
com/wutka/dtd/DTDAttribute.java 1
com/wutka/dtd/DTDCardinal.java 1
com/wutka/dtd/DTDChoice.java 1
com/wutka/dtd/DTDComment.java 1
com/wutka/dtd/DTDContainer.java 1
com/wutka/dtd/DTDDecl.java 1
com/wutka/dtd/DTDElement.java 1
com/wutka/dtd/DTDEmpty.java 1
com/wutka/dtd/DTDEntity.java 3
com/wutka/dtd/DTDEnumeration.java 1
com/wutka/dtd/DTDExternalID.java 1
com/wutka/dtd/DTDItem.java 1
com/wutka/dtd/DTDMixed.java 1
com/wutka/dtd/DTDName.java 1
com/wutka/dtd/DTDNotation.java 1
com/wutka/dtd/DTDNotationList.java 1
com/wutka/dtd/DTDPCData.java 1
com/wutka/dtd/DTDParser.java 1
com/wutka/dtd/DTDProcessingInstruction.java 1
com/wutka/dtd/DTDPublic.java 1
com/wutka/dtd/DTDSequence.java 1
com/wutka/dtd/DTDSystem.java 1
com/wutka/dtd/Scanner.java 1

com/bea/xml/stream/AttributeBase.java

ViolationLine
Avoid unused private fields such as 'eventType' 36

com/bea/xml/stream/ConfigurationContextBase.java

ViolationLine
Avoid unused imports such as 'EventFilter' 23
Avoid unused imports such as 'StreamFilter' 24
Avoid unused private fields such as 'EVENT_FILTER' 35
Avoid unused private fields such as 'STREAM_FILTER' 36

com/bea/xml/stream/EventFactory.java

ViolationLine
Avoid duplicate imports such as 'javax.xml.stream.events.Namespace' 33

com/bea/xml/stream/EventReaderFilter.java

ViolationLine
Avoid unused imports such as 'QName' 18
Avoid unused imports such as 'EmptyIterator' 19
Avoid unused imports such as 'ElementTypeNames' 20
Avoid unused imports such as 'StartElement' 24
Avoid unused imports such as 'EndElement' 25

com/bea/xml/stream/EventScanner.java

ViolationLine
No need to import a type that's in the same package 24
No need to import a type that's in the same package 25
Avoid unused imports such as 'HashMap' 29
Avoid unused imports such as 'Map' 30

com/bea/xml/stream/MXParser.java

ViolationLine
Avoid unused private fields such as 'TEXT' 68
Avoid unused private fields such as 'DOCDECL' 70
Avoid unused local variables such as 'standaloneStart' 2965
Avoid unused local variables such as 'out' 3062

com/bea/xml/stream/MXParserFactory.java

ViolationLine
Avoid unused imports such as 'Enumeration' 19

com/bea/xml/stream/NamespaceBase.java

ViolationLine
Avoid unused imports such as 'QName' 19

com/bea/xml/stream/ReaderDelegate.java

ViolationLine
Avoid unused imports such as 'EmptyIterator' 21
Avoid unused imports such as 'XMLEvent' 22
Avoid unused imports such as 'List' 26
Avoid unused imports such as 'InputStream' 27
Avoid unused imports such as 'Reader' 28

com/bea/xml/stream/StaticAllocator.java

ViolationLine
Avoid unused imports such as 'XMLEventFactory' 23
Avoid duplicate imports such as 'javax.xml.stream.events.Namespace' 39
Avoid unused imports such as 'NamedEvent' 49

com/bea/xml/stream/StreamReaderFilter.java

ViolationLine
Avoid duplicate imports such as 'javax.xml.stream.StreamFilter' 26

com/bea/xml/stream/SubReader.java

ViolationLine
Avoid unused imports such as 'QName' 18
Avoid unused imports such as 'EmptyIterator' 19
Avoid unused imports such as 'XMLEvent' 21
Avoid unused imports such as 'List' 24

com/bea/xml/stream/XMLEventAllocatorBase.java

ViolationLine
Avoid unused imports such as 'QName' 21
Avoid unused imports such as 'Namespace' 34
Avoid duplicate imports such as 'javax.xml.stream.events.Namespace' 38
Avoid unused imports such as 'Attribute' 39

com/bea/xml/stream/XMLEventPlayer.java

ViolationLine
Avoid unused imports such as 'XMLStreamReader' 19

com/bea/xml/stream/XMLEventWriterBase.java

ViolationLine
Avoid duplicate imports such as 'javax.xml.stream.events.Namespace' 37
Avoid unused local variables such as 'prefix' 89
Avoid unused local variables such as 'namespace' 90
Avoid unused local variables such as 'localName' 91
Avoid unused local variables such as 'standalone' 128

com/bea/xml/stream/XMLOutputFactoryBase.java

ViolationLine
Avoid unused imports such as 'Hashtable' 17

com/bea/xml/stream/XMLStreamPlayer.java

ViolationLine
Avoid unused imports such as 'Namespace' 30

com/bea/xml/stream/XMLStreamRecorder.java

ViolationLine
Avoid unused imports such as 'IOException' 18
Avoid unused imports such as 'XMLStreamWriter' 19
Avoid unused imports such as 'XMLEvent' 22
Avoid unused local variables such as 'xmlof' 223

com/bea/xml/stream/XMLWriterBase.java

ViolationLine
Avoid unused imports such as 'SymbolTable' 17
Avoid unused private methods such as 'removeNamespace' 288

com/bea/xml/stream/events/DTDEvent.java

ViolationLine
Avoid unused imports such as 'XMLEventReader' 19

com/bea/xml/stream/events/EndElementEvent.java

ViolationLine
Avoid unused imports such as 'Attribute' 25

com/bea/xml/stream/events/ProcessingInstructionEvent.java

ViolationLine
Avoid unused imports such as 'QName' 19

com/bea/xml/stream/events/StartElementEvent.java

ViolationLine
Avoid unused imports such as 'Map' 24

com/bea/xml/stream/reader/XmlReader.java

ViolationLine
Avoid using an outer loop incrementer in an inner loop for update expression 434

com/bea/xml/stream/samples/AllocEventParser.java

ViolationLine
Avoid unused imports such as 'StaticAllocator' 3
Avoid unused imports such as 'QName' 8

com/bea/xml/stream/samples/EventParse.java

ViolationLine
Avoid unused imports such as 'QName' 7
Avoid unused private methods such as 'printEventType' 117
Avoid unused private methods such as 'printValue' 139

com/bea/xml/stream/samples/EventWrite.java

ViolationLine
Avoid unused imports such as 'QName' 6
Avoid unused imports such as 'ElementTypeNames' 7

com/bea/xml/stream/samples/NoAllocEventParser.java

ViolationLine
Avoid unused imports such as 'QName' 8

com/bea/xml/stream/util/NamespaceContextImpl.java

ViolationLine
Avoid unused imports such as 'ArrayList' 19
Avoid unused imports such as 'Set' 21
Avoid duplicate imports such as 'java.util.Iterator' 22

com/bea/xml/stream/util/SymbolTable.java

ViolationLine
Avoid unused imports such as 'ArrayList' 18
Avoid unused imports such as 'List' 19

com/wutka/dtd/DTD.java

ViolationLine
Ensure you override both equals() and hashCode() 62

com/wutka/dtd/DTDAny.java

ViolationLine
Ensure you override both equals() and hashCode() 24

com/wutka/dtd/DTDAttlist.java

ViolationLine
Ensure you override both equals() and hashCode() 60

com/wutka/dtd/DTDAttribute.java

ViolationLine
Ensure you override both equals() and hashCode() 69

com/wutka/dtd/DTDCardinal.java

ViolationLine
Ensure you override both equals() and hashCode() 39

com/wutka/dtd/DTDChoice.java

ViolationLine
Ensure you override both equals() and hashCode() 39

com/wutka/dtd/DTDComment.java

ViolationLine
Ensure you override both equals() and hashCode() 37

com/wutka/dtd/DTDContainer.java

ViolationLine
Ensure you override both equals() and hashCode() 48

com/wutka/dtd/DTDDecl.java

ViolationLine
Ensure you override both equals() and hashCode() 26

com/wutka/dtd/DTDElement.java

ViolationLine
Ensure you override both equals() and hashCode() 75

com/wutka/dtd/DTDEmpty.java

ViolationLine
Ensure you override both equals() and hashCode() 24

com/wutka/dtd/DTDEntity.java

ViolationLine
Avoid empty catch blocks 123
Avoid empty catch blocks 138
Ensure you override both equals() and hashCode() 143

com/wutka/dtd/DTDEnumeration.java

ViolationLine
Ensure you override both equals() and hashCode() 66

com/wutka/dtd/DTDExternalID.java

ViolationLine
Ensure you override both equals() and hashCode() 22

com/wutka/dtd/DTDItem.java

ViolationLine
Ensure you override both equals() and hashCode() 29

com/wutka/dtd/DTDMixed.java

ViolationLine
Ensure you override both equals() and hashCode() 40

com/wutka/dtd/DTDName.java

ViolationLine
Ensure you override both equals() and hashCode() 31

com/wutka/dtd/DTDNotation.java

ViolationLine
Ensure you override both equals() and hashCode() 35

com/wutka/dtd/DTDNotationList.java

ViolationLine
Ensure you override both equals() and hashCode() 66

com/wutka/dtd/DTDPCData.java

ViolationLine
Ensure you override both equals() and hashCode() 24

com/wutka/dtd/DTDParser.java

ViolationLine
Avoid empty 'if' statements 239

com/wutka/dtd/DTDProcessingInstruction.java

ViolationLine
Ensure you override both equals() and hashCode() 37

com/wutka/dtd/DTDPublic.java

ViolationLine
Ensure you override both equals() and hashCode() 34

com/wutka/dtd/DTDSequence.java

ViolationLine
Ensure you override both equals() and hashCode() 39

com/wutka/dtd/DTDSystem.java

ViolationLine
Ensure you override both equals() and hashCode() 28

com/wutka/dtd/Scanner.java

ViolationLine
Avoid unnecessary return statements 192