PMD Results

The following document contains the results of PMD 6.4.0.

Files

org/opentrafficsim/core/egtf/EGTF.java

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

org/opentrafficsim/core/geometry/Bezier.java

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

org/opentrafficsim/core/geometry/OTS2DSet.java

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

org/opentrafficsim/core/geometry/OTSBufferingJTS.java

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

org/opentrafficsim/core/geometry/OTSLine3D.java

Violation Priority Line
Avoid empty catch blocks 3 936939
Useless parentheses. 4 1332
Useless parentheses. 4 1333
Useless parentheses. 4 1334
Useless parentheses. 4 1335

org/opentrafficsim/core/geometry/OTSOffsetLinePK.java

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

org/opentrafficsim/core/geometry/OTSPoint3D.java

Violation Priority Line
Useless parentheses. 4 69
Useless parentheses. 4 180
Useless parentheses. 4 180
Useless parentheses. 4 220
Useless parentheses. 4 220
Useless parentheses. 4 303
Useless parentheses. 4 303

org/opentrafficsim/core/geometry/OTSShape.java

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

org/opentrafficsim/core/geometry/TestIntersectionPerformance.java

Violation Priority Line
Useless parentheses. 4 256

org/opentrafficsim/core/gtu/AbstractGTU.java

Violation Priority Line
Useless parentheses. 4 303
Avoid empty catch blocks 3 631634

org/opentrafficsim/core/network/LongitudinalDirectionality.java

Violation Priority Line
Useless parentheses. 4 99

org/opentrafficsim/core/network/OTSNetwork.java

Violation Priority Line
Avoid empty catch blocks 3 593596

org/opentrafficsim/core/network/OTSNode.java

Violation Priority Line
Useless parentheses. 4 209
Useless parentheses. 4 210
Useless parentheses. 4 218
Useless parentheses. 4 219
Useless parentheses. 4 295
Useless parentheses. 4 296
These nested if statements could be combined 3 298301

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

org/opentrafficsim/core/perception/AbstractHistorical.java

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