SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.9.8

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
13 10 0 0

Files

Class Bugs
nl.tudelft.simulation.dsol.animation.gis.map.Feature 4
nl.tudelft.simulation.dsol.animation.gis.map.GisMap 2
nl.tudelft.simulation.dsol.animation.gis.map.Layer 2
nl.tudelft.simulation.dsol.animation.gis.map.MapImage 2

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

Bug Category Details Line Priority
nl.tudelft.simulation.dsol.animation.gis.map.Feature.getLayer() may expose internal representation by returning Feature.layer MALICIOUS_CODE EI_EXPOSE_REP 270 Medium
new nl.tudelft.simulation.dsol.animation.gis.map.Feature(LayerInterface) may expose internal representation by storing an externally mutable object into Feature.layer MALICIOUS_CODE EI_EXPOSE_REP2 87 Medium
Unused field: nl.tudelft.simulation.dsol.animation.gis.map.Feature.pointAttributeNames PERFORMANCE UUF_UNUSED_FIELD Not available Medium
Unused field: nl.tudelft.simulation.dsol.animation.gis.map.Feature.shapeAttributeNames PERFORMANCE UUF_UNUSED_FIELD Not available Medium

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

Bug Category Details Line Priority
nl.tudelft.simulation.dsol.animation.gis.map.GisMap.getImage() may expose internal representation by returning GisMap.image MALICIOUS_CODE EI_EXPOSE_REP 314 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 380 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 41 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 47 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 42 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 48 Medium