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 442449
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 933936
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 257259

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 632635

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 564567

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 325328

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