FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is medium

Effort is min

Summary

Classes Bugs Errors Missing Classes
46 7 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.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 352 Medium

org.opentrafficsim.kpi.sampling.Sampler

Bug Category Details Line Priority
Found reliance on default encoding in org.opentrafficsim.kpi.sampling.Sampler.writeToFile(String, String, boolean): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 358 High
org.opentrafficsim.kpi.sampling.Sampler.writeToFile(String, String, boolean) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 369 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 569 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 48 High