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
118 40 0 0

Files

Class Bugs
org.opentrafficsim.draw.core.BoundsPaintScale 2
org.opentrafficsim.draw.core.TextAnimation$AnimationImpl 1
org.opentrafficsim.draw.graphs.AbstractContourPlot 2
org.opentrafficsim.draw.graphs.ContourDataSource 8
org.opentrafficsim.draw.graphs.FundamentalDiagram 2
org.opentrafficsim.draw.graphs.FundamentalDiagram$AbstractSpaceSamplerFdSource 2
org.opentrafficsim.draw.graphs.GraphUpdater 1
org.opentrafficsim.draw.graphs.TrajectoryPlot$OffsetTrajectory 1
org.opentrafficsim.draw.graphs.XYInterpolatedBlockRenderer 1
org.opentrafficsim.draw.graphs.XYInterpolatedBlockRenderer$1$1 1
org.opentrafficsim.draw.graphs.road.GraphLaneUtil 1
org.opentrafficsim.draw.graphs.road.GraphLaneUtil$4 1
org.opentrafficsim.draw.gtu.DefaultCarAnimation 2
org.opentrafficsim.draw.gtu.DefaultCarAnimation$Text 1
org.opentrafficsim.draw.gtu.GTUGeneratorAnimation 1
org.opentrafficsim.draw.network.LinkAnimation 1
org.opentrafficsim.draw.network.NodeAnimation 1
org.opentrafficsim.draw.object.StaticObjectAnimation 1
org.opentrafficsim.draw.road.BusStopAnimation 1
org.opentrafficsim.draw.road.ConflictAnimation 1
org.opentrafficsim.draw.road.LaneAnimation 1
org.opentrafficsim.draw.road.SensorAnimation 1
org.opentrafficsim.draw.road.ShoulderAnimation 1
org.opentrafficsim.draw.road.SinkAnimation 1
org.opentrafficsim.draw.road.SpeedSignAnimation 1
org.opentrafficsim.draw.road.StripeAnimation 1
org.opentrafficsim.draw.road.TrafficLightAnimation 1
org.opentrafficsim.draw.road.TrafficLightSensorAnimation 1

org.opentrafficsim.draw.core.BoundsPaintScale

Bug Category Details Line Priority
org.opentrafficsim.draw.core.BoundsPaintScale.GREEN_RED is a mutable array MALICIOUS_CODE MS_MUTABLE_ARRAY 27 High
org.opentrafficsim.draw.core.BoundsPaintScale.GREEN_RED_DARK is a mutable array MALICIOUS_CODE MS_MUTABLE_ARRAY 31 High

org.opentrafficsim.draw.core.TextAnimation$AnimationImpl

Bug Category Details Line Priority
org.opentrafficsim.draw.core.TextAnimation$AnimationImpl is Serializable but its superclass doesn't define an accessible void constructor BAD_PRACTICE SE_NO_SUITABLE_CONSTRUCTOR 414-436 High

org.opentrafficsim.draw.graphs.AbstractContourPlot

Bug Category Details Line Priority
org.opentrafficsim.draw.graphs.AbstractContourPlot.setSpaceGranularityRadioButton(double) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 289 Medium
org.opentrafficsim.draw.graphs.AbstractContourPlot.setTimeGranularityRadioButton(double) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 303 Medium

org.opentrafficsim.draw.graphs.ContourDataSource

Bug Category Details Line Priority
Inconsistent synchronization of org.opentrafficsim.draw.graphs.ContourDataSource.redo; locked 75% of time MT_CORRECTNESS IS2_INCONSISTENT_SYNC 791 Medium
Inconsistent synchronization of org.opentrafficsim.draw.graphs.ContourDataSource.smooth; locked 66% of time MT_CORRECTNESS IS2_INCONSISTENT_SYNC 445 Medium
Inconsistent synchronization of org.opentrafficsim.draw.graphs.ContourDataSource.toTime; locked 83% of time MT_CORRECTNESS IS2_INCONSISTENT_SYNC 512 Medium
org.opentrafficsim.draw.graphs.ContourDataSource.DEFAULT_SPACE_GRANULARITIES should be package protected MALICIOUS_CODE MS_PKGPROTECT 59 Medium
org.opentrafficsim.draw.graphs.ContourDataSource.DEFAULT_TIME_GRANULARITIES should be package protected MALICIOUS_CODE MS_PKGPROTECT 65 Medium
org.opentrafficsim.draw.graphs.ContourDataSource.getGranularity(ContourDataSource$Dimension) is unsynchronized, org.opentrafficsim.draw.graphs.ContourDataSource.setGranularity(ContourDataSource$Dimension, double) is synchronized MT_CORRECTNESS UG_SYNC_SET_UNSYNC_GET 366 Medium
org.opentrafficsim.draw.graphs.ContourDataSource.update(Time) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 768 Medium
org.opentrafficsim.draw.graphs.ContourDataSource.update(Time) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 785 Medium

org.opentrafficsim.draw.graphs.FundamentalDiagram

Bug Category Details Line Priority
org.opentrafficsim.draw.graphs.FundamentalDiagram.DEFAULT_PERIODS should be package protected MALICIOUS_CODE MS_PKGPROTECT 72 Medium
org.opentrafficsim.draw.graphs.FundamentalDiagram.DEFAULT_UPDATE_FREQUENCIES should be package protected MALICIOUS_CODE MS_PKGPROTECT 75 Medium

org.opentrafficsim.draw.graphs.FundamentalDiagram$AbstractSpaceSamplerFdSource

Bug Category Details Line Priority
Inconsistent synchronization of org.opentrafficsim.draw.graphs.FundamentalDiagram$AbstractSpaceSamplerFdSource.firstMeasurement; locked 75% of time MT_CORRECTNESS IS2_INCONSISTENT_SYNC 1295 Medium
Inconsistent synchronization of org.opentrafficsim.draw.graphs.FundamentalDiagram$AbstractSpaceSamplerFdSource.secondMeasurement; locked 71% of time MT_CORRECTNESS IS2_INCONSISTENT_SYNC 1295 Medium

org.opentrafficsim.draw.graphs.GraphUpdater

Bug Category Details Line Priority
Exceptional return value of java.util.concurrent.BlockingQueue.offer(Object) ignored in org.opentrafficsim.draw.graphs.GraphUpdater.offer(Object) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 69 Medium

org.opentrafficsim.draw.graphs.TrajectoryPlot$OffsetTrajectory

Bug Category Details Line Priority
Should org.opentrafficsim.draw.graphs.TrajectoryPlot$OffsetTrajectory be a _static_ inner class? PERFORMANCE SIC_INNER_SHOULD_BE_STATIC 489-584 Medium

org.opentrafficsim.draw.graphs.XYInterpolatedBlockRenderer

Bug Category Details Line Priority
org.opentrafficsim.draw.graphs.XYInterpolatedBlockRenderer doesn't override org.jfree.chart.renderer.xy.XYBlockRenderer.equals(Object) STYLE EQ_DOESNT_OVERRIDE_EQUALS 1 Medium

org.opentrafficsim.draw.graphs.XYInterpolatedBlockRenderer$1$1

Bug Category Details Line Priority
Integral division result cast to double or float in org.opentrafficsim.draw.graphs.XYInterpolatedBlockRenderer$1$1.getRaster(int, int, int, int) STYLE ICAST_IDIV_CAST_TO_DOUBLE 184 Medium

org.opentrafficsim.draw.graphs.road.GraphLaneUtil

Bug Category Details Line Priority
Null passed for non-null parameter of java.util.List.addAll(Collection) in org.opentrafficsim.draw.graphs.road.GraphLaneUtil.createPath(List, List) CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 209 Medium

org.opentrafficsim.draw.graphs.road.GraphLaneUtil$4

Bug Category Details Line Priority
org.opentrafficsim.draw.graphs.road.GraphLaneUtil$4.compare(Lane, Lane) negates the return value of org.djunits.value.vdouble.scalar.AbstractDoubleScalar.compareTo(AbstractDoubleScalar) BAD_PRACTICE RV_NEGATING_RESULT_OF_COMPARETO 339 Medium

org.opentrafficsim.draw.gtu.DefaultCarAnimation

Bug Category Details Line Priority
org.opentrafficsim.core.animation.gtu.colorer.IDGTUColorer stored into non-transient field DefaultCarAnimation.gtuColorer BAD_PRACTICE SE_BAD_FIELD_STORE 109 High
org.opentrafficsim.draw.gtu.DefaultCarAnimation is Serializable but its superclass doesn't define an accessible void constructor BAD_PRACTICE SE_NO_SUITABLE_CONSTRUCTOR 42-256 High

org.opentrafficsim.draw.gtu.DefaultCarAnimation$Text

Bug Category Details Line Priority
Potentially ambiguous invocation of either an outer or inherited method org.opentrafficsim.draw.core.TextAnimation.destroy() in org.opentrafficsim.draw.gtu.DefaultCarAnimation$Text.paint(Graphics2D, ImageObserver) STYLE IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD 310 High

org.opentrafficsim.draw.gtu.GTUGeneratorAnimation

Bug Category Details Line Priority
org.opentrafficsim.draw.gtu.GTUGeneratorAnimation.paint(Graphics2D, ImageObserver) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 64 Medium

org.opentrafficsim.draw.network.LinkAnimation

Bug Category Details Line Priority
org.opentrafficsim.draw.network.LinkAnimation is Serializable but its superclass doesn't define an accessible void constructor BAD_PRACTICE SE_NO_SUITABLE_CONSTRUCTOR 37-138 High

org.opentrafficsim.draw.network.NodeAnimation

Bug Category Details Line Priority
org.opentrafficsim.draw.network.NodeAnimation is Serializable but its superclass doesn't define an accessible void constructor BAD_PRACTICE SE_NO_SUITABLE_CONSTRUCTOR 47-81 High

org.opentrafficsim.draw.object.StaticObjectAnimation

Bug Category Details Line Priority
org.opentrafficsim.draw.object.StaticObjectAnimation is Serializable but its superclass doesn't define an accessible void constructor BAD_PRACTICE SE_NO_SUITABLE_CONSTRUCTOR 54-126 High

org.opentrafficsim.draw.road.BusStopAnimation

Bug Category Details Line Priority
org.opentrafficsim.draw.road.BusStopAnimation is Serializable but its superclass doesn't define an accessible void constructor BAD_PRACTICE SE_NO_SUITABLE_CONSTRUCTOR 48-74 High

org.opentrafficsim.draw.road.ConflictAnimation

Bug Category Details Line Priority
org.opentrafficsim.draw.road.ConflictAnimation is Serializable but its superclass doesn't define an accessible void constructor BAD_PRACTICE SE_NO_SUITABLE_CONSTRUCTOR 47-110 High

org.opentrafficsim.draw.road.LaneAnimation

Bug Category Details Line Priority
org.opentrafficsim.draw.road.LaneAnimation is Serializable but its superclass doesn't define an accessible void constructor BAD_PRACTICE SE_NO_SUITABLE_CONSTRUCTOR 35-122 High

org.opentrafficsim.draw.road.SensorAnimation

Bug Category Details Line Priority
org.opentrafficsim.draw.road.SensorAnimation is Serializable but its superclass doesn't define an accessible void constructor BAD_PRACTICE SE_NO_SUITABLE_CONSTRUCTOR 33-106 High

org.opentrafficsim.draw.road.ShoulderAnimation

Bug Category Details Line Priority
org.opentrafficsim.draw.road.ShoulderAnimation is Serializable but its superclass doesn't define an accessible void constructor BAD_PRACTICE SE_NO_SUITABLE_CONSTRUCTOR 44-60 High

org.opentrafficsim.draw.road.SinkAnimation

Bug Category Details Line Priority
org.opentrafficsim.draw.road.SinkAnimation is Serializable but its superclass doesn't define an accessible void constructor BAD_PRACTICE SE_NO_SUITABLE_CONSTRUCTOR 44-59 High

org.opentrafficsim.draw.road.SpeedSignAnimation

Bug Category Details Line Priority
org.opentrafficsim.draw.road.SpeedSignAnimation is Serializable but its superclass doesn't define an accessible void constructor BAD_PRACTICE SE_NO_SUITABLE_CONSTRUCTOR 52-85 High

org.opentrafficsim.draw.road.StripeAnimation

Bug Category Details Line Priority
org.opentrafficsim.draw.road.StripeAnimation is Serializable but its superclass doesn't define an accessible void constructor BAD_PRACTICE SE_NO_SUITABLE_CONSTRUCTOR 39-275 High

org.opentrafficsim.draw.road.TrafficLightAnimation

Bug Category Details Line Priority
org.opentrafficsim.draw.road.TrafficLightAnimation is Serializable but its superclass doesn't define an accessible void constructor BAD_PRACTICE SE_NO_SUITABLE_CONSTRUCTOR 32-120 High

org.opentrafficsim.draw.road.TrafficLightSensorAnimation

Bug Category Details Line Priority
org.opentrafficsim.draw.road.TrafficLightSensorAnimation is Serializable but its superclass doesn't define an accessible void constructor BAD_PRACTICE SE_NO_SUITABLE_CONSTRUCTOR 55-90 High