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 |
---|---|---|---|
70 | 12 | 0 | 0 |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.opentrafficsim.kpi.sampling.KpiDirectedLanePosition defines non-transient non-serializable instance field lane | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.opentrafficsim.kpi.sampling.KpiLaneDirection defines non-transient non-serializable instance field lane | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.opentrafficsim.kpi.sampling.ListTable$ListRecord(ListTable, Object[]) may expose internal representation by storing an externally mutable object into ListTable$ListRecord.values | MALICIOUS_CODE | EI_EXPOSE_REP2 | 176 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.opentrafficsim.kpi.sampling.Query.getTrajectoryGroups(Time, Time) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 360 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Read of unwritten field currentTrajectory in org.opentrafficsim.kpi.sampling.SamplerData$1.hasNext() | CORRECTNESS | NP_UNWRITTEN_FIELD | 457 | Medium |
Unread field: org.opentrafficsim.kpi.sampling.SamplerData$1.trajectory | PERFORMANCE | URF_UNREAD_FIELD | 448 | Medium |
Unwritten field: org.opentrafficsim.kpi.sampling.SamplerData$1.currentTrajectory | CORRECTNESS | UWF_UNWRITTEN_FIELD | 457 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread field: org.opentrafficsim.kpi.sampling.SamplerData$GtuTypeData.id | PERFORMANCE | URF_UNREAD_FIELD | 726 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread field: org.opentrafficsim.kpi.sampling.SamplerData$NodeData.id | PERFORMANCE | URF_UNREAD_FIELD | 701 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread field: org.opentrafficsim.kpi.sampling.SamplerData$RouteData.id | PERFORMANCE | URF_UNREAD_FIELD | 751 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.opentrafficsim.kpi.sampling.Trajectory.subSet(Trajectory$Boundaries) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 818 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Null passed for non-null parameter of new TrajectoryGroup(Time, Length, Length, KpiLaneDirection) in new org.opentrafficsim.kpi.sampling.TrajectoryGroup(Time, KpiLaneDirection) | CORRECTNESS | NP_NULL_PARAM_DEREF | 50 | High |