PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 3

org/opentrafficsim/core/dsol/OTSLoggingAnimator.java

Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'path'. 41

org/opentrafficsim/core/egtf/EGTF.java

Rule Violation Line
UselessQualifiedThis Useless qualified this usage in the same class. 619
UselessQualifiedThis Useless qualified this usage in the same class. 619
UselessQualifiedThis Useless qualified this usage in the same class. 658
UselessQualifiedThis Useless qualified this usage in the same class. 658
UselessQualifiedThis Useless qualified this usage in the same class. 838
UselessQualifiedThis Useless qualified this usage in the same class. 838
UselessQualifiedThis Useless qualified this usage in the same class. 909
UselessQualifiedThis Useless qualified this usage in the same class. 909

org/opentrafficsim/core/geometry/OTS2DSet.java

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

org/opentrafficsim/core/geometry/OTSLine3D.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 939942

org/opentrafficsim/core/geometry/OTSOffsetLinePK.java

Rule Violation Line
EmptyIfStmt Avoid empty if statements 257259
CollapsibleIfStatements These nested if statements could be combined 272278

org/opentrafficsim/core/gtu/AbstractGTU.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 646649

org/opentrafficsim/core/network/OTSNetwork.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 592595

org/opentrafficsim/core/network/OTSNode.java

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

org/opentrafficsim/core/network/factory/xml/units/AccelerationUnits.java

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

org/opentrafficsim/core/network/factory/xml/units/AngleUnits.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 5962
CollapsibleIfStatements These nested if statements could be combined 106109

org/opentrafficsim/core/network/factory/xml/units/DurationUnits.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 7477
CollapsibleIfStatements These nested if statements could be combined 120123

org/opentrafficsim/core/network/factory/xml/units/LengthUnits.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 7477
CollapsibleIfStatements These nested if statements could be combined 120123

org/opentrafficsim/core/network/factory/xml/units/PositionUnits.java

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

org/opentrafficsim/core/network/factory/xml/units/SpeedUnits.java

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

org/opentrafficsim/core/network/factory/xml/units/TimeUnits.java

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

org/opentrafficsim/core/network/route/CompleteRoute.java

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

org/opentrafficsim/core/perception/AbstractHistorical.java

Rule Violation Line
SimplifiedTernary Ternary operators that can be simplified with || or && 134

Priority 4

org/opentrafficsim/core/egtf/EGTF.java

Rule Violation Line
UselessParentheses Useless parentheses. 969

org/opentrafficsim/core/geometry/Bezier.java

Rule Violation Line
UselessParentheses Useless parentheses. 193
UselessParentheses Useless parentheses. 256

org/opentrafficsim/core/geometry/OTS2DSet.java

Rule Violation Line
UselessParentheses Useless parentheses. 522

org/opentrafficsim/core/geometry/OTSBufferingJTS.java

Rule Violation Line
UselessParentheses Useless parentheses. 96
UselessParentheses Useless parentheses. 96
UselessParentheses Useless parentheses. 308
UselessParentheses Useless parentheses. 308

org/opentrafficsim/core/geometry/OTSLine3D.java

Rule Violation Line
UselessParentheses Useless parentheses. 1345
UselessParentheses Useless parentheses. 1346
UselessParentheses Useless parentheses. 1347
UselessParentheses Useless parentheses. 1348

org/opentrafficsim/core/geometry/OTSPoint3D.java

Rule Violation Line
UselessParentheses Useless parentheses. 70
UselessParentheses Useless parentheses. 181
UselessParentheses Useless parentheses. 181
UselessParentheses Useless parentheses. 221
UselessParentheses Useless parentheses. 221
UselessParentheses Useless parentheses. 304
UselessParentheses Useless parentheses. 304

org/opentrafficsim/core/geometry/OTSShape.java

Rule Violation Line
UselessParentheses Useless parentheses. 209
UselessParentheses Useless parentheses. 209

org/opentrafficsim/core/geometry/TestIntersectionPerformance.java

Rule Violation Line
UselessParentheses Useless parentheses. 256

org/opentrafficsim/core/gtu/AbstractGTU.java

Rule Violation Line
UselessParentheses Useless parentheses. 303

org/opentrafficsim/core/network/LongitudinalDirectionality.java

Rule Violation Line
UselessParentheses Useless parentheses. 99

org/opentrafficsim/core/network/OTSNode.java

Rule Violation Line
UselessParentheses Useless parentheses. 233
UselessParentheses Useless parentheses. 234
UselessParentheses Useless parentheses. 242
UselessParentheses Useless parentheses. 243
UselessParentheses Useless parentheses. 319
UselessParentheses Useless parentheses. 320

Files

org/opentrafficsim/core/dsol/OTSLoggingAnimator.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'path'. 3 41

org/opentrafficsim/core/egtf/EGTF.java

Rule Violation Priority Line
UselessQualifiedThis Useless qualified this usage in the same class. 3 619
UselessQualifiedThis Useless qualified this usage in the same class. 3 619
UselessQualifiedThis Useless qualified this usage in the same class. 3 658
UselessQualifiedThis Useless qualified this usage in the same class. 3 658
UselessQualifiedThis Useless qualified this usage in the same class. 3 838
UselessQualifiedThis Useless qualified this usage in the same class. 3 838
UselessQualifiedThis Useless qualified this usage in the same class. 3 909
UselessQualifiedThis Useless qualified this usage in the same class. 3 909
UselessParentheses Useless parentheses. 4 969

org/opentrafficsim/core/geometry/Bezier.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 193
UselessParentheses Useless parentheses. 4 256

org/opentrafficsim/core/geometry/OTS2DSet.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 441448
UselessParentheses Useless parentheses. 4 522

org/opentrafficsim/core/geometry/OTSBufferingJTS.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 96
UselessParentheses Useless parentheses. 4 96
UselessParentheses Useless parentheses. 4 308
UselessParentheses Useless parentheses. 4 308

org/opentrafficsim/core/geometry/OTSLine3D.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 939942
UselessParentheses Useless parentheses. 4 1345
UselessParentheses Useless parentheses. 4 1346
UselessParentheses Useless parentheses. 4 1347
UselessParentheses Useless parentheses. 4 1348

org/opentrafficsim/core/geometry/OTSOffsetLinePK.java

Rule Violation Priority Line
EmptyIfStmt Avoid empty if statements 3 257259
CollapsibleIfStatements These nested if statements could be combined 3 272278

org/opentrafficsim/core/geometry/OTSPoint3D.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 70
UselessParentheses Useless parentheses. 4 181
UselessParentheses Useless parentheses. 4 181
UselessParentheses Useless parentheses. 4 221
UselessParentheses Useless parentheses. 4 221
UselessParentheses Useless parentheses. 4 304
UselessParentheses Useless parentheses. 4 304

org/opentrafficsim/core/geometry/OTSShape.java

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

org/opentrafficsim/core/geometry/TestIntersectionPerformance.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 256

org/opentrafficsim/core/gtu/AbstractGTU.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 303
EmptyCatchBlock Avoid empty catch blocks 3 646649

org/opentrafficsim/core/network/LongitudinalDirectionality.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 99

org/opentrafficsim/core/network/OTSNetwork.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 592595

org/opentrafficsim/core/network/OTSNode.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 233
UselessParentheses Useless parentheses. 4 234
UselessParentheses Useless parentheses. 4 242
UselessParentheses Useless parentheses. 4 243
UselessParentheses Useless parentheses. 4 319
UselessParentheses Useless parentheses. 4 320
CollapsibleIfStatements These nested if statements could be combined 3 322325

org/opentrafficsim/core/network/factory/xml/units/AccelerationUnits.java

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

org/opentrafficsim/core/network/factory/xml/units/AngleUnits.java

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

org/opentrafficsim/core/network/factory/xml/units/DurationUnits.java

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

org/opentrafficsim/core/network/factory/xml/units/LengthUnits.java

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

org/opentrafficsim/core/network/factory/xml/units/PositionUnits.java

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

org/opentrafficsim/core/network/factory/xml/units/SpeedUnits.java

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

org/opentrafficsim/core/network/factory/xml/units/TimeUnits.java

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

org/opentrafficsim/core/network/route/CompleteRoute.java

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

org/opentrafficsim/core/perception/AbstractHistorical.java

Rule Violation Priority Line
SimplifiedTernary Ternary operators that can be simplified with || or && 3 134