PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 3

com/helger/jcodemodel/EClassType.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'EClassType(String)': enum constructors are implicitly private 6366

com/helger/jcodemodel/EWildcardBoundMode.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'EWildcardBoundMode(String)': enum constructors are implicitly private 5558

com/helger/jcodemodel/JCodeModel.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 120123
EmptyCatchBlock Avoid empty catch blocks 838841
EmptyCatchBlock Avoid empty catch blocks 848851
EmptyCatchBlock Avoid empty catch blocks 898901

com/helger/jcodemodel/JDefinedClass.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 581582

com/helger/jcodemodel/JFieldVar.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 136140

com/helger/jcodemodel/JReferencedClass.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 198202

com/helger/jcodemodel/TypedAnnotationWriter.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 154155

com/helger/jcodemodel/fmt/JSerializedObject.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'oos': resource specifications are implicitly final 7784

com/helger/jcodemodel/fmt/JStaticFile.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'dis': resource specifications are implicitly final 101

com/helger/jcodemodel/fmt/JStaticJavaFile.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'is': resource specifications are implicitly final 138
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'r': resource specifications are implicitly final 139
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'w': resource specifications are implicitly final 140

com/helger/jcodemodel/fmt/JTextFile.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'w': resource specifications are implicitly final 9297

com/helger/jcodemodel/meta/ErrorTypePolicy.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'static' on enum 'EAction': nested enums are implicitly static 7377

com/helger/jcodemodel/util/JCValueEnforcer.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 111112
CollapsibleIfStatements These nested if statements could be combined 143144
CollapsibleIfStatements These nested if statements could be combined 190195
CollapsibleIfStatements These nested if statements could be combined 214215
CollapsibleIfStatements These nested if statements could be combined 235236
CollapsibleIfStatements These nested if statements could be combined 268269
CollapsibleIfStatements These nested if statements could be combined 307308
CollapsibleIfStatements These nested if statements could be combined 347348
CollapsibleIfStatements These nested if statements could be combined 383384
CollapsibleIfStatements These nested if statements could be combined 419420
CollapsibleIfStatements These nested if statements could be combined 455456
CollapsibleIfStatements These nested if statements could be combined 491492
CollapsibleIfStatements These nested if statements could be combined 527528
CollapsibleIfStatements These nested if statements could be combined 563564
CollapsibleIfStatements These nested if statements could be combined 599600
CollapsibleIfStatements These nested if statements could be combined 635636
CollapsibleIfStatements These nested if statements could be combined 677678
CollapsibleIfStatements These nested if statements could be combined 719720
CollapsibleIfStatements These nested if statements could be combined 759760
CollapsibleIfStatements These nested if statements could be combined 804813
CollapsibleIfStatements These nested if statements could be combined 858871
CollapsibleIfStatements These nested if statements could be combined 915924
CollapsibleIfStatements These nested if statements could be combined 12261231
CollapsibleIfStatements These nested if statements could be combined 12781284
CollapsibleIfStatements These nested if statements could be combined 13321338
CollapsibleIfStatements These nested if statements could be combined 13861392
CollapsibleIfStatements These nested if statements could be combined 14321438
CollapsibleIfStatements These nested if statements could be combined 14771483
CollapsibleIfStatements These nested if statements could be combined 15221528
CollapsibleIfStatements These nested if statements could be combined 15391543
CollapsibleIfStatements These nested if statements could be combined 15551559
CollapsibleIfStatements These nested if statements could be combined 15711575
CollapsibleIfStatements These nested if statements could be combined 15871591
CollapsibleIfStatements These nested if statements could be combined 16031607
CollapsibleIfStatements These nested if statements could be combined 16201624
CollapsibleIfStatements These nested if statements could be combined 16371641
CollapsibleIfStatements These nested if statements could be combined 16531657
CollapsibleIfStatements These nested if statements could be combined 16691673
CollapsibleIfStatements These nested if statements could be combined 16851689
CollapsibleIfStatements These nested if statements could be combined 17011705
CollapsibleIfStatements These nested if statements could be combined 17171721
CollapsibleIfStatements These nested if statements could be combined 17341738
CollapsibleIfStatements These nested if statements could be combined 17511755
CollapsibleIfStatements These nested if statements could be combined 17671771
CollapsibleIfStatements These nested if statements could be combined 17831787
CollapsibleIfStatements These nested if statements could be combined 17991803
CollapsibleIfStatements These nested if statements could be combined 18151819
CollapsibleIfStatements These nested if statements could be combined 18311835
CollapsibleIfStatements These nested if statements could be combined 18481852
CollapsibleIfStatements These nested if statements could be combined 18651869
CollapsibleIfStatements These nested if statements could be combined 18811885
CollapsibleIfStatements These nested if statements could be combined 18971901
CollapsibleIfStatements These nested if statements could be combined 19131917
CollapsibleIfStatements These nested if statements could be combined 19291933
CollapsibleIfStatements These nested if statements could be combined 19451949
CollapsibleIfStatements These nested if statements could be combined 19621966
CollapsibleIfStatements These nested if statements could be combined 19791983
CollapsibleIfStatements These nested if statements could be combined 20292037
CollapsibleIfStatements These nested if statements could be combined 20832091
CollapsibleIfStatements These nested if statements could be combined 21372145
CollapsibleIfStatements These nested if statements could be combined 21912199
CollapsibleIfStatements These nested if statements could be combined 22452253
CollapsibleIfStatements These nested if statements could be combined 23022310
CollapsibleIfStatements These nested if statements could be combined 23592367
CollapsibleIfStatements These nested if statements could be combined 24132421
CollapsibleIfStatements These nested if statements could be combined 24672475
CollapsibleIfStatements These nested if statements could be combined 25212529
CollapsibleIfStatements These nested if statements could be combined 25752583
CollapsibleIfStatements These nested if statements could be combined 26292637
CollapsibleIfStatements These nested if statements could be combined 26862694
CollapsibleIfStatements These nested if statements could be combined 27432751
CollapsibleIfStatements These nested if statements could be combined 27622769

com/helger/jcodemodel/writer/FileCodeWriter.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 133134
CollapsibleIfStatements These nested if statements could be combined 139140

com/helger/jcodemodel/writer/JCMWriter.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 9093
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'f': resource specifications are implicitly final 322
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'f': resource specifications are implicitly final 333
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'os': resource specifications are implicitly final 350
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'bos': resource specifications are implicitly final 351

com/helger/jcodemodel/writer/JFormatter.java

Rule Violation Line
UnconditionalIfStatement Do not use if statements that are always true or always false 149
UnnecessaryModifier Unnecessary modifier 'static' on enum 'EMode': nested enums are implicitly static 213232
CollapsibleIfStatements These nested if statements could be combined 759760
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'aFormatter': resource specifications are implicitly final 1006

com/helger/jcodemodel/writer/ProgressCodeWriter.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'static' on interface 'IProgressTracker': member interfaces are implicitly static 6366

Priority 4

com/helger/jcodemodel/JExpr.java

Rule Violation Line
UselessParentheses Useless parentheses. 449
UselessParentheses Useless parentheses. 449

com/helger/jcodemodel/JMethod.java

Rule Violation Line
UselessParentheses Useless parentheses. 599

com/helger/jcodemodel/JOp.java

Rule Violation Line
UselessParentheses Useless parentheses. 67
UselessParentheses Useless parentheses. 67

com/helger/jcodemodel/util/JCEqualsHelper.java

Rule Violation Line
UselessParentheses Useless parentheses. 89
UselessParentheses Useless parentheses. 89
UselessParentheses Useless parentheses. 106
UselessParentheses Useless parentheses. 106

com/helger/jcodemodel/writer/JFormatter.java

Rule Violation Line
UselessParentheses Useless parentheses. 458
UselessParentheses Useless parentheses. 458
UselessParentheses Useless parentheses. 472
UselessParentheses Useless parentheses. 472
UselessParentheses Useless parentheses. 474
UselessParentheses Useless parentheses. 474
UselessParentheses Useless parentheses. 480
UselessParentheses Useless parentheses. 480
UselessParentheses Useless parentheses. 480
UselessParentheses Useless parentheses. 480

Files

com/helger/jcodemodel/EClassType.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'EClassType(String)': enum constructors are implicitly private 3 6366

com/helger/jcodemodel/EWildcardBoundMode.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'EWildcardBoundMode(String)': enum constructors are implicitly private 3 5558

com/helger/jcodemodel/JCodeModel.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 120123
EmptyCatchBlock Avoid empty catch blocks 3 838841
EmptyCatchBlock Avoid empty catch blocks 3 848851
EmptyCatchBlock Avoid empty catch blocks 3 898901

com/helger/jcodemodel/JDefinedClass.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 581582

com/helger/jcodemodel/JExpr.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 449
UselessParentheses Useless parentheses. 4 449

com/helger/jcodemodel/JFieldVar.java

Rule Violation Priority Line
UselessOverridingMethod Overriding method merely calls super 3 136140

com/helger/jcodemodel/JMethod.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 599

com/helger/jcodemodel/JOp.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 67
UselessParentheses Useless parentheses. 4 67

com/helger/jcodemodel/JReferencedClass.java

Rule Violation Priority Line
UselessOverridingMethod Overriding method merely calls super 3 198202

com/helger/jcodemodel/TypedAnnotationWriter.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 154155

com/helger/jcodemodel/fmt/JSerializedObject.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'oos': resource specifications are implicitly final 3 7784

com/helger/jcodemodel/fmt/JStaticFile.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'dis': resource specifications are implicitly final 3 101

com/helger/jcodemodel/fmt/JStaticJavaFile.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'is': resource specifications are implicitly final 3 138
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'r': resource specifications are implicitly final 3 139
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'w': resource specifications are implicitly final 3 140

com/helger/jcodemodel/fmt/JTextFile.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'w': resource specifications are implicitly final 3 9297

com/helger/jcodemodel/meta/ErrorTypePolicy.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'static' on enum 'EAction': nested enums are implicitly static 3 7377

com/helger/jcodemodel/util/JCEqualsHelper.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 89
UselessParentheses Useless parentheses. 4 89
UselessParentheses Useless parentheses. 4 106
UselessParentheses Useless parentheses. 4 106

com/helger/jcodemodel/util/JCValueEnforcer.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 111112
CollapsibleIfStatements These nested if statements could be combined 3 143144
CollapsibleIfStatements These nested if statements could be combined 3 190195
CollapsibleIfStatements These nested if statements could be combined 3 214215
CollapsibleIfStatements These nested if statements could be combined 3 235236
CollapsibleIfStatements These nested if statements could be combined 3 268269
CollapsibleIfStatements These nested if statements could be combined 3 307308
CollapsibleIfStatements These nested if statements could be combined 3 347348
CollapsibleIfStatements These nested if statements could be combined 3 383384
CollapsibleIfStatements These nested if statements could be combined 3 419420
CollapsibleIfStatements These nested if statements could be combined 3 455456
CollapsibleIfStatements These nested if statements could be combined 3 491492
CollapsibleIfStatements These nested if statements could be combined 3 527528
CollapsibleIfStatements These nested if statements could be combined 3 563564
CollapsibleIfStatements These nested if statements could be combined 3 599600
CollapsibleIfStatements These nested if statements could be combined 3 635636
CollapsibleIfStatements These nested if statements could be combined 3 677678
CollapsibleIfStatements These nested if statements could be combined 3 719720
CollapsibleIfStatements These nested if statements could be combined 3 759760
CollapsibleIfStatements These nested if statements could be combined 3 804813
CollapsibleIfStatements These nested if statements could be combined 3 858871
CollapsibleIfStatements These nested if statements could be combined 3 915924
CollapsibleIfStatements These nested if statements could be combined 3 12261231
CollapsibleIfStatements These nested if statements could be combined 3 12781284
CollapsibleIfStatements These nested if statements could be combined 3 13321338
CollapsibleIfStatements These nested if statements could be combined 3 13861392
CollapsibleIfStatements These nested if statements could be combined 3 14321438
CollapsibleIfStatements These nested if statements could be combined 3 14771483
CollapsibleIfStatements These nested if statements could be combined 3 15221528
CollapsibleIfStatements These nested if statements could be combined 3 15391543
CollapsibleIfStatements These nested if statements could be combined 3 15551559
CollapsibleIfStatements These nested if statements could be combined 3 15711575
CollapsibleIfStatements These nested if statements could be combined 3 15871591
CollapsibleIfStatements These nested if statements could be combined 3 16031607
CollapsibleIfStatements These nested if statements could be combined 3 16201624
CollapsibleIfStatements These nested if statements could be combined 3 16371641
CollapsibleIfStatements These nested if statements could be combined 3 16531657
CollapsibleIfStatements These nested if statements could be combined 3 16691673
CollapsibleIfStatements These nested if statements could be combined 3 16851689
CollapsibleIfStatements These nested if statements could be combined 3 17011705
CollapsibleIfStatements These nested if statements could be combined 3 17171721
CollapsibleIfStatements These nested if statements could be combined 3 17341738
CollapsibleIfStatements These nested if statements could be combined 3 17511755
CollapsibleIfStatements These nested if statements could be combined 3 17671771
CollapsibleIfStatements These nested if statements could be combined 3 17831787
CollapsibleIfStatements These nested if statements could be combined 3 17991803
CollapsibleIfStatements These nested if statements could be combined 3 18151819
CollapsibleIfStatements These nested if statements could be combined 3 18311835
CollapsibleIfStatements These nested if statements could be combined 3 18481852
CollapsibleIfStatements These nested if statements could be combined 3 18651869
CollapsibleIfStatements These nested if statements could be combined 3 18811885
CollapsibleIfStatements These nested if statements could be combined 3 18971901
CollapsibleIfStatements These nested if statements could be combined 3 19131917
CollapsibleIfStatements These nested if statements could be combined 3 19291933
CollapsibleIfStatements These nested if statements could be combined 3 19451949
CollapsibleIfStatements These nested if statements could be combined 3 19621966
CollapsibleIfStatements These nested if statements could be combined 3 19791983
CollapsibleIfStatements These nested if statements could be combined 3 20292037
CollapsibleIfStatements These nested if statements could be combined 3 20832091
CollapsibleIfStatements These nested if statements could be combined 3 21372145
CollapsibleIfStatements These nested if statements could be combined 3 21912199
CollapsibleIfStatements These nested if statements could be combined 3 22452253
CollapsibleIfStatements These nested if statements could be combined 3 23022310
CollapsibleIfStatements These nested if statements could be combined 3 23592367
CollapsibleIfStatements These nested if statements could be combined 3 24132421
CollapsibleIfStatements These nested if statements could be combined 3 24672475
CollapsibleIfStatements These nested if statements could be combined 3 25212529
CollapsibleIfStatements These nested if statements could be combined 3 25752583
CollapsibleIfStatements These nested if statements could be combined 3 26292637
CollapsibleIfStatements These nested if statements could be combined 3 26862694
CollapsibleIfStatements These nested if statements could be combined 3 27432751
CollapsibleIfStatements These nested if statements could be combined 3 27622769

com/helger/jcodemodel/writer/FileCodeWriter.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 133134
CollapsibleIfStatements These nested if statements could be combined 3 139140

com/helger/jcodemodel/writer/JCMWriter.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 9093
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'f': resource specifications are implicitly final 3 322
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'f': resource specifications are implicitly final 3 333
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'os': resource specifications are implicitly final 3 350
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'bos': resource specifications are implicitly final 3 351

com/helger/jcodemodel/writer/JFormatter.java

Rule Violation Priority Line
UnconditionalIfStatement Do not use if statements that are always true or always false 3 149
UnnecessaryModifier Unnecessary modifier 'static' on enum 'EMode': nested enums are implicitly static 3 213232
UselessParentheses Useless parentheses. 4 458
UselessParentheses Useless parentheses. 4 458
UselessParentheses Useless parentheses. 4 472
UselessParentheses Useless parentheses. 4 472
UselessParentheses Useless parentheses. 4 474
UselessParentheses Useless parentheses. 4 474
UselessParentheses Useless parentheses. 4 480
UselessParentheses Useless parentheses. 4 480
UselessParentheses Useless parentheses. 4 480
UselessParentheses Useless parentheses. 4 480
CollapsibleIfStatements These nested if statements could be combined 3 759760
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'aFormatter': resource specifications are implicitly final 3 1006

com/helger/jcodemodel/writer/ProgressCodeWriter.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'static' on interface 'IProgressTracker': member interfaces are implicitly static 3 6366