The following document contains the results of SpotBugs
SpotBugs Version is 4.7.0
Threshold is medium
Effort is default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
13 | 18 | 0 | 0 |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to diffusionLimitedAggregation in org.woehlke.computer.kurzweil.tabs.dla.DiffusionLimitedAggregationDesktop.main(String[]) | STYLE | DLS_DEAD_LOCAL_STORE | 21 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Synchronization on Boolean in org.woehlke.computer.kurzweil.tabs.dla.control.ControllerThread.exit() | MT_CORRECTNESS | DL_SYNCHRONIZATION_ON_BOOLEAN | 49 | High |
Synchronization on Boolean in org.woehlke.computer.kurzweil.tabs.dla.control.ControllerThread.run() | MT_CORRECTNESS | DL_SYNCHRONIZATION_ON_BOOLEAN | 37 | High |
new org.woehlke.computer.kurzweil.tabs.dla.control.ControllerThread(WorldCanvas, Particles) may expose internal representation by storing an externally mutable object into ControllerThread.canvas | MALICIOUS_CODE | EI_EXPOSE_REP2 | 30 | Medium |
Synchronization on ControllerThread.goOn in futile attempt to guard it | MT_CORRECTNESS | ML_SYNC_ON_FIELD_TO_GUARD_CHANGING_THAT_FIELD | 50 | Medium |
Class org.woehlke.computer.kurzweil.tabs.dla.control.ControllerThread implements same interface as superclass | STYLE | RI_REDUNDANT_INTERFACES | 28-52 | Low |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new org.woehlke.computer.kurzweil.tabs.dla.model.Dendrite(Point) may expose internal representation by storing an externally mutable object into Dendrite.dimensions | MALICIOUS_CODE | EI_EXPOSE_REP2 | 25 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Random object created and used only once in new org.woehlke.computer.kurzweil.tabs.dla.model.Particles(Point) | BAD_PRACTICE | DMI_RANDOM_USED_ONLY_ONCE | 37 | High |
org.woehlke.computer.kurzweil.tabs.dla.model.Particles.getParticles() may expose internal representation by returning Particles.particles | MALICIOUS_CODE | EI_EXPOSE_REP | 45 | Medium |
new org.woehlke.computer.kurzweil.tabs.dla.model.Particles(Point) may expose internal representation by storing an externally mutable object into Particles.worldDimensions | MALICIOUS_CODE | EI_EXPOSE_REP2 | 34 | Medium |
Switch statement found in org.woehlke.computer.kurzweil.tabs.dla.model.Particles.move() where default case is missing | STYLE | SF_SWITCH_NO_DEFAULT | 54-58 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.woehlke.computer.kurzweil.tabs.dla.view.WorldCanvas.getWorldDimensions() may expose internal representation by returning WorldCanvas.worldDimensions | MALICIOUS_CODE | EI_EXPOSE_REP | 70 | Medium |
new org.woehlke.computer.kurzweil.tabs.dla.view.WorldCanvas(Point, Particles) may expose internal representation by storing an externally mutable object into WorldCanvas.worldDimensions | MALICIOUS_CODE | EI_EXPOSE_REP2 | 33 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class org.woehlke.computer.kurzweil.tabs.dla.view.applet.DiffusionLimitedAggregationApplet implements same interface as superclass | STYLE | RI_REDUNDANT_INTERFACES | 26-58 | Low |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Overridable method addWindowListener is called from constructor new org.woehlke.computer.kurzweil.tabs.dla.view.desktop.DiffusionLimitedAggregationFrame(). | MALICIOUS_CODE | MC_OVERRIDABLE_METHOD_CALL_IN_CONSTRUCTOR | 44 | Low |
Overridable method pack is called from constructor new org.woehlke.computer.kurzweil.tabs.dla.view.desktop.DiffusionLimitedAggregationFrame(). | MALICIOUS_CODE | MC_OVERRIDABLE_METHOD_CALL_IN_CONSTRUCTOR | 41 | Low |
Overridable method toFront is called from constructor new org.woehlke.computer.kurzweil.tabs.dla.view.desktop.DiffusionLimitedAggregationFrame(). | MALICIOUS_CODE | MC_OVERRIDABLE_METHOD_CALL_IN_CONSTRUCTOR | 43 | Low |
Class org.woehlke.computer.kurzweil.tabs.dla.view.desktop.DiffusionLimitedAggregationFrame implements same interface as superclass | STYLE | RI_REDUNDANT_INTERFACES | 36-76 | Low |