The following document contains the results of FindBugs
FindBugs Version is 3.0.0
Threshold is medium
Effort is min
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Possible null pointer dereference of fadsum in floatvectordemo.FloatVectorDemo.main(String[]) on exception path | CORRECTNESS | NP_NULL_ON_SOME_PATH_EXCEPTION | 55 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.opentrafficsim.demo.carFollowing.FundamentalDiagramPlotsModel defines non-transient non-serializable instance field carFollowingModelCars | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Class org.opentrafficsim.demo.carFollowing.FundamentalDiagramPlotsModel defines non-transient non-serializable instance field carFollowingModelTrucks | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Class org.opentrafficsim.demo.carFollowing.FundamentalDiagramPlotsModel defines non-transient non-serializable instance field lane | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Class org.opentrafficsim.demo.carFollowing.FundamentalDiagramPlotsModel defines non-transient non-serializable instance field properties | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
org.opentrafficsim.core.gtu.following.IDM stored into non-transient field FundamentalDiagramPlotsModel.carFollowingModelCars | BAD_PRACTICE | SE_BAD_FIELD_STORE | 314 | Medium |
org.opentrafficsim.core.gtu.following.IDMPlus stored into non-transient field FundamentalDiagramPlotsModel.carFollowingModelCars | BAD_PRACTICE | SE_BAD_FIELD_STORE | 327 | Medium |
org.opentrafficsim.core.gtu.following.IDM stored into non-transient field FundamentalDiagramPlotsModel.carFollowingModelTrucks | BAD_PRACTICE | SE_BAD_FIELD_STORE | 319 | Medium |
org.opentrafficsim.core.gtu.following.IDMPlus stored into non-transient field FundamentalDiagramPlotsModel.carFollowingModelTrucks | BAD_PRACTICE | SE_BAD_FIELD_STORE | 332 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Integral division result cast to double or float in org.opentrafficsim.demo.carFollowing.LaneSimulationModel.constructModel(SimulatorInterface) | STYLE | ICAST_IDIV_CAST_TO_DOUBLE | 393 | Medium |
Class org.opentrafficsim.demo.carFollowing.LaneSimulationModel defines non-transient non-serializable instance field carFollowingModelCars | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Class org.opentrafficsim.demo.carFollowing.LaneSimulationModel defines non-transient non-serializable instance field carFollowingModelTrucks | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Class org.opentrafficsim.demo.carFollowing.LaneSimulationModel defines non-transient non-serializable instance field lane1 | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Class org.opentrafficsim.demo.carFollowing.LaneSimulationModel defines non-transient non-serializable instance field lane2 | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Class org.opentrafficsim.demo.carFollowing.LaneSimulationModel defines non-transient non-serializable instance field properties | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Integral division result cast to double or float in org.opentrafficsim.demo.carFollowing.RoadSimulationModel.constructModel(SimulatorInterface) | STYLE | ICAST_IDIV_CAST_TO_DOUBLE | 432 | Medium |
Possible null pointer dereference of ll in org.opentrafficsim.demo.carFollowing.RoadSimulationModel.wrap() on exception path | CORRECTNESS | NP_NULL_ON_SOME_PATH_EXCEPTION | 793 | Medium |
Class org.opentrafficsim.demo.carFollowing.RoadSimulationModel defines non-transient non-serializable instance field carFollowingModelCars | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Class org.opentrafficsim.demo.carFollowing.RoadSimulationModel defines non-transient non-serializable instance field carFollowingModelTrucks | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Class org.opentrafficsim.demo.carFollowing.RoadSimulationModel defines non-transient non-serializable instance field laneChangeModel | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Class org.opentrafficsim.demo.carFollowing.RoadSimulationModel defines non-transient non-serializable instance field lanes | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Class org.opentrafficsim.demo.carFollowing.RoadSimulationModel defines non-transient non-serializable instance field properties | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
org.opentrafficsim.car.lanechanging.Altruistic stored into non-transient field RoadSimulationModel.laneChangeModel | BAD_PRACTICE | SE_BAD_FIELD_STORE | 411 | Medium |
org.opentrafficsim.car.lanechanging.Egoistic stored into non-transient field RoadSimulationModel.laneChangeModel | BAD_PRACTICE | SE_BAD_FIELD_STORE | 407 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.opentrafficsim.demo.carFollowing.StraightModel defines non-transient non-serializable instance field carFollowingModelCars | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Class org.opentrafficsim.demo.carFollowing.StraightModel defines non-transient non-serializable instance field carFollowingModelTrucks | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Class org.opentrafficsim.demo.carFollowing.StraightModel defines non-transient non-serializable instance field lane | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Class org.opentrafficsim.demo.carFollowing.StraightModel defines non-transient non-serializable instance field properties | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.opentrafficsim.demo.carFollowing.TrajectoriesModel defines non-transient non-serializable instance field carFollowingModelCars | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Class org.opentrafficsim.demo.carFollowing.TrajectoriesModel defines non-transient non-serializable instance field carFollowingModelTrucks | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Class org.opentrafficsim.demo.carFollowing.TrajectoriesModel defines non-transient non-serializable instance field lane | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Class org.opentrafficsim.demo.carFollowing.TrajectoriesModel defines non-transient non-serializable instance field properties | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
org.opentrafficsim.core.gtu.following.IDM stored into non-transient field TrajectoriesModel.carFollowingModelCars | BAD_PRACTICE | SE_BAD_FIELD_STORE | 309 | Medium |
org.opentrafficsim.core.gtu.following.IDMPlus stored into non-transient field TrajectoriesModel.carFollowingModelCars | BAD_PRACTICE | SE_BAD_FIELD_STORE | 322 | Medium |
org.opentrafficsim.core.gtu.following.IDM stored into non-transient field TrajectoriesModel.carFollowingModelTrucks | BAD_PRACTICE | SE_BAD_FIELD_STORE | 314 | Medium |
org.opentrafficsim.core.gtu.following.IDMPlus stored into non-transient field TrajectoriesModel.carFollowingModelTrucks | BAD_PRACTICE | SE_BAD_FIELD_STORE | 327 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
The class name org.opentrafficsim.demo.carFollowing.newGUI doesn't start with an upper case letter | BAD_PRACTICE | NM_CLASS_NAMING_CONVENTION | 78-841 | Medium |
Unread field: org.opentrafficsim.demo.carFollowing.newGUI.networkButtonGroup | PERFORMANCE | URF_UNREAD_FIELD | 103 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to capacity in org.opentrafficsim.demo.geometry.shape.ShapeFileReader.readLinks(String, Map, Map, OTSSimulatorInterface) | STYLE | DLS_DEAD_LOCAL_STORE | 229 | Medium |
Dead store to speed in org.opentrafficsim.demo.geometry.shape.ShapeFileReader.readLinks(String, Map, Map, OTSSimulatorInterface) | STYLE | DLS_DEAD_LOCAL_STORE | 227 | Medium |
The method name org.opentrafficsim.demo.geometry.shape.ShapeFileReader.ReadNodes(String, String, boolean, boolean) doesn't start with a lower case letter | BAD_PRACTICE | NM_METHOD_NAMING_CONVENTION | 83-141 | Medium |
Redundant nullcheck of nr, which is known to be non-null in org.opentrafficsim.demo.geometry.shape.ShapeFileReader.ReadNodes(String, String, boolean, boolean) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 115 | Medium |
Exception is caught when Exception is not thrown in org.opentrafficsim.demo.geometry.shape.ShapeFileReader.readLinks(String, Map, Map, OTSSimulatorInterface) | STYLE | REC_CATCH_EXCEPTION | 271 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.opentrafficsim.core.gtu.following.IDM stored into non-transient field LaneChangeGraph.carFollowingModel | BAD_PRACTICE | SE_BAD_FIELD_STORE | 232 | Medium |
org.opentrafficsim.core.gtu.following.IDMPlus stored into non-transient field LaneChangeGraph.carFollowingModel | BAD_PRACTICE | SE_BAD_FIELD_STORE | 227 | Medium |