SpotBugs Bug Detector Report
The following document contains the results of SpotBugs
SpotBugs Version is 4.9.1
Threshold is medium
Effort is default
Summary
| Classes |
Bugs |
Errors |
Missing Classes |
| 52 |
14 |
0 |
0 |
org.opentrafficsim.animation.DefaultAnimationFactory
| Bug |
Category |
Details |
Line |
Priority |
| Exception thrown in class org.opentrafficsim.animation.DefaultAnimationFactory at new org.opentrafficsim.animation.DefaultAnimationFactory(Network, GtuColorerManager, boolean) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. |
BAD_PRACTICE |
CT_CONSTRUCTOR_THROW |
198 |
Medium |
org.opentrafficsim.animation.PerceptionAnimation$ChannelAttention
| Bug |
Category |
Details |
Line |
Priority |
| org.opentrafficsim.animation.PerceptionAnimation$ChannelAttention.getGtu() may expose internal representation by returning PerceptionAnimation$ChannelAttention.gtu |
MALICIOUS_CODE |
EI_EXPOSE_REP |
233 |
Medium |
| new org.opentrafficsim.animation.PerceptionAnimation$ChannelAttention(LaneBasedGtu) may expose internal representation by storing an externally mutable object into PerceptionAnimation$ChannelAttention.gtu |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
224 |
Medium |
org.opentrafficsim.animation.data.AnimationGtuData
| Bug |
Category |
Details |
Line |
Priority |
| new org.opentrafficsim.animation.data.AnimationGtuData(GtuColorerManager, LaneBasedGtu, DefaultCarAnimation$GtuData$GtuMarker) may expose internal representation by storing an externally mutable object into AnimationGtuData.gtuColorerManager |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
38 |
Medium |
org.opentrafficsim.animation.data.AnimationPriorityData
| Bug |
Category |
Details |
Line |
Priority |
| new org.opentrafficsim.animation.data.AnimationPriorityData(CrossSectionLink) may expose internal representation by storing an externally mutable object into AnimationPriorityData.link |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
39 |
Medium |
org.opentrafficsim.animation.gtu.colorer.DesiredHeadwayGtuColorer
| Bug |
Category |
Details |
Line |
Priority |
| org.opentrafficsim.animation.gtu.colorer.DesiredHeadwayGtuColorer.getNumberFormat() may expose internal representation by returning DesiredHeadwayGtuColorer.FORMAT |
MALICIOUS_CODE |
EI_EXPOSE_REP |
71 |
Medium |
org.opentrafficsim.animation.gtu.colorer.DesiredSpeedGtuColorer
| Bug |
Category |
Details |
Line |
Priority |
| org.opentrafficsim.animation.gtu.colorer.DesiredSpeedGtuColorer.getNumberFormat() may expose internal representation by returning DesiredSpeedGtuColorer.FORMAT |
MALICIOUS_CODE |
EI_EXPOSE_REP |
58 |
Medium |
org.opentrafficsim.animation.gtu.colorer.GtuColorerManager
| Bug |
Category |
Details |
Line |
Priority |
| Exception thrown in class org.opentrafficsim.animation.gtu.colorer.GtuColorerManager at new org.opentrafficsim.animation.gtu.colorer.GtuColorerManager(Color) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. |
BAD_PRACTICE |
CT_CONSTRUCTOR_THROW |
39 |
Medium |
org.opentrafficsim.animation.gtu.colorer.ReactionTimeGtuColorer
| Bug |
Category |
Details |
Line |
Priority |
| org.opentrafficsim.animation.gtu.colorer.ReactionTimeGtuColorer.getNumberFormat() may expose internal representation by returning ReactionTimeGtuColorer.FORMAT |
MALICIOUS_CODE |
EI_EXPOSE_REP |
57 |
Medium |
org.opentrafficsim.animation.gtu.colorer.SocialPressureGtuColorer
| Bug |
Category |
Details |
Line |
Priority |
| org.opentrafficsim.animation.gtu.colorer.SocialPressureGtuColorer.getNumberFormat() may expose internal representation by returning SocialPressureGtuColorer.FORMAT |
MALICIOUS_CODE |
EI_EXPOSE_REP |
55 |
Medium |
org.opentrafficsim.animation.gtu.colorer.SplitGtuColorer
org.opentrafficsim.animation.gtu.colorer.TaskGtuColorer
| Bug |
Category |
Details |
Line |
Priority |
| org.opentrafficsim.animation.gtu.colorer.TaskGtuColorer.getLegend() may expose internal representation by returning TaskGtuColorer.LEGEND |
MALICIOUS_CODE |
EI_EXPOSE_REP |
100 |
Medium |
org.opentrafficsim.animation.gtu.colorer.TaskSaturationGtuColorer
| Bug |
Category |
Details |
Line |
Priority |
| org.opentrafficsim.animation.gtu.colorer.TaskSaturationGtuColorer.getLegend() may expose internal representation by returning TaskSaturationGtuColorer.LEGEND |
MALICIOUS_CODE |
EI_EXPOSE_REP |
89 |
Medium |