FindBugs Bug Detector Report
The following document contains the results of FindBugs Report
FindBugs Version is 2.0.2
Threshold is high
Effort is max
Summary
Classes |
Bugs |
Errors |
Missing Classes |
36 |
27 |
0 |
0 |
cs.pancava.caltha.Editor
Bug |
Category |
Details |
Line |
Priority |
cs.pancava.caltha.Editor.showDialogMissingResources(String) invokes System.exit(...), which shuts down the entire virtual machine |
BAD_PRACTICE |
DM_EXIT |
256 |
Low |
Class cs.pancava.caltha.Editor defines non-transient non-serializable instance field menu |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
Low |
Write to static field cs.pancava.caltha.Editor.eDesktop from instance method cs.pancava.caltha.Editor.createBodyDesktop() |
STYLE |
ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD |
333 |
Medium |
Write to static field cs.pancava.caltha.Editor.eDesktop from instance method cs.pancava.caltha.Editor.createBodyDesktopNone() |
STYLE |
ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD |
347 |
Medium |
Write to static field cs.pancava.caltha.Editor.eDesktop from instance method cs.pancava.caltha.Editor.createBodyDesktopTextBasedGames() |
STYLE |
ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD |
366 |
Medium |
Write to static field cs.pancava.caltha.Editor.editorNameS from instance method cs.pancava.caltha.Editor.updateText() |
STYLE |
ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD |
323 |
Medium |
cs.pancava.caltha.MainMenu
Bug |
Category |
Details |
Line |
Priority |
Exception is caught when Exception is not thrown in cs.pancava.caltha.MainMenu.setLookAndFeel(String, String) |
STYLE |
REC_CATCH_EXCEPTION |
1151 |
|
Useless control flow in cs.pancava.caltha.MainMenu.addMenu(String, String, String) |
STYLE |
UCF_USELESS_CONTROL_FLOW |
222 |
Low |
cs.pancava.caltha.MainMenu$1
Bug |
Category |
Details |
Line |
Priority |
cs.pancava.caltha.MainMenu$1.actionPerformed(ActionEvent) invokes System.exit(...), which shuts down the entire virtual machine |
BAD_PRACTICE |
DM_EXIT |
347 |
Medium |
The class cs.pancava.caltha.MainMenu$1 could be refactored into a named _static_ inner class |
PERFORMANCE |
SIC_INNER_SHOULD_BE_STATIC_ANON |
319-364 |
Low |
cs.pancava.caltha.desktop.EditorDesktopTextBasedGames
Bug |
Category |
Details |
Line |
Priority |
EditorDesktopTextBasedGames.dektop not initialized in constructor and dereferenced in cs.pancava.caltha.desktop.EditorDesktopTextBasedGames.resizeWin() |
STYLE |
UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR |
138 |
Low |
EditorDesktopTextBasedGames.waSplitPane not initialized in constructor and dereferenced in cs.pancava.caltha.desktop.EditorDesktopTextBasedGames.resizeWin() |
STYLE |
UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR |
140 |
Low |
cs.pancava.caltha.graphics.EditorGraphicsWorld2D
Bug |
Category |
Details |
Line |
Priority |
Unchecked/unconfirmed cast from java.awt.Graphics to java.awt.Graphics2D in cs.pancava.caltha.graphics.EditorGraphicsWorld2D.update(Graphics) |
STYLE |
BC_UNCONFIRMED_CAST |
475 |
Low |
Dead store to m in cs.pancava.caltha.graphics.EditorGraphicsWorld2D.mousePressed(MouseEvent) |
STYLE |
DLS_DEAD_LOCAL_STORE |
298 |
Medium |
Dead store to nalezenObjekt in cs.pancava.caltha.graphics.EditorGraphicsWorld2D.mousePressed(MouseEvent) |
STYLE |
DLS_DEAD_LOCAL_STORE |
283 |
Medium |
Unread field: cs.pancava.caltha.graphics.EditorGraphicsWorld2D.MULTIPLE_NEW_AREA_X; should this field be static? |
PERFORMANCE |
SS_SHOULD_BE_STATIC |
107 |
Medium |
Unread field: cs.pancava.caltha.graphics.EditorGraphicsWorld2D.MULTIPLE_NEW_AREA_Y; should this field be static? |
PERFORMANCE |
SS_SHOULD_BE_STATIC |
112 |
Medium |
Unread field: cs.pancava.caltha.graphics.EditorGraphicsWorld2D.SCROLLBAR_GROWING_AREA_X; should this field be static? |
PERFORMANCE |
SS_SHOULD_BE_STATIC |
123 |
Medium |
Unread field: cs.pancava.caltha.graphics.EditorGraphicsWorld2D.SCROLLBAR_GROWING_AREA_Y; should this field be static? |
PERFORMANCE |
SS_SHOULD_BE_STATIC |
128 |
Medium |
Private method cs.pancava.caltha.graphics.EditorGraphicsWorld2D.deselectPreviousObject(int) is never called |
PERFORMANCE |
UPM_UNCALLED_PRIVATE_METHOD |
526-530 |
Low |
cs.pancava.caltha.menu.World2DPopupMenuListener
Bug |
Category |
Details |
Line |
Priority |
Unread field: cs.pancava.caltha.menu.World2DPopupMenuListener.ROOM_SIZE; should this field be static? |
PERFORMANCE |
SS_SHOULD_BE_STATIC |
82 |
Medium |
Write to static field cs.pancava.caltha.menu.World2DPopupMenuListener.popupMenu from instance method new cs.pancava.caltha.menu.World2DPopupMenuListener(EditorGraphicsWorld2D) |
STYLE |
ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD |
98 |
High |
Write to static field cs.pancava.caltha.menu.World2DPopupMenuListener.addRoomIM from instance method cs.pancava.caltha.menu.World2DPopupMenuListener.createItemMenuAddRoom() |
STYLE |
ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD |
184 |
|
Write to static field cs.pancava.caltha.menu.World2DPopupMenuListener.connectRoomIM from instance method cs.pancava.caltha.menu.World2DPopupMenuListener.createItemMenuConnectRoom() |
STYLE |
ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD |
219 |
|
Write to static field cs.pancava.caltha.menu.World2DPopupMenuListener.disconnectRoomIM from instance method cs.pancava.caltha.menu.World2DPopupMenuListener.createItemMenuDisconnectRoom() |
STYLE |
ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD |
247 |
|
Write to static field cs.pancava.caltha.menu.World2DPopupMenuListener.removeRoomIM from instance method cs.pancava.caltha.menu.World2DPopupMenuListener.createItemMenuRemoveRoom() |
STYLE |
ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD |
275 |
|
cs.pancava.caltha.worlds.World
Bug |
Category |
Details |
Line |
Priority |
Unread field: cs.pancava.caltha.worlds.World.worldNameS |
PERFORMANCE |
URF_UNREAD_FIELD |
64 |
Medium |