PMD Results

The following document contains the results of PMD.

Summary

FilesErrors
74171

Files

FilesViolations
a/ASimpleRun.java 1
net/sf/jour/EmptyClassClassPath.java 1
net/sf/jour/ProfilerEvent.java 1
net/sf/jour/config/impl/AspectImpl.java 2
net/sf/jour/config/impl/AspectTypeImpl.java 2
net/sf/jour/config/impl/JourImpl.java 2
net/sf/jour/config/impl/JourTypeImpl.java 2
net/sf/jour/config/impl/PointcutImpl.java 2
net/sf/jour/config/impl/PointcutTypeImpl.java 2
net/sf/jour/config/impl/TypedefImpl.java 6
net/sf/jour/filter/BasicFilter.java 1
net/sf/jour/filter/ClassFilter.java 3
net/sf/jour/filter/PointcutListFilter.java 1
net/sf/jour/instrumentor/AbstractInstrumentor.java 2
net/sf/jour/instrumentor/InstanceCounterInstrumentor.java 6
net/sf/jour/instrumentor/MethodExecutionTimeInstrumentor.java 2
net/sf/jour/instrumentor/ProfilerInstrumentor.java 6
net/sf/jour/log4j/ext/Monitor.java 1
net/sf/jour/rt/agent/AsyncEventLogger.java 1
net/sf/jour/rt/agent/BulkEventFileReader.java 5
net/sf/jour/rt/agent/BulkEventFileWriter.java 2
net/sf/jour/rt/agent/BulkEventLog4jWriter.java 2
net/sf/jour/rt/agent/InstrumentationMap.java 5
net/sf/jour/rt/agent/LocationInfoEvent.java 3
net/sf/jour/rt/agent/MapedEventID.java 1
net/sf/jour/rt/agent/MapedEventIDContex.java 1
net/sf/jour/rt/agent/Monitor.java 1
net/sf/jour/rt/agent/ProfilerEvent.java 3
net/sf/jour/rt/agent/SafeLog.java 1
net/sf/jour/rt/agent/SystemInfoEvent.java 1
net/sf/jour/rt/swingmonitor/ExceutionTimeChecker.java 1
net/sf/jour/rt/swingmonitor/InstanceCounterPanel.java 3
net/sf/jour/rt/swingmonitor/JVMRuntimeChartPanel.java 1
net/sf/jour/rt/swingmonitor/MethodExceutionStatistics.java 2
net/sf/jour/rt/swingmonitor/MethodExecutionPanel.java 11
net/sf/jour/rt/swingmonitor/MethodsChartPanel.java 1
net/sf/jour/rt/swingmonitor/SwingMonitor.java 3
net/sf/jour/rt/swingmonitor/TableSorter.java 2
net/sf/jour/rt/swingmonitor/ui/action/ExitAction.java 1
net/sf/jour/rt/view/ViewFilter.java 1
net/sf/jour/rt/view/ViewFilterItem.java 1
net/sf/jour/rt/view/config/impl/AccumulationImpl.java 2
net/sf/jour/rt/view/config/impl/AccumulationTypeImpl.java 2
net/sf/jour/rt/view/config/impl/AutoreloadImpl.java 2
net/sf/jour/rt/view/config/impl/AutoreloadTypeImpl.java 2
net/sf/jour/rt/view/config/impl/ClassesImpl.java 2
net/sf/jour/rt/view/config/impl/ClassesTypeImpl.java 2
net/sf/jour/rt/view/config/impl/ClassnamesImpl.java 6
net/sf/jour/rt/view/config/impl/ClassnamesTypeImpl.java 2
net/sf/jour/rt/view/config/impl/ExcludeImpl.java 2
net/sf/jour/rt/view/config/impl/ExcludeTypeImpl.java 2
net/sf/jour/rt/view/config/impl/FilterImpl.java 2
net/sf/jour/rt/view/config/impl/FilterTypeImpl.java 2
net/sf/jour/rt/view/config/impl/IncludeImpl.java 2
net/sf/jour/rt/view/config/impl/IncludeTypeImpl.java 2
net/sf/jour/rt/view/config/impl/JourViewImpl.java 6
net/sf/jour/rt/view/config/impl/JourViewTypeImpl.java 2
net/sf/jour/rt/view/config/impl/MethodsImpl.java 2
net/sf/jour/rt/view/config/impl/MethodsTypeImpl.java 2
net/sf/jour/rt/view/config/impl/MethodsignatureImpl.java 6
net/sf/jour/rt/view/config/impl/MethodsignatureTypeImpl.java 2
net/sf/jour/rt/view/config/impl/SignatureImpl.java 2
net/sf/jour/rt/view/config/impl/SignatureTypeImpl.java 2
net/sf/jour/rt/view/config/impl/TimeImpl.java 2
net/sf/jour/rt/view/config/impl/TimeTypeImpl.java 2
net/sf/jour/rt/view/config/impl/TrimImpl.java 2
net/sf/jour/rt/view/config/impl/TrimTypeImpl.java 2
net/sf/jour/rt/view/config/impl/runtime/InterleaveDispatcher.java 1
net/sf/jour/statistic/MillisecondsPeriod.java 1
net/sf/jour/util/FileUtil.java 1
net/sf/jour/util/FileWatchdog.java 1
net/sf/jour/util/PropertiesBase.java 3
net/sf/jour/util/StringUtil.java 1
net/sf/jour/util/TimeUtil.java 3

a/ASimpleRun.java

ViolationLine
Avoid unused imports such as 'AsyncEventWriter' 5

net/sf/jour/EmptyClassClassPath.java

ViolationLine
Avoid empty catch blocks 92

net/sf/jour/ProfilerEvent.java

ViolationLine
Avoid unused imports such as 'LoggingEvent' 25

net/sf/jour/config/impl/AspectImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 228

net/sf/jour/config/impl/AspectTypeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 23
Avoid unused local variables such as 'attIdx' 435

net/sf/jour/config/impl/JourImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 205

net/sf/jour/config/impl/JourTypeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 20
Avoid unused local variables such as 'attIdx' 318

net/sf/jour/config/impl/PointcutImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 188

net/sf/jour/config/impl/PointcutTypeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 18
Avoid unused local variables such as 'attIdx' 173

net/sf/jour/config/impl/TypedefImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 25
Avoid unused local variables such as 'attIdx' 142
Avoid unused local variables such as 'attIdx' 165
Avoid unused local variables such as 'attIdx' 188
Avoid unused local variables such as 'attIdx' 204
Avoid unused local variables such as 'attIdx' 220

net/sf/jour/filter/BasicFilter.java

ViolationLine
Avoid unused local variables such as 'buf' 46

net/sf/jour/filter/ClassFilter.java

ViolationLine
Avoid unused imports such as 'StringTokenizer' 23
Avoid unused imports such as 'RE' 25
Avoid unused imports such as 'StringToken' 27

net/sf/jour/filter/PointcutListFilter.java

ViolationLine
Avoid unused imports such as 'Classes' 23

net/sf/jour/instrumentor/AbstractInstrumentor.java

ViolationLine
Avoid duplicate imports such as 'javassist.CtMethod' 31
Avoid unused local variables such as 'methodName' 93

net/sf/jour/instrumentor/InstanceCounterInstrumentor.java

ViolationLine
Avoid duplicate imports such as 'javassist.CannotCompileException' 26
Avoid duplicate imports such as 'javassist.CtConstructor' 27
Avoid duplicate imports such as 'javassist.CtMethod' 28
Avoid duplicate imports such as 'javassist.NotFoundException' 29
Avoid unused formal parameters such as 'clazz' 109
Avoid unused local variables such as 'cname' 111

net/sf/jour/instrumentor/MethodExecutionTimeInstrumentor.java

ViolationLine
Avoid duplicate imports such as 'javassist.CtConstructor' 26
Avoid duplicate imports such as 'javassist.CtMethod' 27

net/sf/jour/instrumentor/ProfilerInstrumentor.java

ViolationLine
Avoid duplicate imports such as 'javassist.CannotCompileException' 25
Avoid duplicate imports such as 'javassist.CtConstructor' 27
Avoid duplicate imports such as 'javassist.CtMethod' 28
Avoid duplicate imports such as 'javassist.CtNewMethod' 29
Avoid duplicate imports such as 'javassist.NotFoundException' 30
Avoid unused private methods such as 'addFinalize' 212

net/sf/jour/log4j/ext/Monitor.java

ViolationLine
Avoid unused imports such as 'LoggingEvent' 33

net/sf/jour/rt/agent/AsyncEventLogger.java

ViolationLine
Avoid unused private fields such as 'instance' 53

net/sf/jour/rt/agent/BulkEventFileReader.java

ViolationLine
Avoid duplicate imports such as 'java.io.File' 23
Avoid duplicate imports such as 'java.io.IOException' 25
Avoid duplicate imports such as 'java.io.EOFException' 26
Avoid duplicate imports such as 'java.io.FileInputStream' 29
Avoid duplicate imports such as 'java.io.ObjectInputStream' 30

net/sf/jour/rt/agent/BulkEventFileWriter.java

ViolationLine
Avoid unused private methods such as 'reset' 104
Avoid unused local variables such as 'cfmt' 213

net/sf/jour/rt/agent/BulkEventLog4jWriter.java

ViolationLine
Avoid unused formal parameters such as 'eventQueue' 46
Avoid unused formal parameters such as 'key' 46

net/sf/jour/rt/agent/InstrumentationMap.java

ViolationLine
Avoid duplicate imports such as 'java.util.HashMap' 23
Avoid duplicate imports such as 'java.io.PrintStream' 28
Avoid duplicate imports such as 'java.io.FileOutputStream' 29
Avoid duplicate imports such as 'java.io.BufferedReader' 30
Double checked locking is not thread safe in Java. 79

net/sf/jour/rt/agent/LocationInfoEvent.java

ViolationLine
Avoid unused private fields such as 'timeStamp' 44
Avoid unused private fields such as 'locationId' 46
Avoid unused private fields such as 'locationIdentifier' 48

net/sf/jour/rt/agent/MapedEventID.java

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

net/sf/jour/rt/agent/MapedEventIDContex.java

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

net/sf/jour/rt/agent/Monitor.java

ViolationLine
Avoid unused imports such as 'PropertiesBase' 25

net/sf/jour/rt/agent/ProfilerEvent.java

ViolationLine
Avoid unused private fields such as 'isConstructed' 46
Avoid empty 'if' statements 77
Avoid empty 'if' statements 79

net/sf/jour/rt/agent/SafeLog.java

ViolationLine
Avoid unused private fields such as 'FQCN' 39

net/sf/jour/rt/agent/SystemInfoEvent.java

ViolationLine
Avoid unused private fields such as 'description' 61

net/sf/jour/rt/swingmonitor/ExceutionTimeChecker.java

ViolationLine
Avoid unused private fields such as 'hash' 35

net/sf/jour/rt/swingmonitor/InstanceCounterPanel.java

ViolationLine
Avoid duplicate imports such as 'javax.swing.JScrollPane' 28
Avoid duplicate imports such as 'javax.swing.JTable' 29
Avoid empty 'if' statements 122

net/sf/jour/rt/swingmonitor/JVMRuntimeChartPanel.java

ViolationLine
Avoid unused private fields such as 'hostTimeSeries' 57

net/sf/jour/rt/swingmonitor/MethodExceutionStatistics.java

ViolationLine
Avoid unused private methods such as 'x_getMethodId' 255
Avoid unused private methods such as 'x_getMethodInstanceId' 267

net/sf/jour/rt/swingmonitor/MethodExecutionPanel.java

ViolationLine
Avoid duplicate imports such as 'java.awt.event.ActionEvent' 25
Avoid duplicate imports such as 'java.awt.event.ActionListener' 26
Avoid duplicate imports such as 'javax.swing' 34
Avoid duplicate imports such as 'javax.swing.BoxLayout' 35
Avoid duplicate imports such as 'javax.swing.JButton' 36
Avoid duplicate imports such as 'javax.swing.JPanel' 37
Avoid duplicate imports such as 'javax.swing.JScrollPane' 38
Avoid duplicate imports such as 'javax.swing.JTable' 39
Avoid duplicate imports such as 'javax.swing.event.TableModelEvent' 41
Avoid duplicate imports such as 'javax.swing.table.AbstractTableModel' 42
Avoid duplicate imports such as 'javax.swing.table.DefaultTableCellRenderer' 44

net/sf/jour/rt/swingmonitor/MethodsChartPanel.java

ViolationLine
Avoid unused local variables such as 'standardlegend' 98

net/sf/jour/rt/swingmonitor/SwingMonitor.java

ViolationLine
Avoid duplicate imports such as 'javax.swing.UIManager' 25
Avoid unused private fields such as 'injectMenu' 49
Avoid unused private fields such as 'helpMenu' 53

net/sf/jour/rt/swingmonitor/TableSorter.java

ViolationLine
Avoid duplicate imports such as 'java.util.List' 26
Avoid unnecessary return statements 342

net/sf/jour/rt/swingmonitor/ui/action/ExitAction.java

ViolationLine
Avoid unused imports such as 'Logger' 26

net/sf/jour/rt/view/ViewFilter.java

ViolationLine
Avoid unused local variables such as 'list' 155

net/sf/jour/rt/view/ViewFilterItem.java

ViolationLine
Avoid unused imports such as 'Logger' 28

net/sf/jour/rt/view/config/impl/AccumulationImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 205

net/sf/jour/rt/view/config/impl/AccumulationTypeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 202

net/sf/jour/rt/view/config/impl/AutoreloadImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 222

net/sf/jour/rt/view/config/impl/AutoreloadTypeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 21
Avoid unused local variables such as 'attIdx' 260

net/sf/jour/rt/view/config/impl/ClassesImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 231

net/sf/jour/rt/view/config/impl/ClassesTypeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 21
Avoid unused local variables such as 'attIdx' 407

net/sf/jour/rt/view/config/impl/ClassnamesImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 133
Avoid unused local variables such as 'attIdx' 166
Avoid unused local variables such as 'attIdx' 189
Avoid unused local variables such as 'attIdx' 205
Avoid unused local variables such as 'attIdx' 221

net/sf/jour/rt/view/config/impl/ClassnamesTypeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 18
Avoid unused local variables such as 'attIdx' 236

net/sf/jour/rt/view/config/impl/ExcludeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 204

net/sf/jour/rt/view/config/impl/ExcludeTypeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 21
Avoid unused local variables such as 'attIdx' 255

net/sf/jour/rt/view/config/impl/FilterImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 253

net/sf/jour/rt/view/config/impl/FilterTypeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 23
Avoid unused local variables such as 'attIdx' 582

net/sf/jour/rt/view/config/impl/IncludeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 204

net/sf/jour/rt/view/config/impl/IncludeTypeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 21
Avoid unused local variables such as 'attIdx' 255

net/sf/jour/rt/view/config/impl/JourViewImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 152
Avoid unused local variables such as 'attIdx' 193
Avoid unused local variables such as 'attIdx' 216
Avoid unused local variables such as 'attIdx' 232
Avoid unused local variables such as 'attIdx' 248

net/sf/jour/rt/view/config/impl/JourViewTypeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 21
Avoid unused local variables such as 'attIdx' 549

net/sf/jour/rt/view/config/impl/MethodsImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 231

net/sf/jour/rt/view/config/impl/MethodsTypeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 21
Avoid unused local variables such as 'attIdx' 407

net/sf/jour/rt/view/config/impl/MethodsignatureImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 133
Avoid unused local variables such as 'attIdx' 166
Avoid unused local variables such as 'attIdx' 189
Avoid unused local variables such as 'attIdx' 205
Avoid unused local variables such as 'attIdx' 221

net/sf/jour/rt/view/config/impl/MethodsignatureTypeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 18
Avoid unused local variables such as 'attIdx' 236

net/sf/jour/rt/view/config/impl/SignatureImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 239

net/sf/jour/rt/view/config/impl/SignatureTypeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 22
Avoid unused local variables such as 'attIdx' 475

net/sf/jour/rt/view/config/impl/TimeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 217

net/sf/jour/rt/view/config/impl/TimeTypeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 22
Avoid unused local variables such as 'attIdx' 304

net/sf/jour/rt/view/config/impl/TrimImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 189

net/sf/jour/rt/view/config/impl/TrimTypeImpl.java

ViolationLine
Avoid unused private methods such as 'PRIMARY_INTERFACE_CLASS' 19
Avoid unused local variables such as 'attIdx' 220

net/sf/jour/rt/view/config/impl/runtime/InterleaveDispatcher.java

ViolationLine
Avoid empty 'if' statements 156

net/sf/jour/statistic/MillisecondsPeriod.java

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

net/sf/jour/util/FileUtil.java

ViolationLine
Avoid unused local variables such as 'isResource' 50

net/sf/jour/util/FileWatchdog.java

ViolationLine
Avoid empty 'if' statements 128

net/sf/jour/util/PropertiesBase.java

ViolationLine
No need to import a type that's in the same package 35
Avoid unused private fields such as 'isDynamic' 57
Avoid empty catch blocks 192

net/sf/jour/util/StringUtil.java

ViolationLine
Avoid unused private methods such as 'stringToArray' 68

net/sf/jour/util/TimeUtil.java

ViolationLine
Avoid empty catch blocks 116
Avoid empty catch blocks 176
Avoid unused private fields such as 'tsintervalPattern' 186