SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.1.4

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
40 17 0 0

Files

Class Bugs
org.opentrafficsim.road.network.factory.opendrive.old.LaneSectionTag 1
org.opentrafficsim.road.network.factory.opendrive.old.PlanViewTag 5
org.opentrafficsim.road.network.factory.opendrive.old.RoadTag 9
org.opentrafficsim.road.network.factory.opendrive.parser.OpenDriveNetworkLaneParser 2

org.opentrafficsim.road.network.factory.opendrive.old.LaneSectionTag

Bug Category Details Line Priority
org.opentrafficsim.road.network.factory.opendrive.old.LaneSectionTag.findLanes(String) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 109 Medium

org.opentrafficsim.road.network.factory.opendrive.old.PlanViewTag

Bug Category Details Line Priority
Dead store to mPoint in org.opentrafficsim.road.network.factory.opendrive.old.PlanViewTag.generateCurve(OTSPoint3D, OTSPoint3D, double, double, boolean, boolean) STYLE DLS_DEAD_LOCAL_STORE 235 High
Dead store to otsLine in org.opentrafficsim.road.network.factory.opendrive.old.PlanViewTag.interpolateSpiral(OpenDriveNetworkLaneParserOld, PlanViewTag, GeometryTag, int) STYLE DLS_DEAD_LOCAL_STORE 175 High
Dead store to endCurvature in org.opentrafficsim.road.network.factory.opendrive.old.PlanViewTag.interpolateSpiral(OpenDriveNetworkLaneParserOld, PlanViewTag, GeometryTag, int) STYLE DLS_DEAD_LOCAL_STORE 151 Medium
Dead store to start in org.opentrafficsim.road.network.factory.opendrive.old.PlanViewTag.interpolateSpiral(OpenDriveNetworkLaneParserOld, PlanViewTag, GeometryTag, int) STYLE DLS_DEAD_LOCAL_STORE 152 Medium
Dead store to startCurvature in org.opentrafficsim.road.network.factory.opendrive.old.PlanViewTag.interpolateSpiral(OpenDriveNetworkLaneParserOld, PlanViewTag, GeometryTag, int) STYLE DLS_DEAD_LOCAL_STORE 150 Medium

org.opentrafficsim.road.network.factory.opendrive.old.RoadTag

Bug Category Details Line Priority
Dead store to tempGeometryTags in org.opentrafficsim.road.network.factory.opendrive.old.RoadTag.buildSubLinks(RoadTag, OTSSimulatorInterface, OpenDriveNetworkLaneParserOld) STYLE DLS_DEAD_LOCAL_STORE 217 Medium
Dead store to ds in org.opentrafficsim.road.network.factory.opendrive.old.RoadTag.generateRegularRoads(RoadTag, DEVSSimulatorInterface$TimeDoubleUnit, OpenDriveNetworkLaneParserOld) STYLE DLS_DEAD_LOCAL_STORE 419 Medium
Dead store to signalTag in org.opentrafficsim.road.network.factory.opendrive.old.RoadTag.generateTrafficLightsbySignal(RoadTag, DEVSSimulatorInterface$TimeDoubleUnit, OpenDriveNetworkLaneParserOld) STYLE DLS_DEAD_LOCAL_STORE 935 Medium
Dead store to signalReferenceTag in org.opentrafficsim.road.network.factory.opendrive.old.RoadTag.generateTrafficLightsbySignalReference(RoadTag, DEVSSimulatorInterface$TimeDoubleUnit, OpenDriveNetworkLaneParserOld) STYLE DLS_DEAD_LOCAL_STORE 1009 Medium
Possible null pointer dereference of RoadTag.junctionId in org.opentrafficsim.road.network.factory.opendrive.old.RoadTag.buildLink(RoadTag, OpenDriveNetworkLaneParserOld) CORRECTNESS NP_NULL_ON_SOME_PATH 879 High
Exception is caught when Exception is not thrown in org.opentrafficsim.road.network.factory.opendrive.old.RoadTag.generateRegularRoads(RoadTag, DEVSSimulatorInterface$TimeDoubleUnit, OpenDriveNetworkLaneParserOld) STYLE REC_CATCH_EXCEPTION 860 Medium
Useless object stored in variable directionality of method org.opentrafficsim.road.network.factory.opendrive.old.RoadTag.generateRegularRoads(RoadTag, DEVSSimulatorInterface$TimeDoubleUnit, OpenDriveNetworkLaneParserOld) STYLE UC_USELESS_OBJECT 759 Medium
Method org.opentrafficsim.road.network.factory.opendrive.old.RoadTag.generateTrafficLightsbySignal(RoadTag, DEVSSimulatorInterface$TimeDoubleUnit, OpenDriveNetworkLaneParserOld) seems to be useless STYLE UC_USELESS_VOID_METHOD 998 Medium
Method org.opentrafficsim.road.network.factory.opendrive.old.RoadTag.generateTrafficLightsbySignalReference(RoadTag, DEVSSimulatorInterface$TimeDoubleUnit, OpenDriveNetworkLaneParserOld) seems to be useless STYLE UC_USELESS_VOID_METHOD 1064 Medium

org.opentrafficsim.road.network.factory.opendrive.parser.OpenDriveNetworkLaneParser

Bug Category Details Line Priority
Dead store to originLat in org.opentrafficsim.road.network.factory.opendrive.parser.OpenDriveNetworkLaneParser.build(OpenDRIVE, OTSRoadNetwork, OTSSimulatorInterface) STYLE DLS_DEAD_LOCAL_STORE 199 Medium
Dead store to originLon in org.opentrafficsim.road.network.factory.opendrive.parser.OpenDriveNetworkLaneParser.build(OpenDRIVE, OTSRoadNetwork, OTSSimulatorInterface) STYLE DLS_DEAD_LOCAL_STORE 200 Medium