SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.8.6

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
12 10 0 0

Files

Class Bugs
nl.tudelft.simulation.dsol.animation.gis.SerializablePath 2
nl.tudelft.simulation.dsol.animation.gis.map.Feature 1
nl.tudelft.simulation.dsol.animation.gis.map.GisMap 3
nl.tudelft.simulation.dsol.animation.gis.map.Layer 2
nl.tudelft.simulation.dsol.animation.gis.map.MapImage 2

nl.tudelft.simulation.dsol.animation.gis.SerializablePath

Bug Category Details Line Priority
Overridable method readFloat is called from readObject. MALICIOUS_CODE MC_OVERRIDABLE_METHOD_CALL_IN_READ_OBJECT 136 Medium
Overridable method readInt is called from readObject. MALICIOUS_CODE MC_OVERRIDABLE_METHOD_CALL_IN_READ_OBJECT 127 Medium

nl.tudelft.simulation.dsol.animation.gis.map.Feature

Bug Category Details Line Priority
nl.tudelft.simulation.dsol.animation.gis.map.Feature.getShapes() may expose internal representation by returning Feature.shapes MALICIOUS_CODE EI_EXPOSE_REP 117 Medium

nl.tudelft.simulation.dsol.animation.gis.map.GisMap

Bug Category Details Line Priority
Dead store to scale in nl.tudelft.simulation.dsol.animation.gis.map.GisMap.drawMap(Graphics2D) STYLE DLS_DEAD_LOCAL_STORE 205 Medium
nl.tudelft.simulation.dsol.animation.gis.map.GisMap.getImage() may expose internal representation by returning GisMap.image MALICIOUS_CODE EI_EXPOSE_REP 279 Medium
nl.tudelft.simulation.dsol.animation.gis.map.GisMap.setImage(MapImageInterface) may expose internal representation by storing an externally mutable object into GisMap.image MALICIOUS_CODE EI_EXPOSE_REP2 346 Medium

nl.tudelft.simulation.dsol.animation.gis.map.Layer

Bug Category Details Line Priority
nl.tudelft.simulation.dsol.animation.gis.map.Layer.getFeatures() may expose internal representation by returning Layer.features MALICIOUS_CODE EI_EXPOSE_REP 42 Medium
nl.tudelft.simulation.dsol.animation.gis.map.Layer.setFeatures(List) may expose internal representation by storing an externally mutable object into Layer.features MALICIOUS_CODE EI_EXPOSE_REP2 49 Medium

nl.tudelft.simulation.dsol.animation.gis.map.MapImage

Bug Category Details Line Priority
nl.tudelft.simulation.dsol.animation.gis.map.MapImage.getSize() may expose internal representation by returning MapImage.size MALICIOUS_CODE EI_EXPOSE_REP 48 Medium
nl.tudelft.simulation.dsol.animation.gis.map.MapImage.setSize(Dimension) may expose internal representation by storing an externally mutable object into MapImage.size MALICIOUS_CODE EI_EXPOSE_REP2 55 Medium