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 63–66

com/helger/jcodemodel/EWildcardBoundMode.java

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

com/helger/jcodemodel/JCodeModel.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 120–123
EmptyCatchBlock Avoid empty catch blocks 838–841
EmptyCatchBlock Avoid empty catch blocks 848–851
EmptyCatchBlock Avoid empty catch blocks 898–901

com/helger/jcodemodel/JDefinedClass.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 581–582

com/helger/jcodemodel/JFieldVar.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 136–140

com/helger/jcodemodel/JReferencedClass.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 198–202

com/helger/jcodemodel/TypedAnnotationWriter.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 154–155

com/helger/jcodemodel/fmt/JSerializedObject.java

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

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 92–97

com/helger/jcodemodel/meta/ErrorTypePolicy.java

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

com/helger/jcodemodel/util/JCValueEnforcer.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 111–112
CollapsibleIfStatements These nested if statements could be combined 143–144
CollapsibleIfStatements These nested if statements could be combined 190–195
CollapsibleIfStatements These nested if statements could be combined 214–215
CollapsibleIfStatements These nested if statements could be combined 235–236
CollapsibleIfStatements These nested if statements could be combined 268–269
CollapsibleIfStatements These nested if statements could be combined 307–308
CollapsibleIfStatements These nested if statements could be combined 347–348
CollapsibleIfStatements These nested if statements could be combined 383–384
CollapsibleIfStatements These nested if statements could be combined 419–420
CollapsibleIfStatements These nested if statements could be combined 455–456
CollapsibleIfStatements These nested if statements could be combined 491–492
CollapsibleIfStatements These nested if statements could be combined 527–528
CollapsibleIfStatements These nested if statements could be combined 563–564
CollapsibleIfStatements These nested if statements could be combined 599–600
CollapsibleIfStatements These nested if statements could be combined 635–636
CollapsibleIfStatements These nested if statements could be combined 677–678
CollapsibleIfStatements These nested if statements could be combined 719–720
CollapsibleIfStatements These nested if statements could be combined 759–760
CollapsibleIfStatements These nested if statements could be combined 804–813
CollapsibleIfStatements These nested if statements could be combined 858–871
CollapsibleIfStatements These nested if statements could be combined 915–924
CollapsibleIfStatements These nested if statements could be combined 1226–1231
CollapsibleIfStatements These nested if statements could be combined 1278–1284
CollapsibleIfStatements These nested if statements could be combined 1332–1338
CollapsibleIfStatements These nested if statements could be combined 1386–1392
CollapsibleIfStatements These nested if statements could be combined 1432–1438
CollapsibleIfStatements These nested if statements could be combined 1477–1483
CollapsibleIfStatements These nested if statements could be combined 1522–1528
CollapsibleIfStatements These nested if statements could be combined 1539–1543
CollapsibleIfStatements These nested if statements could be combined 1555–1559
CollapsibleIfStatements These nested if statements could be combined 1571–1575
CollapsibleIfStatements These nested if statements could be combined 1587–1591
CollapsibleIfStatements These nested if statements could be combined 1603–1607
CollapsibleIfStatements These nested if statements could be combined 1620–1624
CollapsibleIfStatements These nested if statements could be combined 1637–1641
CollapsibleIfStatements These nested if statements could be combined 1653–1657
CollapsibleIfStatements These nested if statements could be combined 1669–1673
CollapsibleIfStatements These nested if statements could be combined 1685–1689
CollapsibleIfStatements These nested if statements could be combined 1701–1705
CollapsibleIfStatements These nested if statements could be combined 1717–1721
CollapsibleIfStatements These nested if statements could be combined 1734–1738
CollapsibleIfStatements These nested if statements could be combined 1751–1755
CollapsibleIfStatements These nested if statements could be combined 1767–1771
CollapsibleIfStatements These nested if statements could be combined 1783–1787
CollapsibleIfStatements These nested if statements could be combined 1799–1803
CollapsibleIfStatements These nested if statements could be combined 1815–1819
CollapsibleIfStatements These nested if statements could be combined 1831–1835
CollapsibleIfStatements These nested if statements could be combined 1848–1852
CollapsibleIfStatements These nested if statements could be combined 1865–1869
CollapsibleIfStatements These nested if statements could be combined 1881–1885
CollapsibleIfStatements These nested if statements could be combined 1897–1901
CollapsibleIfStatements These nested if statements could be combined 1913–1917
CollapsibleIfStatements These nested if statements could be combined 1929–1933
CollapsibleIfStatements These nested if statements could be combined 1945–1949
CollapsibleIfStatements These nested if statements could be combined 1962–1966
CollapsibleIfStatements These nested if statements could be combined 1979–1983
CollapsibleIfStatements These nested if statements could be combined 2029–2037
CollapsibleIfStatements These nested if statements could be combined 2083–2091
CollapsibleIfStatements These nested if statements could be combined 2137–2145
CollapsibleIfStatements These nested if statements could be combined 2191–2199
CollapsibleIfStatements These nested if statements could be combined 2245–2253
CollapsibleIfStatements These nested if statements could be combined 2302–2310
CollapsibleIfStatements These nested if statements could be combined 2359–2367
CollapsibleIfStatements These nested if statements could be combined 2413–2421
CollapsibleIfStatements These nested if statements could be combined 2467–2475
CollapsibleIfStatements These nested if statements could be combined 2521–2529
CollapsibleIfStatements These nested if statements could be combined 2575–2583
CollapsibleIfStatements These nested if statements could be combined 2629–2637
CollapsibleIfStatements These nested if statements could be combined 2686–2694
CollapsibleIfStatements These nested if statements could be combined 2743–2751
CollapsibleIfStatements These nested if statements could be combined 2762–2769

com/helger/jcodemodel/writer/FileCodeWriter.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 133–134
CollapsibleIfStatements These nested if statements could be combined 139–140

com/helger/jcodemodel/writer/JCMWriter.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 90–93
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 213–232
CollapsibleIfStatements These nested if statements could be combined 759–760
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 63–66

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 63–66

com/helger/jcodemodel/EWildcardBoundMode.java

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

com/helger/jcodemodel/JCodeModel.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 120–123
EmptyCatchBlock Avoid empty catch blocks 3 838–841
EmptyCatchBlock Avoid empty catch blocks 3 848–851
EmptyCatchBlock Avoid empty catch blocks 3 898–901

com/helger/jcodemodel/JDefinedClass.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 581–582

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 136–140

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 198–202

com/helger/jcodemodel/TypedAnnotationWriter.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 154–155

com/helger/jcodemodel/fmt/JSerializedObject.java

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

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 92–97

com/helger/jcodemodel/meta/ErrorTypePolicy.java

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

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 111–112
CollapsibleIfStatements These nested if statements could be combined 3 143–144
CollapsibleIfStatements These nested if statements could be combined 3 190–195
CollapsibleIfStatements These nested if statements could be combined 3 214–215
CollapsibleIfStatements These nested if statements could be combined 3 235–236
CollapsibleIfStatements These nested if statements could be combined 3 268–269
CollapsibleIfStatements These nested if statements could be combined 3 307–308
CollapsibleIfStatements These nested if statements could be combined 3 347–348
CollapsibleIfStatements These nested if statements could be combined 3 383–384
CollapsibleIfStatements These nested if statements could be combined 3 419–420
CollapsibleIfStatements These nested if statements could be combined 3 455–456
CollapsibleIfStatements These nested if statements could be combined 3 491–492
CollapsibleIfStatements These nested if statements could be combined 3 527–528
CollapsibleIfStatements These nested if statements could be combined 3 563–564
CollapsibleIfStatements These nested if statements could be combined 3 599–600
CollapsibleIfStatements These nested if statements could be combined 3 635–636
CollapsibleIfStatements These nested if statements could be combined 3 677–678
CollapsibleIfStatements These nested if statements could be combined 3 719–720
CollapsibleIfStatements These nested if statements could be combined 3 759–760
CollapsibleIfStatements These nested if statements could be combined 3 804–813
CollapsibleIfStatements These nested if statements could be combined 3 858–871
CollapsibleIfStatements These nested if statements could be combined 3 915–924
CollapsibleIfStatements These nested if statements could be combined 3 1226–1231
CollapsibleIfStatements These nested if statements could be combined 3 1278–1284
CollapsibleIfStatements These nested if statements could be combined 3 1332–1338
CollapsibleIfStatements These nested if statements could be combined 3 1386–1392
CollapsibleIfStatements These nested if statements could be combined 3 1432–1438
CollapsibleIfStatements These nested if statements could be combined 3 1477–1483
CollapsibleIfStatements These nested if statements could be combined 3 1522–1528
CollapsibleIfStatements These nested if statements could be combined 3 1539–1543
CollapsibleIfStatements These nested if statements could be combined 3 1555–1559
CollapsibleIfStatements These nested if statements could be combined 3 1571–1575
CollapsibleIfStatements These nested if statements could be combined 3 1587–1591
CollapsibleIfStatements These nested if statements could be combined 3 1603–1607
CollapsibleIfStatements These nested if statements could be combined 3 1620–1624
CollapsibleIfStatements These nested if statements could be combined 3 1637–1641
CollapsibleIfStatements These nested if statements could be combined 3 1653–1657
CollapsibleIfStatements These nested if statements could be combined 3 1669–1673
CollapsibleIfStatements These nested if statements could be combined 3 1685–1689
CollapsibleIfStatements These nested if statements could be combined 3 1701–1705
CollapsibleIfStatements These nested if statements could be combined 3 1717–1721
CollapsibleIfStatements These nested if statements could be combined 3 1734–1738
CollapsibleIfStatements These nested if statements could be combined 3 1751–1755
CollapsibleIfStatements These nested if statements could be combined 3 1767–1771
CollapsibleIfStatements These nested if statements could be combined 3 1783–1787
CollapsibleIfStatements These nested if statements could be combined 3 1799–1803
CollapsibleIfStatements These nested if statements could be combined 3 1815–1819
CollapsibleIfStatements These nested if statements could be combined 3 1831–1835
CollapsibleIfStatements These nested if statements could be combined 3 1848–1852
CollapsibleIfStatements These nested if statements could be combined 3 1865–1869
CollapsibleIfStatements These nested if statements could be combined 3 1881–1885
CollapsibleIfStatements These nested if statements could be combined 3 1897–1901
CollapsibleIfStatements These nested if statements could be combined 3 1913–1917
CollapsibleIfStatements These nested if statements could be combined 3 1929–1933
CollapsibleIfStatements These nested if statements could be combined 3 1945–1949
CollapsibleIfStatements These nested if statements could be combined 3 1962–1966
CollapsibleIfStatements These nested if statements could be combined 3 1979–1983
CollapsibleIfStatements These nested if statements could be combined 3 2029–2037
CollapsibleIfStatements These nested if statements could be combined 3 2083–2091
CollapsibleIfStatements These nested if statements could be combined 3 2137–2145
CollapsibleIfStatements These nested if statements could be combined 3 2191–2199
CollapsibleIfStatements These nested if statements could be combined 3 2245–2253
CollapsibleIfStatements These nested if statements could be combined 3 2302–2310
CollapsibleIfStatements These nested if statements could be combined 3 2359–2367
CollapsibleIfStatements These nested if statements could be combined 3 2413–2421
CollapsibleIfStatements These nested if statements could be combined 3 2467–2475
CollapsibleIfStatements These nested if statements could be combined 3 2521–2529
CollapsibleIfStatements These nested if statements could be combined 3 2575–2583
CollapsibleIfStatements These nested if statements could be combined 3 2629–2637
CollapsibleIfStatements These nested if statements could be combined 3 2686–2694
CollapsibleIfStatements These nested if statements could be combined 3 2743–2751
CollapsibleIfStatements These nested if statements could be combined 3 2762–2769

com/helger/jcodemodel/writer/FileCodeWriter.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 133–134
CollapsibleIfStatements These nested if statements could be combined 3 139–140

com/helger/jcodemodel/writer/JCMWriter.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 90–93
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 213–232
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 759–760
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 63–66