PMD Results

The following document contains the results of PMD 5.0.2.

Files

edu/odu/cs/codeAnnotation/Code2HTML.java

ViolationLine
Package name contains upper case characters4
The class 'Code2HTML' has a Cyclomatic Complexity of 6 (Highest = 11).18 - 145
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.18 - 145
The method 'processArgs' has a Cyclomatic Complexity of 11.40 - 98
Found 'DD'-anomaly for variable 'outputFileName' (lines '44'-'87').44 - 87
Assigning an Object to null is a code smell. Consider refactoring.45
Assigning an Object to null is a code smell. Consider refactoring.49
Potential violation of Law of Demeter (method chain calls)51
Potential violation of Law of Demeter (method chain calls)51
Potential violation of Law of Demeter (method chain calls)56
Potential violation of Law of Demeter (method chain calls)56
Potential violation of Law of Demeter (method chain calls)60
Potential violation of Law of Demeter (method chain calls)60
Potential violation of Law of Demeter (method chain calls)65
Potential violation of Law of Demeter (method chain calls)65
Potential violation of Law of Demeter (method chain calls)70
Potential violation of Law of Demeter (method chain calls)70
Singleton is not thread safe77 - 83
Avoid variables with short names like k80
Found 'DD'-anomaly for variable 'outputFileName' (lines '87'-'87').87
Avoid variables with short names like in113
Potential violation of Law of Demeter (object not created locally)114
Potential violation of Law of Demeter (object not created locally)118
Potential violation of Law of Demeter (object not created locally)120
Potential violation of Law of Demeter (object not created locally)129

edu/odu/cs/codeAnnotation/Code2TeX.java

ViolationLine
Package name contains upper case characters4
Package name contains upper case characters4
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.20 - 69
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.20 - 69
Potential violation of Law of Demeter (object not created locally)45
Potential violation of Law of Demeter (object not created locally)45
Potential violation of Law of Demeter (object not created locally)46
Potential violation of Law of Demeter (object not created locally)46
Potential violation of Law of Demeter (object not created locally)48
Potential violation of Law of Demeter (object not created locally)48
Potential violation of Law of Demeter (object not created locally)55
Potential violation of Law of Demeter (object not created locally)55
Potential violation of Law of Demeter (object not created locally)56
Potential violation of Law of Demeter (object not created locally)56

edu/odu/cs/codeAnnotation/Code2TeXSimple.java

ViolationLine
Package name contains upper case characters4
Package name contains upper case characters4
Package name contains upper case characters4
Too many lines15 - 27
Too many lines15 - 27
Too many lines15 - 27
Line too long20
Line too long20
Line too long20
Use explicit scoping instead of the default package private level30
Use explicit scoping instead of the default package private level30
Use explicit scoping instead of the default package private level30
Use explicit scoping instead of the default package private level31
Use explicit scoping instead of the default package private level31
Use explicit scoping instead of the default package private level31
Assigning an Object to null is a code smell. Consider refactoring.41
Assigning an Object to null is a code smell. Consider refactoring.41
Assigning an Object to null is a code smell. Consider refactoring.41
Assigning an Object to null is a code smell. Consider refactoring.42
Assigning an Object to null is a code smell. Consider refactoring.42
Assigning an Object to null is a code smell. Consider refactoring.42
Avoid assignments in operands61
Avoid assignments in operands61
Avoid assignments in operands61
Found 'DU'-anomaly for variable 'line' (lines '61'-'68').61 - 68
Found 'DU'-anomaly for variable 'line' (lines '61'-'68').61 - 68
Found 'DU'-anomaly for variable 'line' (lines '61'-'68').61 - 68
Potential violation of Law of Demeter (object not created locally)62
Potential violation of Law of Demeter (object not created locally)62
Potential violation of Law of Demeter (object not created locally)62
Potential violation of Law of Demeter (object not created locally)63
Potential violation of Law of Demeter (object not created locally)63
Potential violation of Law of Demeter (object not created locally)63
Avoid appending characters as strings in StringBuffer.append.63
Avoid appending characters as strings in StringBuffer.append.63
Avoid appending characters as strings in StringBuffer.append.63
Potential violation of Law of Demeter (object not created locally)65
Potential violation of Law of Demeter (object not created locally)65
Potential violation of Law of Demeter (object not created locally)65
Potential violation of Law of Demeter (object not created locally)66
Potential violation of Law of Demeter (object not created locally)66
Potential violation of Law of Demeter (object not created locally)66
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid reassigning parameters such as 'sourceCode'75
Avoid variables with short names like m77
Avoid variables with short names like m77
Avoid variables with short names like m77
Potential violation of Law of Demeter (object not created locally)77
Potential violation of Law of Demeter (object not created locally)77
Potential violation of Law of Demeter (object not created locally)77
Potential violation of Law of Demeter (object not created locally)78
Potential violation of Law of Demeter (object not created locally)78
Potential violation of Law of Demeter (object not created locally)78
Potential violation of Law of Demeter (object not created locally)79
Potential violation of Law of Demeter (object not created locally)79
Potential violation of Law of Demeter (object not created locally)79
Potential violation of Law of Demeter (object not created locally)81
Potential violation of Law of Demeter (object not created locally)81
Potential violation of Law of Demeter (object not created locally)81
Potential violation of Law of Demeter (object not created locally)83
Potential violation of Law of Demeter (object not created locally)83
Potential violation of Law of Demeter (object not created locally)83
Potential violation of Law of Demeter (object not created locally)86
Potential violation of Law of Demeter (object not created locally)86
Potential violation of Law of Demeter (object not created locally)86
Potential violation of Law of Demeter (object not created locally)87
Potential violation of Law of Demeter (object not created locally)87
Potential violation of Law of Demeter (object not created locally)87
Potential violation of Law of Demeter (object not created locally)88
Potential violation of Law of Demeter (object not created locally)88
Potential violation of Law of Demeter (object not created locally)88
Potential violation of Law of Demeter (object not created locally)90
Potential violation of Law of Demeter (object not created locally)90
Potential violation of Law of Demeter (object not created locally)90
Potential violation of Law of Demeter (object not created locally)92
Potential violation of Law of Demeter (object not created locally)92
Potential violation of Law of Demeter (object not created locally)92
Potential violation of Law of Demeter (object not created locally)96
Potential violation of Law of Demeter (object not created locally)96
Potential violation of Law of Demeter (object not created locally)96
Potential violation of Law of Demeter (object not created locally)97
Potential violation of Law of Demeter (object not created locally)97
Potential violation of Law of Demeter (object not created locally)97
Potential violation of Law of Demeter (object not created locally)98
Potential violation of Law of Demeter (object not created locally)98
Potential violation of Law of Demeter (object not created locally)98
Potential violation of Law of Demeter (object not created locally)99
Potential violation of Law of Demeter (object not created locally)99
Potential violation of Law of Demeter (object not created locally)99
Potential violation of Law of Demeter (object not created locally)100
Potential violation of Law of Demeter (object not created locally)100
Potential violation of Law of Demeter (object not created locally)100
Potential violation of Law of Demeter (object not created locally)102
Potential violation of Law of Demeter (object not created locally)102
Potential violation of Law of Demeter (object not created locally)102
Potential violation of Law of Demeter (object not created locally)107
Potential violation of Law of Demeter (object not created locally)107
Potential violation of Law of Demeter (object not created locally)107
Potential violation of Law of Demeter (object not created locally)108
Potential violation of Law of Demeter (object not created locally)108
Potential violation of Law of Demeter (object not created locally)108
Potential violation of Law of Demeter (object not created locally)109
Potential violation of Law of Demeter (object not created locally)109
Potential violation of Law of Demeter (object not created locally)109
Found 'DD'-anomaly for variable 'block' (lines '110'-'112').110 - 112
Found 'DD'-anomaly for variable 'block' (lines '110'-'112').110 - 112
Found 'DD'-anomaly for variable 'block' (lines '110'-'112').110 - 112
Potential violation of Law of Demeter (object not created locally)110
Potential violation of Law of Demeter (object not created locally)110
Potential violation of Law of Demeter (object not created locally)110
Potential violation of Law of Demeter (object not created locally)111
Potential violation of Law of Demeter (object not created locally)111
Potential violation of Law of Demeter (object not created locally)111
Potential violation of Law of Demeter (object not created locally)112
Potential violation of Law of Demeter (object not created locally)112
Potential violation of Law of Demeter (object not created locally)112
Potential violation of Law of Demeter (object not created locally)114
Potential violation of Law of Demeter (object not created locally)114
Potential violation of Law of Demeter (object not created locally)114
Potential violation of Law of Demeter (object not created locally)118
Potential violation of Law of Demeter (object not created locally)118
Potential violation of Law of Demeter (object not created locally)118
Potential violation of Law of Demeter (object not created locally)119
Potential violation of Law of Demeter (object not created locally)119
Potential violation of Law of Demeter (object not created locally)119
Potential violation of Law of Demeter (object not created locally)120
Potential violation of Law of Demeter (object not created locally)120
Potential violation of Law of Demeter (object not created locally)120
Potential violation of Law of Demeter (object not created locally)121
Potential violation of Law of Demeter (object not created locally)121
Potential violation of Law of Demeter (object not created locally)121
Potential violation of Law of Demeter (object not created locally)122
Potential violation of Law of Demeter (object not created locally)122
Potential violation of Law of Demeter (object not created locally)122
Potential violation of Law of Demeter (object not created locally)123
Potential violation of Law of Demeter (object not created locally)123
Potential violation of Law of Demeter (object not created locally)123
Potential violation of Law of Demeter (object not created locally)125
Potential violation of Law of Demeter (object not created locally)125
Potential violation of Law of Demeter (object not created locally)125
Potential violation of Law of Demeter (object not created locally)129
Potential violation of Law of Demeter (object not created locally)129
Potential violation of Law of Demeter (object not created locally)129
Potential violation of Law of Demeter (object not created locally)130
Potential violation of Law of Demeter (object not created locally)130
Potential violation of Law of Demeter (object not created locally)130
Potential violation of Law of Demeter (object not created locally)131
Potential violation of Law of Demeter (object not created locally)131
Potential violation of Law of Demeter (object not created locally)131
Potential violation of Law of Demeter (object not created locally)132
Potential violation of Law of Demeter (object not created locally)132
Potential violation of Law of Demeter (object not created locally)132
Potential violation of Law of Demeter (object not created locally)133
Potential violation of Law of Demeter (object not created locally)133
Potential violation of Law of Demeter (object not created locally)133
Potential violation of Law of Demeter (object not created locally)134
Potential violation of Law of Demeter (object not created locally)134
Potential violation of Law of Demeter (object not created locally)134
Potential violation of Law of Demeter (object not created locally)136
Potential violation of Law of Demeter (object not created locally)136
Potential violation of Law of Demeter (object not created locally)136
Potential violation of Law of Demeter (object not created locally)141
Potential violation of Law of Demeter (object not created locally)141
Potential violation of Law of Demeter (object not created locally)141
Potential violation of Law of Demeter (object not created locally)142
Potential violation of Law of Demeter (object not created locally)142
Potential violation of Law of Demeter (object not created locally)142
Potential violation of Law of Demeter (object not created locally)143
Potential violation of Law of Demeter (object not created locally)143
Potential violation of Law of Demeter (object not created locally)143
Potential violation of Law of Demeter (object not created locally)144
Potential violation of Law of Demeter (object not created locally)144
Potential violation of Law of Demeter (object not created locally)144
Potential violation of Law of Demeter (object not created locally)145
Potential violation of Law of Demeter (object not created locally)145
Potential violation of Law of Demeter (object not created locally)145
Potential violation of Law of Demeter (object not created locally)146
Potential violation of Law of Demeter (object not created locally)146
Potential violation of Law of Demeter (object not created locally)146
Potential violation of Law of Demeter (object not created locally)148
Potential violation of Law of Demeter (object not created locally)148
Potential violation of Law of Demeter (object not created locally)148

edu/odu/cs/codeAnnotation/Listing2HTML.java

ViolationLine
Package name contains upper case characters4
Package name contains upper case characters4
Package name contains upper case characters4
Package name contains upper case characters4
The class 'Listing2HTML' has a Cyclomatic Complexity of 5 (Highest = 11).20 - 158
The class 'Listing2HTML' has a Cyclomatic Complexity of 5 (Highest = 11).20 - 158
The class 'Listing2HTML' has a Cyclomatic Complexity of 5 (Highest = 11).20 - 158
The class 'Listing2HTML' has a Cyclomatic Complexity of 5 (Highest = 11).20 - 158
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.20 - 158
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.20 - 158
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.20 - 158
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.20 - 158
The method 'processArgs' has a Cyclomatic Complexity of 11.42 - 100
The method 'processArgs' has a Cyclomatic Complexity of 11.42 - 100
The method 'processArgs' has a Cyclomatic Complexity of 11.42 - 100
The method 'processArgs' has a Cyclomatic Complexity of 11.42 - 100
Found 'DD'-anomaly for variable 'outputFileName' (lines '46'-'89').46 - 89
Found 'DD'-anomaly for variable 'outputFileName' (lines '46'-'89').46 - 89
Found 'DD'-anomaly for variable 'outputFileName' (lines '46'-'89').46 - 89
Found 'DD'-anomaly for variable 'outputFileName' (lines '46'-'89').46 - 89
Assigning an Object to null is a code smell. Consider refactoring.47
Assigning an Object to null is a code smell. Consider refactoring.47
Assigning an Object to null is a code smell. Consider refactoring.47
Assigning an Object to null is a code smell. Consider refactoring.47
Assigning an Object to null is a code smell. Consider refactoring.51
Assigning an Object to null is a code smell. Consider refactoring.51
Assigning an Object to null is a code smell. Consider refactoring.51
Assigning an Object to null is a code smell. Consider refactoring.51
Potential violation of Law of Demeter (method chain calls)53
Potential violation of Law of Demeter (method chain calls)53
Potential violation of Law of Demeter (method chain calls)53
Potential violation of Law of Demeter (method chain calls)53
Potential violation of Law of Demeter (method chain calls)53
Potential violation of Law of Demeter (method chain calls)53
Potential violation of Law of Demeter (method chain calls)53
Potential violation of Law of Demeter (method chain calls)53
Potential violation of Law of Demeter (method chain calls)58
Potential violation of Law of Demeter (method chain calls)58
Potential violation of Law of Demeter (method chain calls)58
Potential violation of Law of Demeter (method chain calls)58
Potential violation of Law of Demeter (method chain calls)58
Potential violation of Law of Demeter (method chain calls)58
Potential violation of Law of Demeter (method chain calls)58
Potential violation of Law of Demeter (method chain calls)58
Potential violation of Law of Demeter (method chain calls)62
Potential violation of Law of Demeter (method chain calls)62
Potential violation of Law of Demeter (method chain calls)62
Potential violation of Law of Demeter (method chain calls)62
Potential violation of Law of Demeter (method chain calls)62
Potential violation of Law of Demeter (method chain calls)62
Potential violation of Law of Demeter (method chain calls)62
Potential violation of Law of Demeter (method chain calls)62
Potential violation of Law of Demeter (method chain calls)67
Potential violation of Law of Demeter (method chain calls)67
Potential violation of Law of Demeter (method chain calls)67
Potential violation of Law of Demeter (method chain calls)67
Potential violation of Law of Demeter (method chain calls)67
Potential violation of Law of Demeter (method chain calls)67
Potential violation of Law of Demeter (method chain calls)67
Potential violation of Law of Demeter (method chain calls)67
Potential violation of Law of Demeter (method chain calls)72
Potential violation of Law of Demeter (method chain calls)72
Potential violation of Law of Demeter (method chain calls)72
Potential violation of Law of Demeter (method chain calls)72
Potential violation of Law of Demeter (method chain calls)72
Potential violation of Law of Demeter (method chain calls)72
Potential violation of Law of Demeter (method chain calls)72
Potential violation of Law of Demeter (method chain calls)72
Singleton is not thread safe79 - 85
Singleton is not thread safe79 - 85
Singleton is not thread safe79 - 85
Singleton is not thread safe79 - 85
Avoid variables with short names like k82
Avoid variables with short names like k82
Avoid variables with short names like k82
Avoid variables with short names like k82
Found 'DD'-anomaly for variable 'outputFileName' (lines '89'-'89').89
Found 'DD'-anomaly for variable 'outputFileName' (lines '89'-'89').89
Found 'DD'-anomaly for variable 'outputFileName' (lines '89'-'89').89
Found 'DD'-anomaly for variable 'outputFileName' (lines '89'-'89').89
Potential violation of Law of Demeter (object not created locally)109
Potential violation of Law of Demeter (object not created locally)109
Potential violation of Law of Demeter (object not created locally)109
Potential violation of Law of Demeter (object not created locally)109
Potential violation of Law of Demeter (object not created locally)111
Potential violation of Law of Demeter (object not created locally)111
Potential violation of Law of Demeter (object not created locally)111
Potential violation of Law of Demeter (object not created locally)111
Avoid variables with short names like in126
Avoid variables with short names like in126
Avoid variables with short names like in126
Avoid variables with short names like in126
Potential violation of Law of Demeter (object not created locally)127
Potential violation of Law of Demeter (object not created locally)127
Potential violation of Law of Demeter (object not created locally)127
Potential violation of Law of Demeter (object not created locally)127
Potential violation of Law of Demeter (object not created locally)131
Potential violation of Law of Demeter (object not created locally)131
Potential violation of Law of Demeter (object not created locally)131
Potential violation of Law of Demeter (object not created locally)131
Potential violation of Law of Demeter (object not created locally)133
Potential violation of Law of Demeter (object not created locally)133
Potential violation of Law of Demeter (object not created locally)133
Potential violation of Law of Demeter (object not created locally)133
Potential violation of Law of Demeter (object not created locally)142
Potential violation of Law of Demeter (object not created locally)142
Potential violation of Law of Demeter (object not created locally)142
Potential violation of Law of Demeter (object not created locally)142

edu/odu/cs/codeAnnotation/Listing2TeX.java

ViolationLine
Package name contains upper case characters4
Package name contains upper case characters4
Package name contains upper case characters4
Package name contains upper case characters4
Package name contains upper case characters4
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.20 - 69
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.20 - 69
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.20 - 69
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.20 - 69
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.20 - 69
Potential violation of Law of Demeter (object not created locally)45
Potential violation of Law of Demeter (object not created locally)45
Potential violation of Law of Demeter (object not created locally)45
Potential violation of Law of Demeter (object not created locally)45
Potential violation of Law of Demeter (object not created locally)45
Potential violation of Law of Demeter (object not created locally)46
Potential violation of Law of Demeter (object not created locally)46
Potential violation of Law of Demeter (object not created locally)46
Potential violation of Law of Demeter (object not created locally)46
Potential violation of Law of Demeter (object not created locally)46
Potential violation of Law of Demeter (object not created locally)48
Potential violation of Law of Demeter (object not created locally)48
Potential violation of Law of Demeter (object not created locally)48
Potential violation of Law of Demeter (object not created locally)48
Potential violation of Law of Demeter (object not created locally)48
Potential violation of Law of Demeter (object not created locally)55
Potential violation of Law of Demeter (object not created locally)55
Potential violation of Law of Demeter (object not created locally)55
Potential violation of Law of Demeter (object not created locally)55
Potential violation of Law of Demeter (object not created locally)55
Potential violation of Law of Demeter (object not created locally)56
Potential violation of Law of Demeter (object not created locally)56
Potential violation of Law of Demeter (object not created locally)56
Potential violation of Law of Demeter (object not created locally)56
Potential violation of Law of Demeter (object not created locally)56