The following document contains the results of SpotBugs
SpotBugs Version is 3.1.12
Threshold is medium
Effort is default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
40 | 16 | 0 | 0 |
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 |
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 |
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 | 929 | Medium |
Dead store to signalReferenceTag in org.opentrafficsim.road.network.factory.opendrive.old.RoadTag.generateTrafficLightsbySignalReference(RoadTag, DEVSSimulatorInterface$TimeDoubleUnit, OpenDriveNetworkLaneParserOld) | STYLE | DLS_DEAD_LOCAL_STORE | 1003 | 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 | 873 | High |
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 | 757 | Medium |
Method org.opentrafficsim.road.network.factory.opendrive.old.RoadTag.generateTrafficLightsbySignal(RoadTag, DEVSSimulatorInterface$TimeDoubleUnit, OpenDriveNetworkLaneParserOld) seems to be useless | STYLE | UC_USELESS_VOID_METHOD | 992 | Medium |
Method org.opentrafficsim.road.network.factory.opendrive.old.RoadTag.generateTrafficLightsbySignalReference(RoadTag, DEVSSimulatorInterface$TimeDoubleUnit, OpenDriveNetworkLaneParserOld) seems to be useless | STYLE | UC_USELESS_VOID_METHOD | 1058 | Medium |
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 |