The following document contains the results of FindBugs Report
FindBugs Version is 1.1.1
Threshold is Low
Effort is Default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
131 | 7 | 0 | 11 |
Class | Bugs |
---|---|
org.apache.shale.examples.sqlbrowser.Application | 2 |
org.apache.shale.examples.sqlbrowser.Listener | 3 |
org.apache.shale.examples.sqlbrowser.Query | 2 |
Bug | Category | Details | Line |
---|---|---|---|
Dead store to context in method org.apache.shale.examples.sqlbrowser.Application.internal(java.util.List) | STYLE | DLS_DEAD_LOCAL_STORE | 138 |
org.apache.shale.examples.sqlbrowser.Application.getDataSources() may expose internal representation by returning org.apache.shale.examples.sqlbrowser.Application.dataSources | MALICIOUS_CODE | EI_EXPOSE_REP | 88 |
Bug | Category | Details | Line |
---|---|---|---|
Possible null pointer dereference of e in org.apache.shale.examples.sqlbrowser.Listener.contextInitialized(javax.servlet.ServletContextEvent) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 119 |
org.apache.shale.examples.sqlbrowser.Listener.logger is transient but org.apache.shale.examples.sqlbrowser.Listener isn't Serializable | STYLE | SE_TRANSIENT_FIELD_OF_NONSERIALIZABLE_CLASS | Not available |
Method org.apache.shale.examples.sqlbrowser.Listener.populate(javax.sql.DataSource) passes a nonconstant String to an execute method on an SQL statement | BAD_PRACTICE | SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE | 196 |
Bug | Category | Details | Line |
---|---|---|---|
Method org.apache.shale.examples.sqlbrowser.Query.prerender() catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught | STYLE | REC_CATCH_EXCEPTION | 227 |
A prepared statement is generated from a nonconstant String at org.apache.shale.examples.sqlbrowser.Query.prerender() | BAD_PRACTICE | SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING | 181 |