FindBugs version: 1.3.8
4141 lines of code analyzed, in 64 classes, in 10 packages.
| Metric | Total | Density* |
|---|---|---|
| High Priority Warnings | 0.00 | |
| Medium Priority Warnings | 1 | 0.24 |
| Total Warnings | 1 | 0.24 |
(* Defects per Thousand lines of non-commenting source statements)
| Warning Type | Number |
|---|---|
| Bad practice Warnings | 1 |
| Total | 1 |
Click on a warning row to see full context information.
| Code | Warning |
|---|---|
| NP | org.qedeq.kernel.xml.handler.common.SimpleAttributes.getBoolean(String) has Boolean return type and returns explicit null |
A method that returns either Boolean.TRUE, Boolean.FALSE or null is an accident waiting to happen. This method can be invoked as though it returned a value of type boolean, and the compiler will insert automatic unboxing of the Boolean value. If a null value is returned, this will result in a NullPointerException.