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 |
70 |
12 |
0 |
0 |
org.opentrafficsim.kpi.sampling.KpiDirectedLanePosition
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 |
org.opentrafficsim.kpi.sampling.KpiLaneDirection
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 |
org.opentrafficsim.kpi.sampling.ListTable$ListRecord
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 |
org.opentrafficsim.kpi.sampling.Query
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 |
org.opentrafficsim.kpi.sampling.SamplerData$1
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 |
org.opentrafficsim.kpi.sampling.SamplerData$GtuTypeData
Bug |
Category |
Details |
Line |
Priority |
Unread field: org.opentrafficsim.kpi.sampling.SamplerData$GtuTypeData.id |
PERFORMANCE |
URF_UNREAD_FIELD |
726 |
Medium |
org.opentrafficsim.kpi.sampling.SamplerData$NodeData
Bug |
Category |
Details |
Line |
Priority |
Unread field: org.opentrafficsim.kpi.sampling.SamplerData$NodeData.id |
PERFORMANCE |
URF_UNREAD_FIELD |
701 |
Medium |
org.opentrafficsim.kpi.sampling.SamplerData$RouteData
Bug |
Category |
Details |
Line |
Priority |
Unread field: org.opentrafficsim.kpi.sampling.SamplerData$RouteData.id |
PERFORMANCE |
URF_UNREAD_FIELD |
751 |
Medium |
org.opentrafficsim.kpi.sampling.Trajectory
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 |
org.opentrafficsim.kpi.sampling.TrajectoryGroup
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 |