PMD Results

The following document contains the results of PMD 6.4.0.

Files

org/opentrafficsim/core/animation/TextAnimation.java

Violation Priority Line
Useless parentheses. 4 394

org/opentrafficsim/core/geometry/Bezier.java

Violation Priority Line
Useless parentheses. 4 192
Useless parentheses. 4 255

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 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 932935
Useless parentheses. 4 1328
Useless parentheses. 4 1329
Useless parentheses. 4 1330
Useless parentheses. 4 1331

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/gis/TransformWGS84DutchRDNew.java

Violation Priority Line
Useless parentheses. 4 66
Avoid empty catch blocks 3 273276
Avoid empty catch blocks 3 283286
Avoid empty catch blocks 3 293296

org/opentrafficsim/core/gtu/AbstractGTU.java

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

org/opentrafficsim/core/network/LongitudinalDirectionality.java

Violation Priority Line
Useless parentheses. 4 100

org/opentrafficsim/core/network/OTSLink.java

Violation Priority Line
Avoid unused constructor parameters such as 'animation'. 3 105

org/opentrafficsim/core/network/OTSNetwork.java

Violation Priority Line
Avoid empty catch blocks 3 528531
Avoid empty catch blocks 3 899902

org/opentrafficsim/core/network/OTSNode.java

Violation Priority Line
Useless parentheses. 4 235
Useless parentheses. 4 236
Useless parentheses. 4 244
Useless parentheses. 4 245
Useless parentheses. 4 321
Useless parentheses. 4 322
These nested if statements could be combined 3 324327

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 135

org/opentrafficsim/gui/OTSAnimationPanel.java

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

org/opentrafficsim/gui/OTSControlPanel.java

Violation Priority Line
Useless qualified this usage in the same class. 3 416
Useless qualified this usage in the same class. 3 422
Useless qualified this usage in the same class. 3 431
Useless qualified this usage in the same class. 3 434
Useless qualified this usage in the same class. 3 823

org/opentrafficsim/simulationengine/AbstractWrappableAnimation.java

Violation Priority Line
Avoid empty catch blocks 3 253256
Avoid empty catch blocks 3 672675
Avoid empty catch blocks 3 786789