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 441–448
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 936–939
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 257–259
These nested if statements could be combined 3 272–278

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 631–634

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 593–596

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 298–301

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

Violation Priority Line
These nested if statements could be combined 3 51–54

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

Violation Priority Line
These nested if statements could be combined 3 59–62
These nested if statements could be combined 3 106–109

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

Violation Priority Line
These nested if statements could be combined 3 74–77
These nested if statements could be combined 3 120–123

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

Violation Priority Line
These nested if statements could be combined 3 74–77
These nested if statements could be combined 3 120–123

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

Violation Priority Line
These nested if statements could be combined 3 57–60

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

Violation Priority Line
These nested if statements could be combined 3 51–54

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

Violation Priority Line
These nested if statements could be combined 3 57–60

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

Violation Priority Line
These nested if statements could be combined 3 60–64

org/opentrafficsim/core/perception/AbstractHistorical.java

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