PMD Results

The following document contains the results of PMD 6.4.0.

Files

ahfe/AHFEUtil.java

Violation Priority Line
Avoid unused method parameters such as 'generationSpeed'. 3 353
Avoid unused method parameters such as 'bcFactory'. 3 356
Avoid unused method parameters such as 'simulationTime'. 3 357
Avoid unused method parameters such as 'tacticalFactory'. 3 357

loadfromxml/LoadXML.java

Violation Priority Line
Avoid unused imports such as 'java.rmi.RemoteException' 4 10

org/opentrafficsim/demo/carFollowing/CircularLane.java

Violation Priority Line
Avoid unused imports such as 'java.rmi.RemoteException' 4 7

org/opentrafficsim/demo/carFollowing/CircularRoad.java

Violation Priority Line
Avoid unused imports such as 'java.rmi.RemoteException' 4 7
These nested if statements could be combined 3 594597

org/opentrafficsim/demo/carFollowing/CrossingTrafficLights.java

Violation Priority Line
Avoid unused imports such as 'java.rmi.RemoteException' 4 8

org/opentrafficsim/demo/carFollowing/OpenStreetMap.java

Violation Priority Line
Unnecessary use of fully qualified name 'java.awt.geom.Rectangle2D.Double' due to existing import 'java.awt.geom.Rectangle2D' 4 271
Avoid unused constructor parameters such as 'properties'. 3 321

org/opentrafficsim/demo/carFollowing/SequentialLanes.java

Violation Priority Line
Avoid unused imports such as 'java.rmi.RemoteException' 4 9
Avoid unused local variables such as 'direction'. 3 447

org/opentrafficsim/demo/carFollowing/ShortMerge.java

Violation Priority Line
Avoid empty if statements 3 324326
Avoid unused method parameters such as 'generationSpeed'. 3 467
Avoid unused method parameters such as 'bcFactory'. 3 469
Avoid unused method parameters such as 'tacticalFactory'. 3 470
Avoid unused method parameters such as 'simulationTime'. 3 470

org/opentrafficsim/demo/carFollowing/Straight.java

Violation Priority Line
Avoid unused imports such as 'java.rmi.RemoteException' 4 9

org/opentrafficsim/demo/carFollowing/StraightPerception.java

Violation Priority Line
Avoid unused imports such as 'java.rmi.RemoteException' 4 9
Avoid empty if statements 3 523524

org/opentrafficsim/demo/carFollowing/SuperDemo.java

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

org/opentrafficsim/demo/carFollowing/Trajectories.java

Violation Priority Line
Avoid unused imports such as 'java.rmi.RemoteException' 4 6

org/opentrafficsim/demo/carFollowing/XMLNetworks2.java

Violation Priority Line
Avoid unused imports such as 'java.rmi.RemoteException' 4 8
Avoid unused private fields such as 'speedLimit'. 3 227
Avoid unused private fields such as 'strategicalPlannerGeneratorCars'. 3 260
Avoid unused private fields such as 'strategicalPlannerGeneratorTrucks'. 3 263
Avoid unused local variables such as 'laneType'. 3 315

org/opentrafficsim/demo/conflictAndControl/DemoTrafcodAndTurbo.java

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

org/opentrafficsim/demo/conflict/BusStreetDemo.java

Violation Priority Line
Avoid unused imports such as 'java.rmi.RemoteException' 4 4

org/opentrafficsim/demo/conflict/TJunctionDemo.java

Violation Priority Line
Avoid unused imports such as 'java.rmi.RemoteException' 4 6
Avoid empty block statements. 3 160162

org/opentrafficsim/demo/conflict/TestNetworkDemo.java

Violation Priority Line
Avoid unused imports such as 'java.rmi.RemoteException' 4 6

org/opentrafficsim/demo/conflict/TurboRoundaboutDemo.java

Violation Priority Line
Avoid unused imports such as 'java.rmi.RemoteException' 4 6
Avoid empty block statements. 3 173175

org/opentrafficsim/demo/geometry/TestModel.java

Violation Priority Line
Avoid empty catch blocks 3 196199

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

Violation Priority Line
Avoid unused local variables such as 'line'. 3 221
Avoid unused local variables such as 'length'. 3 228
Avoid unused local variables such as 'linkTag'. 3 233
Avoid unused local variables such as 'wegtype'. 3 234
Avoid unused local variables such as 'typeWeg'. 3 236
Avoid unused local variables such as 'speed'. 3 238
Avoid unused local variables such as 'capacity'. 3 240
Avoid using a branching statement as the last in a loop. 2 323
Avoid unused local variables such as 'dir'. 3 438
Useless parentheses. 4 439
Avoid empty catch blocks 3 472475
Avoid unused local variables such as 'dir'. 3 504
Useless parentheses. 4 505
Avoid empty catch blocks 3 541544

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

Violation Priority Line
Avoid unused imports such as 'java.rmi.RemoteException' 4 3

org/opentrafficsim/demo/lanechange/LaneChangeGraph.java

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

org/opentrafficsim/demo/lanechange/SuitabilityGraph.java

Violation Priority Line
Avoid unused imports such as 'java.rmi.RemoteException' 4 8
Avoid unused private fields such as 'timeHorizon'. 3 84
Avoid unused local variables such as 'key'. 3 170
Avoid unused local variables such as 'lane'. 3 171
Avoid unused local variables such as 'longitudinalPosition'. 3 174

org/opentrafficsim/demo/trafficcontrol/TrafCODDemo.java

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

org/opentrafficsim/demo/trafficcontrol/TrafCODDemo2.java

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

strategies/LmrsStrategies.java

Violation Priority Line
Useless parentheses. 4 364
Useless qualified this usage in the same class. 3 989
Useless qualified this usage in the same class. 3 991
Useless qualified this usage in the same class. 3 995
Useless qualified this usage in the same class. 3 1024
Useless qualified this usage in the same class. 3 1026
Useless qualified this usage in the same class. 3 1026
Useless qualified this usage in the same class. 3 1029
Useless qualified this usage in the same class. 3 1029

strategies/StrategiesDemo.java

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