Fork me on GitHub

PMD Results

The following document contains the results of PMD 5.6.1.

Files

net/sourceforge/pmd/cpd/JavaTokenizer.java

Violation Line
Possible God class (WMC=68, ATFD=68, TCC=0.18095238095238095) 5318

net/sourceforge/pmd/lang/java/ast/ASTFieldDeclaration.java

Violation Line
Avoid unnecessary if..then..else statements when returning booleans 8789

net/sourceforge/pmd/lang/java/ast/DumpFacade.java

Violation Line
Possible God class (WMC=77, ATFD=23, TCC=0.16666666666666666) 5255

net/sourceforge/pmd/lang/java/ast/QualifiedName.java

Violation Line
Avoid declaring a variable if it is unreferenced before a possible exit point. 143
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 162

net/sourceforge/pmd/lang/java/dfa/StatementAndBraceFinder.java

Violation Line
Possible God class (WMC=86, ATFD=170, TCC=0.0) 5414

net/sourceforge/pmd/lang/java/oom/AbstractMetric.java

Violation Line
Avoid equality comparisons with Double.NaN 57
Avoid equality comparisons with Double.NaN 81

net/sourceforge/pmd/lang/java/oom/metrics/CycloMetric.java

Violation Line
Useless parentheses. 61

net/sourceforge/pmd/lang/java/oom/rule/CyclomaticComplexityRule.java

Violation Line
Do not add empty strings 101
Do not add empty strings 112

net/sourceforge/pmd/lang/java/oom/signature/FieldSigMask.java

Violation Line
Avoid unnecessary constructors - the compiler will generate these for you 1719

net/sourceforge/pmd/lang/java/rule/AbstractJavaRule.java

Violation Line
Possible God class (WMC=124, ATFD=7, TCC=0.0) 5530

net/sourceforge/pmd/lang/java/rule/basic/DoubleCheckedLockingRule.java

Violation Line
Possible God class (WMC=63, ATFD=29, TCC=0.0) 5274

net/sourceforge/pmd/lang/java/rule/codesize/StdCyclomaticComplexityRule.java

Violation Line
Avoid autogenerated methods to access private fields and methods of inner / outer classes 187
Avoid autogenerated methods to access private fields and methods of inner / outer classes 205
Avoid autogenerated methods to access private fields and methods of inner / outer classes 208
Avoid autogenerated methods to access private fields and methods of inner / outer classes 232
Avoid autogenerated methods to access private fields and methods of inner / outer classes 235
Avoid autogenerated methods to access private fields and methods of inner / outer classes 239
Avoid autogenerated methods to access private fields and methods of inner / outer classes 240

net/sourceforge/pmd/lang/java/rule/comments/AbstractCommentRule.java

Violation Line
Useless parentheses. 190191

net/sourceforge/pmd/lang/java/rule/comments/CommentContentRule.java

Violation Line
Perhaps 'wordsAreRegex' could be replaced by a local variable. 34

net/sourceforge/pmd/lang/java/rule/comments/CommentDefaultAccessModifierRule.java

Violation Line
Useless parentheses. 93

net/sourceforge/pmd/lang/java/rule/comments/CommentRequiredRule.java

Violation Line
Possible God class (WMC=48, ATFD=64, TCC=0.07142857142857142) 5272
Avoid unnecessary if..then..else statements when returning booleans 217220

net/sourceforge/pmd/lang/java/rule/coupling/LawOfDemeterRule.java

Violation Line
Possible God class (WMC=81, ATFD=56, TCC=0.043478260869565216) 5447
Avoid autogenerated methods to access private fields and methods of inner / outer classes 246
Avoid autogenerated methods to access private fields and methods of inner / outer classes 246
Avoid autogenerated methods to access private fields and methods of inner / outer classes 247
Avoid autogenerated methods to access private fields and methods of inner / outer classes 249
Avoid autogenerated methods to access private fields and methods of inner / outer classes 253
Avoid autogenerated methods to access private fields and methods of inner / outer classes 256

net/sourceforge/pmd/lang/java/rule/design/CloseResourceRule.java

Violation Line
Possible God class (WMC=76, ATFD=59, TCC=0.0) 5376

net/sourceforge/pmd/lang/java/rule/design/ConstructorCallsOverridableMethodRule.java

Violation Line
Possible God class (WMC=156, ATFD=99, TCC=0.012477718360071301) 51080
Avoid autogenerated methods to access private fields and methods of inner / outer classes 237
Avoid autogenerated methods to access private fields and methods of inner / outer classes 273
Avoid autogenerated methods to access private fields and methods of inner / outer classes 342
Avoid autogenerated methods to access private fields and methods of inner / outer classes 381
Avoid autogenerated methods to access private fields and methods of inner / outer classes 458
Avoid autogenerated methods to access private fields and methods of inner / outer classes 576
Avoid autogenerated methods to access private fields and methods of inner / outer classes 583
Avoid empty while statements 661662
Avoid empty while statements 667668

net/sourceforge/pmd/lang/java/rule/design/GodClassRule.java

Violation Line
Possible God class (WMC=54, ATFD=32, TCC=0.0) 5368

net/sourceforge/pmd/lang/java/rule/design/SingletonClassReturningNewInstanceRule.java

Violation Line
Avoid declaring a variable if it is unreferenced before a possible exit point. 25
Avoid declaring a variable if it is unreferenced before a possible exit point. 26
Avoid declaring a variable if it is unreferenced before a possible exit point. 27
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 65
Useless parentheses. 109
Useless parentheses. 109

net/sourceforge/pmd/lang/java/rule/design/UnnecessaryLocalBeforeReturnRule.java

Violation Line
Useless parentheses. 123
Useless parentheses. 125126

net/sourceforge/pmd/lang/java/rule/imports/DuplicateImportsRule.java

Violation Line
Avoid unnecessary if..then..else statements when returning booleans 8284

net/sourceforge/pmd/lang/java/rule/imports/UnnecessaryFullyQualifiedNameRule.java

Violation Line
Use equals() to compare object references. 144

net/sourceforge/pmd/lang/java/rule/junit/AbstractJUnitRule.java

Violation Line
Perhaps 'isJUnit4Class' could be replaced by a local variable. 34

net/sourceforge/pmd/lang/java/rule/junit/JUnitTestsShouldIncludeAssertRule.java

Violation Line
Possible God class (WMC=50, ATFD=35, TCC=0.0) 5191
String.indexOf(char) is faster than String.indexOf(String). 173

net/sourceforge/pmd/lang/java/rule/logging/InvalidSlf4jMessageFormatRule.java

Violation Line
No need to check for null before an instanceof 48
Avoid unnecessary if..then..else statements when returning booleans 103106
Avoid unnecessary if..then..else statements when returning booleans 112114

net/sourceforge/pmd/lang/java/rule/optimizations/UseStringBufferForStringAppendsRule.java

Violation Line
Use equals() to compare object references. 52

net/sourceforge/pmd/lang/java/rule/strings/ConsecutiveAppendsShouldReuseRule.java

Violation Line
Avoid unnecessary if..then..else statements when returning booleans 168170

net/sourceforge/pmd/lang/java/rule/strings/ConsecutiveLiteralAppendsRule.java

Violation Line
Possible God class (WMC=72, ATFD=48, TCC=0.01818181818181818) 5389

net/sourceforge/pmd/lang/java/rule/strings/InefficientStringBufferingRule.java

Violation Line
Avoid unnecessary if..then..else statements when returning booleans 124126

net/sourceforge/pmd/lang/java/rule/strings/InsufficientStringBufferDeclarationRule.java

Violation Line
Possible God class (WMC=82, ATFD=73, TCC=0.015151515151515152) 5396

net/sourceforge/pmd/lang/java/rule/unnecessary/UselessOverridingMethodRule.java

Violation Line
Possible God class (WMC=49, ATFD=24, TCC=0.047619047619047616) 5259

net/sourceforge/pmd/lang/java/symboltable/ClassScope.java

Violation Line
Possible God class (WMC=133, ATFD=142, TCC=0.012987012987012988) 5688

net/sourceforge/pmd/lang/java/symboltable/JavaNameOccurrence.java

Violation Line
Avoid unnecessary if..then..else statements when returning booleans 112114

net/sourceforge/pmd/lang/java/symboltable/TypeSet.java

Violation Line
Possible God class (WMC=61, ATFD=16, TCC=0.10606060606060606) 5551
Avoid autogenerated methods to access private fields and methods of inner / outer classes 255
Avoid autogenerated methods to access private fields and methods of inner / outer classes 260
Avoid autogenerated methods to access private fields and methods of inner / outer classes 316
Avoid autogenerated methods to access private fields and methods of inner / outer classes 328
Avoid autogenerated methods to access private fields and methods of inner / outer classes 366
Avoid autogenerated methods to access private fields and methods of inner / outer classes 368
Avoid autogenerated methods to access private fields and methods of inner / outer classes 385
Do not use the short type 408

net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java

Violation Line
Possible God class (WMC=223, ATFD=142, TCC=0.0) 51225

net/sourceforge/pmd/lang/java/typeresolution/rules/CloneMethodMustImplementCloneable.java

Violation Line
Use equals() to compare object references. 155
Avoid unnecessary if..then..else statements when returning booleans 167169

net/sourceforge/pmd/lang/java/typeresolution/typedefinition/JavaTypeDefinition.java

Violation Line
A class which only has private constructors should be final 17169

net/sourceforge/pmd/lang/java/typeresolution/visitors/PMDASMVisitor.java

Violation Line
Possible God class (WMC=87, ATFD=27, TCC=7.25689404934688E-4) 5475
Avoid autogenerated methods to access private fields and methods of inner / outer classes 203
Avoid autogenerated methods to access private fields and methods of inner / outer classes 204
Avoid autogenerated methods to access private fields and methods of inner / outer classes 226
Avoid autogenerated methods to access private fields and methods of inner / outer classes 232
Avoid autogenerated methods to access private fields and methods of inner / outer classes 247
Avoid autogenerated methods to access private fields and methods of inner / outer classes 314
Avoid autogenerated methods to access private fields and methods of inner / outer classes 319
Avoid autogenerated methods to access private fields and methods of inner / outer classes 346
Avoid autogenerated methods to access private fields and methods of inner / outer classes 347
Avoid autogenerated methods to access private fields and methods of inner / outer classes 351
Avoid autogenerated methods to access private fields and methods of inner / outer classes 352
Avoid autogenerated methods to access private fields and methods of inner / outer classes 358
Avoid autogenerated methods to access private fields and methods of inner / outer classes 360
Avoid autogenerated methods to access private fields and methods of inner / outer classes 366
Avoid autogenerated methods to access private fields and methods of inner / outer classes 367
Avoid autogenerated methods to access private fields and methods of inner / outer classes 372
Avoid autogenerated methods to access private fields and methods of inner / outer classes 373
Avoid autogenerated methods to access private fields and methods of inner / outer classes 386
Avoid autogenerated methods to access private fields and methods of inner / outer classes 388
Avoid autogenerated methods to access private fields and methods of inner / outer classes 394
Avoid autogenerated methods to access private fields and methods of inner / outer classes 399
Avoid autogenerated methods to access private fields and methods of inner / outer classes 444
Avoid autogenerated methods to access private fields and methods of inner / outer classes 457
Avoid autogenerated methods to access private fields and methods of inner / outer classes 462
Avoid autogenerated methods to access private fields and methods of inner / outer classes 463