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 442–449
Useless parentheses. 4 523

org/opentrafficsim/core/geometry/OTSBufferingJTS.java

Violation Priority Line
Useless parentheses. 4 97
Useless parentheses. 4 97
Useless parentheses. 4 309
Useless parentheses. 4 309

org/opentrafficsim/core/geometry/OTSLine3D.java

Violation Priority Line
Avoid empty catch blocks 3 933–936
Useless parentheses. 4 1329
Useless parentheses. 4 1330
Useless parentheses. 4 1331
Useless parentheses. 4 1332

org/opentrafficsim/core/geometry/OTSOffsetLinePK.java

Violation Priority Line
Avoid empty if statements 3 257–259

org/opentrafficsim/core/geometry/OTSPoint3D.java

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

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 302
Avoid empty catch blocks 3 632–635

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 564–567

org/opentrafficsim/core/network/OTSNode.java

Violation Priority Line
Useless parentheses. 4 236
Useless parentheses. 4 237
Useless parentheses. 4 245
Useless parentheses. 4 246
Useless parentheses. 4 322
Useless parentheses. 4 323
These nested if statements could be combined 3 325–328

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