PMD Results

The following document contains the results of PMD 7.0.0.

Violations By Priority

Priority 3

DJUTILS sampling / output data storage - org/djutils/data/xml/XmlData.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 342345
CollapsibleIfStatements This if statement could be combined with its parent 377380

DJUTILS - Drawing and animation primitives - org/djutils/draw/line/Clothoid.java

Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'k'. 638
UnusedLocalVariable Avoid unused local variables such as 'dk'. 639
UnusedLocalVariable Avoid unused local variables such as 'k_1'. 725
UnusedLocalVariable Avoid unused local variables such as 'dk_1'. 726
UnusedLocalVariable Avoid unused local variables such as 'l_1'. 727
UnusedLocalVariable Avoid unused local variables such as 'k_2'. 728
UnusedLocalVariable Avoid unused local variables such as 'dk_2'. 729
UnusedLocalVariable Avoid unused local variables such as 'l_2'. 730
UnusedPrivateMethod Avoid unused private methods such as 'kappa(double, double)'. 917
UnusedPrivateMethod Avoid unused private methods such as 'theta_guess(double, double)'. 937
UnusedLocalVariable Avoid unused local variables such as 'ok'. 952

DJUTILS - Drawing and animation primitives - org/djutils/draw/line/ConvexHull.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 215218

DJUTILS - Drawing and animation primitives - org/djutils/draw/line/PolyLine3d.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 621624

DJUTILS serialization of data structures - org/djutils/serialization/util/SerialDataDumper.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 6467

DJUTILS statistical and data storage utilities - org/djutils/stats/summarizers/event/EventBasedWeightedTally.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 138

Priority 4

DJUTILS CLI utilities - org/djutils/cli/CliUtil.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'CliUtil': 'makeOverrideKeyProperty' is already in scope 143
UnnecessaryFullyQualifiedName Unnecessary qualifier 'CliUtil': 'overrideMap' is already in scope because it is declared in an enclosing type 144
UnnecessaryFullyQualifiedName Unnecessary qualifier 'CliUtil': 'overrideMap' is already in scope because it is declared in an enclosing type 146

DJUTILS - Drawing and animation primitives - org/djutils/draw/Drawable.java

Rule Violation Line
UnnecessaryImport Unused import 'java.lang.reflect.Array' 4
UnnecessaryImport Unused import 'org.djutils.exceptions.Throw' 10

DJUTILS - Drawing and animation primitives - org/djutils/draw/line/Bezier.java

Rule Violation Line
UselessParentheses Useless parentheses. 648
UselessParentheses Useless parentheses. 816
UselessParentheses Useless parentheses. 821

DJUTILS - Drawing and animation primitives - org/djutils/draw/line/Clothoid.java

Rule Violation Line
UselessParentheses Useless parentheses. 155
UselessParentheses Useless parentheses. 194
UselessParentheses Useless parentheses. 219
UselessParentheses Useless parentheses. 277
UselessParentheses Useless parentheses. 307
UselessParentheses Useless parentheses. 332
UselessParentheses Useless parentheses. 367
UselessParentheses Useless parentheses. 420
UselessParentheses Useless parentheses. 444
UselessParentheses Useless parentheses. 444
UselessParentheses Useless parentheses. 445
UselessParentheses Useless parentheses. 445
UselessParentheses Useless parentheses. 505
UselessParentheses Useless parentheses. 506
UselessParentheses Useless parentheses. 545
UselessParentheses Useless parentheses. 546
UselessParentheses Useless parentheses. 926
UselessParentheses Useless parentheses. 949
UselessParentheses Useless parentheses. 951

DJUTILS - Drawing and animation primitives - org/djutils/draw/line/PolyLine2d.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine2d': 'cleanPoints' is already in scope 305
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine2d': 'cleanPoints' is already in scope 317

DJUTILS - Drawing and animation primitives - org/djutils/draw/line/PolyLine3d.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine3d': 'cleanPoints' is already in scope 276
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine3d': 'cleanPoints' is already in scope 288

DJUTILS - Drawing and animation primitives - org/djutils/draw/line/Polygon2d.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine2d': 'makeArray' is already in scope 81
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine2d': 'makeArray' is already in scope 81
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine2d': 'cleanPoints' is already in scope 190
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine2d': 'cleanPoints' is already in scope 202

DJUTILS - Drawing and animation primitives - org/djutils/draw/line/Polygon3d.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine3d': 'makeArray' is already in scope 99
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine3d': 'makeArray' is already in scope 100
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine3d': 'makeArray' is already in scope 100
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine3d': 'cleanPoints' is already in scope 209
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine3d': 'cleanPoints' is already in scope 221

Expression evaluator - org/djutils/eval/Eval.java

Rule Violation Line
UselessParentheses Useless parentheses. 248
UselessParentheses Useless parentheses. 379
UselessParentheses Useless parentheses. 547
UselessParentheses Useless parentheses. 554
UselessParentheses Useless parentheses. 570
UselessParentheses Useless parentheses. 577
UselessParentheses Useless parentheses. 630
UselessParentheses Useless parentheses. 1198
UselessParentheses Useless parentheses. 1233
UselessParentheses Useless parentheses. 1256

DJUTILS serialization of data structures - org/djutils/serialization/EndianUtil.java

Rule Violation Line
UselessParentheses Useless parentheses. 85
UselessParentheses Useless parentheses. 89
UselessParentheses Useless parentheses. 103104
UselessParentheses Useless parentheses. 104
UselessParentheses Useless parentheses. 108109
UselessParentheses Useless parentheses. 109
UselessParentheses Useless parentheses. 123126
UselessParentheses Useless parentheses. 126
UselessParentheses Useless parentheses. 130133
UselessParentheses Useless parentheses. 133
UselessParentheses Useless parentheses. 227
UselessParentheses Useless parentheses. 231

DJUTILS statistical and data storage utilities - org/djutils/stats/DistNormalTable.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 46
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 52
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 78
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 81
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 82
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 85
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 98
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 99
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 100

DJUTILS statistical and data storage utilities - org/djutils/stats/summarizers/Tally.java

Rule Violation Line
UselessParentheses Useless parentheses. 313
UselessParentheses Useless parentheses. 347
UselessParentheses Useless parentheses. 366

DJUTILS statistical and data storage utilities - org/djutils/stats/summarizers/quantileaccumulator/FixedBinsAccumulator.java

Rule Violation Line
UselessParentheses Useless parentheses. 174

Files

DJUTILS CLI utilities - org/djutils/cli/CliUtil.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'CliUtil': 'makeOverrideKeyProperty' is already in scope 4 143
UnnecessaryFullyQualifiedName Unnecessary qualifier 'CliUtil': 'overrideMap' is already in scope because it is declared in an enclosing type 4 144
UnnecessaryFullyQualifiedName Unnecessary qualifier 'CliUtil': 'overrideMap' is already in scope because it is declared in an enclosing type 4 146

DJUTILS sampling / output data storage - org/djutils/data/xml/XmlData.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 342345
CollapsibleIfStatements This if statement could be combined with its parent 3 377380

DJUTILS - Drawing and animation primitives - org/djutils/draw/Drawable.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.lang.reflect.Array' 4 4
UnnecessaryImport Unused import 'org.djutils.exceptions.Throw' 4 10

DJUTILS - Drawing and animation primitives - org/djutils/draw/line/Bezier.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 648
UselessParentheses Useless parentheses. 4 816
UselessParentheses Useless parentheses. 4 821

DJUTILS - Drawing and animation primitives - org/djutils/draw/line/Clothoid.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 155
UselessParentheses Useless parentheses. 4 194
UselessParentheses Useless parentheses. 4 219
UselessParentheses Useless parentheses. 4 277
UselessParentheses Useless parentheses. 4 307
UselessParentheses Useless parentheses. 4 332
UselessParentheses Useless parentheses. 4 367
UselessParentheses Useless parentheses. 4 420
UselessParentheses Useless parentheses. 4 444
UselessParentheses Useless parentheses. 4 444
UselessParentheses Useless parentheses. 4 445
UselessParentheses Useless parentheses. 4 445
UselessParentheses Useless parentheses. 4 505
UselessParentheses Useless parentheses. 4 506
UselessParentheses Useless parentheses. 4 545
UselessParentheses Useless parentheses. 4 546
UnusedLocalVariable Avoid unused local variables such as 'k'. 3 638
UnusedLocalVariable Avoid unused local variables such as 'dk'. 3 639
UnusedLocalVariable Avoid unused local variables such as 'k_1'. 3 725
UnusedLocalVariable Avoid unused local variables such as 'dk_1'. 3 726
UnusedLocalVariable Avoid unused local variables such as 'l_1'. 3 727
UnusedLocalVariable Avoid unused local variables such as 'k_2'. 3 728
UnusedLocalVariable Avoid unused local variables such as 'dk_2'. 3 729
UnusedLocalVariable Avoid unused local variables such as 'l_2'. 3 730
UnusedPrivateMethod Avoid unused private methods such as 'kappa(double, double)'. 3 917
UselessParentheses Useless parentheses. 4 926
UnusedPrivateMethod Avoid unused private methods such as 'theta_guess(double, double)'. 3 937
UselessParentheses Useless parentheses. 4 949
UselessParentheses Useless parentheses. 4 951
UnusedLocalVariable Avoid unused local variables such as 'ok'. 3 952

DJUTILS - Drawing and animation primitives - org/djutils/draw/line/ConvexHull.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 215218

DJUTILS - Drawing and animation primitives - org/djutils/draw/line/PolyLine2d.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine2d': 'cleanPoints' is already in scope 4 305
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine2d': 'cleanPoints' is already in scope 4 317

DJUTILS - Drawing and animation primitives - org/djutils/draw/line/PolyLine3d.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine3d': 'cleanPoints' is already in scope 4 276
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine3d': 'cleanPoints' is already in scope 4 288
EmptyCatchBlock Avoid empty catch blocks 3 621624

DJUTILS - Drawing and animation primitives - org/djutils/draw/line/Polygon2d.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine2d': 'makeArray' is already in scope 4 81
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine2d': 'makeArray' is already in scope 4 81
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine2d': 'cleanPoints' is already in scope 4 190
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine2d': 'cleanPoints' is already in scope 4 202

DJUTILS - Drawing and animation primitives - org/djutils/draw/line/Polygon3d.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine3d': 'makeArray' is already in scope 4 99
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine3d': 'makeArray' is already in scope 4 100
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine3d': 'makeArray' is already in scope 4 100
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine3d': 'cleanPoints' is already in scope 4 209
UnnecessaryFullyQualifiedName Unnecessary qualifier 'PolyLine3d': 'cleanPoints' is already in scope 4 221

Expression evaluator - org/djutils/eval/Eval.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 248
UselessParentheses Useless parentheses. 4 379
UselessParentheses Useless parentheses. 4 547
UselessParentheses Useless parentheses. 4 554
UselessParentheses Useless parentheses. 4 570
UselessParentheses Useless parentheses. 4 577
UselessParentheses Useless parentheses. 4 630
UselessParentheses Useless parentheses. 4 1198
UselessParentheses Useless parentheses. 4 1233
UselessParentheses Useless parentheses. 4 1256

DJUTILS serialization of data structures - org/djutils/serialization/EndianUtil.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 85
UselessParentheses Useless parentheses. 4 89
UselessParentheses Useless parentheses. 4 103104
UselessParentheses Useless parentheses. 4 104
UselessParentheses Useless parentheses. 4 108109
UselessParentheses Useless parentheses. 4 109
UselessParentheses Useless parentheses. 4 123126
UselessParentheses Useless parentheses. 4 126
UselessParentheses Useless parentheses. 4 130133
UselessParentheses Useless parentheses. 4 133
UselessParentheses Useless parentheses. 4 227
UselessParentheses Useless parentheses. 4 231

DJUTILS serialization of data structures - org/djutils/serialization/util/SerialDataDumper.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 6467

DJUTILS statistical and data storage utilities - org/djutils/stats/DistNormalTable.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 4 46
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 4 52
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 4 78
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 4 81
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 4 82
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 4 85
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 4 98
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 4 99
UnnecessaryFullyQualifiedName Unnecessary qualifier 'DistNormalTable': 'CUMULATIVE_NORMAL_PROBABILITIES' is already in scope because it is declared in an enclosing type 4 100

DJUTILS statistical and data storage utilities - org/djutils/stats/summarizers/Tally.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 313
UselessParentheses Useless parentheses. 4 347
UselessParentheses Useless parentheses. 4 366

DJUTILS statistical and data storage utilities - org/djutils/stats/summarizers/event/EventBasedWeightedTally.java

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

DJUTILS statistical and data storage utilities - org/djutils/stats/summarizers/quantileaccumulator/FixedBinsAccumulator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 174