FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 1.1.1

Threshold is Normal

Effort is Max

Summary

ClassesBugsErrorsMissing Classes
2661803

Files

ClassBugs
zombies.ZombieAttack2
zombies.engine.cards.Weapon7
zombies.engine.map.GameMap4
zombies.gfx.TilesetGfx2
zombies.gfx.TilesetLoader2
zombies.util.PathUtil1

zombies.ZombieAttack

BugCategoryDetailsLine
zombies.ZombieAttack.actionPerformed(java.awt.event.ActionEvent) invokes System.exit(...), which shuts down the entire virtual machineBAD_PRACTICEDM_EXIT177
Class zombies.ZombieAttack defines non-transient non-serializable instance field gameBAD_PRACTICESE_BAD_FIELDNot available

zombies.engine.cards.Weapon

BugCategoryDetailsLine
Unused field: zombies.engine.cards.Weapon.APtoShootPERFORMANCEUUF_UNUSED_FIELDNot available
Unused field: zombies.engine.cards.Weapon.APtoSmashBarricadePERFORMANCEUUF_UNUSED_FIELDNot available
Unused field: zombies.engine.cards.Weapon.oopsLeftPERFORMANCEUUF_UNUSED_FIELDNot available
Unused field: zombies.engine.cards.Weapon.secondWeaponPERFORMANCEUUF_UNUSED_FIELDNot available
Unused field: zombies.engine.cards.Weapon.shotMaxDistancePERFORMANCEUUF_UNUSED_FIELDNot available
Unused field: zombies.engine.cards.Weapon.shotMinDistancePERFORMANCEUUF_UNUSED_FIELDNot available
Unused field: zombies.engine.cards.Weapon.splashMapPERFORMANCEUUF_UNUSED_FIELDNot available

zombies.engine.map.GameMap

BugCategoryDetailsLine
zombies.engine.map.GameMap.getHumans() may expose internal representation by returning zombies.engine.map.GameMap.humansMALICIOUS_CODEEI_EXPOSE_REP85
zombies.engine.map.GameMap.getZombies() may expose internal representation by returning zombies.engine.map.GameMap.zombiesMALICIOUS_CODEEI_EXPOSE_REP88
zombies.engine.map.GameMap.setHumans(zombies.engine.critter.Human[]) may expose internal representation by storing an externally mutable object into zombies.engine.map.GameMap.humansMALICIOUS_CODEEI_EXPOSE_REP286
zombies.engine.map.GameMap.setZombies(zombies.engine.critter.Zombie[]) may expose internal representation by storing an externally mutable object into zombies.engine.map.GameMap.zombiesMALICIOUS_CODEEI_EXPOSE_REP289

zombies.gfx.TilesetGfx

BugCategoryDetailsLine
zombies.gfx.TilesetGfx.TilesetGfx(String,int,int,TileGfx[][],java.awt.Image[][][],java.awt.Image) may expose internal representation by storing an externally mutable object into zombies.gfx.TilesetGfx.creaturesMALICIOUS_CODEEI_EXPOSE_REP250
zombies.gfx.TilesetGfx.TilesetGfx(String,int,int,TileGfx[][],java.awt.Image[][][],java.awt.Image) may expose internal representation by storing an externally mutable object into zombies.gfx.TilesetGfx.tilesMALICIOUS_CODEEI_EXPOSE_REP249

zombies.gfx.TilesetLoader

BugCategoryDetailsLine
Method zombies.gfx.TilesetLoader.load(String,java.awt.MediaTracker) invokes inefficient Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTOR107
Method zombies.gfx.TilesetLoader.load(String,java.awt.MediaTracker) invokes inefficient Integer(int) constructor; use Integer.valueOf(int) insteadPERFORMANCEDM_NUMBER_CTOR119

zombies.util.PathUtil

BugCategoryDetailsLine
Method zombies.util.PathUtil.extractPathInfo(String) invokes toString() method on a String; just use the StringPERFORMANCEDM_STRING_TOSTRING29