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 442–449
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 932–935
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 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/gis/TransformWGS84DutchRDNew.java

Violation Priority Line
Useless parentheses. 4 66
Avoid empty catch blocks 3 273–276
Avoid empty catch blocks 3 283–286
Avoid empty catch blocks 3 293–296

org/opentrafficsim/core/gtu/AbstractGTU.java

Violation Priority Line
Useless parentheses. 4 305
Avoid empty catch blocks 3 631–634

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 528–531
Avoid empty catch blocks 3 899–902

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 324–327

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 135

org/opentrafficsim/gui/OTSAnimationPanel.java

Violation Priority Line
These nested if statements could be combined 3 879–882

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 253–256
Avoid empty catch blocks 3 672–675
Avoid empty catch blocks 3 786–789