PMD Results

The following document contains the results of PMD 5.3.5.

Files

org/opentrafficsim/demo/carFollowing/CanPlaceDemoCode.java

Violation Line
Unnecessary use of fully qualified name 'org.djunits.value.vdouble.scalar.Length' due to existing import 'org.djunits.value.vdouble.scalar.Length' 33

org/opentrafficsim/demo/carFollowing/CircularRoad.java

Violation Line
These nested if statements could be combined 591594

org/opentrafficsim/demo/carFollowing/OpenStreetMap.java

Violation Line
Unnecessary use of fully qualified name 'java.awt.geom.Rectangle2D.Double' due to existing import 'java.awt.geom.Rectangle2D' 273
Avoid unused private fields such as 'network'. 299
Avoid unused constructor parameters such as 'properties'. 323

org/opentrafficsim/demo/carFollowing/StraightPerception.java

Violation Line
Avoid empty if statements 535536

org/opentrafficsim/demo/carFollowing/XMLNetworks.java

Violation Line
Avoid empty if statements 295299

org/opentrafficsim/demo/geometry/TestModel.java

Violation Line
Avoid empty catch blocks 197200

org/opentrafficsim/demo/geometry/shape/ShapeFileReader.java

Violation Line
Avoid unused imports such as 'org.djunits.unit.FrequencyUnit' 14
Avoid unused imports such as 'org.djunits.value.vdouble.scalar.DoubleScalar' 16
Avoid unused local variables such as 'line'. 222
Avoid unused local variables such as 'length'. 229
Avoid unused local variables such as 'linkTag'. 234
Avoid unused local variables such as 'wegtype'. 235
Avoid unused local variables such as 'typeWeg'. 237
Avoid unused local variables such as 'speed'. 239
Avoid unused local variables such as 'capacity'. 241
Avoid using a branching statement as the last in a loop. 324
Useless parentheses. 440
Avoid empty catch blocks 472475
Useless parentheses. 504
Avoid empty catch blocks 540543

org/opentrafficsim/demo/lanechange/LaneChangeGraph.java

Violation Line
Avoid unused method parameters such as 'speed'. 414

org/opentrafficsim/demo/lanechange/SuitabilityGraph.java

Violation Line
Avoid unused private fields such as 'timeHorizon'. 84
Avoid unused local variables such as 'key'. 172
Avoid unused local variables such as 'lane'. 173
Avoid unused local variables such as 'longitudinalPosition'. 176