FindBugs version: 1.3.8
4995 lines of code analyzed, in 161 classes, in 9 packages.
Metric | Total | Density* |
---|---|---|
High Priority Warnings | 0.00 | |
Medium Priority Warnings | 2 | 0.40 |
Total Warnings | 2 | 0.40 |
(* Defects per Thousand lines of non-commenting source statements)
Warning Type | Number |
---|---|
Bad practice Warnings | 1 |
Dodgy Warnings | 1 |
Total | 2 |
Click on a warning row to see full context information.
Code | Warning |
---|---|
Dm | org.qedeq.gui.se.control.ExitAction.actionPerformed(ActionEvent) invokes System.exit(...), which shuts down the entire virtual machine |
Code | Warning |
---|---|
DLS | Dead store to elements in org.qedeq.gui.se.pane.ParserPane$1.actionPerformed(ActionEvent) |
This instruction assigns a value to a local variable, but the value is not read or used in any subsequent instruction. Often, this indicates an error, because the value computed is never used.
Note that Sun's javac compiler often generates dead stores for final local variables. Because FindBugs is a bytecode-based tool, there is no easy way to eliminate these false positives.
Invoking System.exit shuts down the entire Java virtual machine. This should only been done when it is appropriate. Such calls make it hard or impossible for your code to be invoked by other code. Consider throwing a RuntimeException instead.