PMD Results

The following document contains the results of PMD 6.4.0.

Files

org/opentrafficsim/ahfe/AHFEAnimation.java

Violation Priority Line
Avoid unused constructor parameters such as 'title'. 3 84

org/opentrafficsim/ahfe/AHFEUtil.java

Violation Priority Line
Avoid unused method parameters such as 'generationSpeed'. 3 354
Avoid unused method parameters such as 'gtuColorer'. 3 357
Avoid unused method parameters such as 'bcFactory'. 3 357
Avoid unused method parameters such as 'simulationTime'. 3 358
Avoid unused method parameters such as 'tacticalFactory'. 3 358

org/opentrafficsim/demo/CircularLaneSwing.java

Violation Priority Line
Avoid unused constructor parameters such as 'title'. 3 57

org/opentrafficsim/demo/CircularRoadSwing.java

Violation Priority Line
Avoid unused constructor parameters such as 'title'. 3 64

org/opentrafficsim/demo/CrossingTrafficLightsSwing.java

Violation Priority Line
Avoid unused constructor parameters such as 'title'. 3 42

org/opentrafficsim/demo/FundamentalDiagrams.java

Violation Priority Line
Avoid unused constructor parameters such as 'title'. 3 90

org/opentrafficsim/demo/NetworksSwing.java

Violation Priority Line
Avoid unused constructor parameters such as 'title'. 3 67

org/opentrafficsim/demo/SequentialLanes.java

Violation Priority Line
Avoid unused constructor parameters such as 'title'. 3 96

org/opentrafficsim/demo/ShortMerge.java

Violation Priority Line
Avoid unused constructor parameters such as 'title'. 3 156
Avoid empty if statements 3 296298
Avoid unused method parameters such as 'generationSpeed'. 3 439
Avoid unused method parameters such as 'gtuColorer'. 3 441
Avoid unused method parameters such as 'bcFactory'. 3 441
Avoid unused method parameters such as 'tacticalFactory'. 3 442
Avoid unused method parameters such as 'simulationTime'. 3 442

org/opentrafficsim/demo/StraightSwing.java

Violation Priority Line
Avoid unused constructor parameters such as 'title'. 3 58

org/opentrafficsim/demo/conflictAndControl/DemoTrafcodAndTurbo.java

Violation Priority Line
Avoid unused constructor parameters such as 'title'. 3 73

org/opentrafficsim/demo/conflict/BusStreetDemo.java

Violation Priority Line
Avoid unused constructor parameters such as 'title'. 3 110

org/opentrafficsim/demo/conflict/TJunctionDemo.java

Violation Priority Line
Avoid unused constructor parameters such as 'title'. 3 59
Avoid empty block statements. 3 185187

org/opentrafficsim/demo/conflict/TestNetworkDemo.java

Violation Priority Line
Avoid unused constructor parameters such as 'title'. 3 54

org/opentrafficsim/demo/conflict/TurboRoundaboutDemo.java

Violation Priority Line
Avoid unused constructor parameters such as 'title'. 3 59
Avoid empty block statements. 3 205207

org/opentrafficsim/demo/geometry/TestModel.java

Violation Priority Line
Avoid empty catch blocks 3 195198

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

Violation Priority Line
Avoid unused local variables such as 'line'. 3 222
Avoid unused local variables such as 'length'. 3 229
Avoid unused local variables such as 'linkTag'. 3 234
Avoid unused local variables such as 'wegtype'. 3 235
Avoid unused local variables such as 'typeWeg'. 3 237
Avoid unused local variables such as 'speed'. 3 239
Avoid unused local variables such as 'capacity'. 3 241
Avoid using a branching statement as the last in a loop. 2 324
Avoid unused local variables such as 'dir'. 3 439
Useless parentheses. 4 440
Avoid empty catch blocks 3 473476
Avoid unused local variables such as 'dir'. 3 505
Useless parentheses. 4 506
Avoid empty catch blocks 3 542545

org/opentrafficsim/demo/lanechange/LaneChangeGraph.java

Violation Priority Line
Avoid unused method parameters such as 'speed'. 3 419

org/opentrafficsim/demo/steering/SteeringSimulation.java

Violation Priority Line
Useless parentheses. 4 154

org/opentrafficsim/demo/trafficcontrol/TrafCODDemo.java

Violation Priority Line
Avoid unused constructor parameters such as 'title'. 3 67

org/opentrafficsim/demo/trafficcontrol/TrafCODDemo2.java

Violation Priority Line
Avoid unused constructor parameters such as 'title'. 3 67

strategies/LmrsStrategies.java

Violation Priority Line
Useless parentheses. 4 366
Useless qualified this usage in the same class. 3 956
Useless qualified this usage in the same class. 3 958
Useless qualified this usage in the same class. 3 962
Useless qualified this usage in the same class. 3 991
Useless qualified this usage in the same class. 3 993
Useless qualified this usage in the same class. 3 993
Useless qualified this usage in the same class. 3 996
Useless qualified this usage in the same class. 3 996

strategies/StrategiesDemo.java

Violation Priority Line
Useless qualified this usage in the same class. 3 346