The following document contains the results of FindBugs Report
FindBugs Version is 1.2.0
Threshold is Low
Effort is Default
| Classes | Bugs | Errors | Missing Classes |
|---|---|---|---|
| 211 | 23 | 0 | 0 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Unchecked/unconfirmed cast from com.philemonworks.selfdiagnose.DiagnosticTaskResult to com.philemonworks.selfdiagnose.CompositeDiagnosticTaskResult in com.philemonworks.selfdiagnose.CollectionIteratorTask.run(ExecutionContext, DiagnosticTaskResult) | STYLE | BC_UNCONFIRMED_CAST | 45 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Method com.philemonworks.selfdiagnose.PatternMatchingTask.checkValueAgainstPattern(DiagnosticTaskResult, String, String, String, Object) invokes toString() method on a String | PERFORMANCE | DM_STRING_TOSTRING | 64 |
| Bug | Category | Details | Line |
|---|---|---|---|
| com.philemonworks.selfdiagnose.SelfDiagnose.CONFIG_URL should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 57 |
| Exception is caught when Exception is not thrown in com.philemonworks.selfdiagnose.SelfDiagnose.configure(URL) | STYLE | REC_CATCH_EXCEPTION | 111 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Use of non-localized String.toUpperCase() or String.toLowerCase | I18N | DM_CONVERT_CASE | 57 |
| Use of non-localized String.toUpperCase() or String.toLowerCase | I18N | DM_CONVERT_CASE | 81 |
| Exception is caught when Exception is not thrown in com.philemonworks.selfdiagnose.SelfDiagnoseHandler.handleCustomTask(Attributes) | STYLE | REC_CATCH_EXCEPTION | 112 |
| Exception is caught when Exception is not thrown in com.philemonworks.selfdiagnose.SelfDiagnoseHandler.startElement(String, String, String, Attributes) | STYLE | REC_CATCH_EXCEPTION | 88 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Use of non-localized String.toUpperCase() or String.toLowerCase | I18N | DM_CONVERT_CASE | 86 |
| Bug | Category | Details | Line |
|---|---|---|---|
| A prepared statement is generated from a nonconstant String at com.philemonworks.selfdiagnose.check.CheckDatabaseTableExists.run(ExecutionContext, DiagnosticTaskResult) | BAD_PRACTICE | SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING | 66 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Possible null pointer dereference of dis in com.philemonworks.selfdiagnose.check.CheckFileContainsString.run(ExecutionContext, DiagnosticTaskResult) | CORRECTNESS | NP_NULL_ON_SOME_PATH | 119 |
| com.philemonworks.selfdiagnose.check.CheckFileContainsString.run(ExecutionContext, DiagnosticTaskResult) may fail to close stream | BAD_PRACTICE | OS_OPEN_STREAM | 97 |
| Redundant nullcheck of com.philemonworks.selfdiagnose.check.CheckFileContainsString.name which is known to be null in com.philemonworks.selfdiagnose.check.CheckFileContainsString.run(ExecutionContext, DiagnosticTaskResult) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE | 92 |
| CheckFileContainsString.string not initialized in constructor | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| CheckJNDIBinding.valueClass not initialized in constructor | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Unchecked/unconfirmed cast from com.philemonworks.selfdiagnose.DiagnosticTaskResult to com.philemonworks.selfdiagnose.CompositeDiagnosticTaskResult in com.philemonworks.selfdiagnose.check.CheckPropertyValuesAreJavaTypes.run(ExecutionContext, DiagnosticTaskResult) | STYLE | BC_UNCONFIRMED_CAST | 89 |
| com.philemonworks.selfdiagnose.check.CheckPropertyValuesAreJavaTypes is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| com.philemonworks.selfdiagnose.check.CheckResourceAccessible is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| com.philemonworks.selfdiagnose.check.CheckResourceBundleKey is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Redundant nullcheck of com.philemonworks.selfdiagnose.PatternMatchingTask.pattern which is known to be null in com.philemonworks.selfdiagnose.check.CheckResourceProperty.run(ExecutionContext, DiagnosticTaskResult) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE | 98 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Possible null pointer dereference of newURL in com.philemonworks.selfdiagnose.check.CheckURLReachable.run(ExecutionContext, DiagnosticTaskResult) on exception path | CORRECTNESS | NP_NULL_ON_SOME_PATH_EXCEPTION | 96 |
| com.philemonworks.selfdiagnose.check.CheckURLReachable.run(ExecutionContext, DiagnosticTaskResult) may fail to close stream on exception | BAD_PRACTICE | OS_OPEN_STREAM_EXCEPTION_PATH | 99 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Method com.philemonworks.selfdiagnose.output.AtomFeedReporter.writeElements(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 55 |