FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 1.2.0

Threshold is Low

Effort is Default

Summary

Classes Bugs Errors Missing Classes
211 23 0 0

Files

Class Bugs
com.philemonworks.selfdiagnose.CollectionIteratorTask 1
com.philemonworks.selfdiagnose.PatternMatchingTask 1
com.philemonworks.selfdiagnose.SelfDiagnose 2
com.philemonworks.selfdiagnose.SelfDiagnoseHandler 4
com.philemonworks.selfdiagnose.check.CheckBeanProperty 1
com.philemonworks.selfdiagnose.check.CheckDatabaseTableExists 1
com.philemonworks.selfdiagnose.check.CheckFileContainsString 4
com.philemonworks.selfdiagnose.check.CheckJNDIBinding 1
com.philemonworks.selfdiagnose.check.CheckPropertyValuesAreJavaTypes 2
com.philemonworks.selfdiagnose.check.CheckResourceAccessible 1
com.philemonworks.selfdiagnose.check.CheckResourceBundleKey 1
com.philemonworks.selfdiagnose.check.CheckResourceProperty 1
com.philemonworks.selfdiagnose.check.CheckURLReachable 2
com.philemonworks.selfdiagnose.output.AtomFeedReporter 1

com.philemonworks.selfdiagnose.CollectionIteratorTask

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

com.philemonworks.selfdiagnose.PatternMatchingTask

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

com.philemonworks.selfdiagnose.SelfDiagnose

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

com.philemonworks.selfdiagnose.SelfDiagnoseHandler

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

com.philemonworks.selfdiagnose.check.CheckBeanProperty

Bug Category Details Line
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 86

com.philemonworks.selfdiagnose.check.CheckDatabaseTableExists

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

com.philemonworks.selfdiagnose.check.CheckFileContainsString

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

com.philemonworks.selfdiagnose.check.CheckJNDIBinding

Bug Category Details Line
CheckJNDIBinding.valueClass not initialized in constructor STYLE UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR Not available

com.philemonworks.selfdiagnose.check.CheckPropertyValuesAreJavaTypes

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

com.philemonworks.selfdiagnose.check.CheckResourceAccessible

Bug Category Details Line
com.philemonworks.selfdiagnose.check.CheckResourceAccessible is Serializable; consider declaring a serialVersionUID BAD_PRACTICE SE_NO_SERIALVERSIONID Not available

com.philemonworks.selfdiagnose.check.CheckResourceBundleKey

Bug Category Details Line
com.philemonworks.selfdiagnose.check.CheckResourceBundleKey is Serializable; consider declaring a serialVersionUID BAD_PRACTICE SE_NO_SERIALVERSIONID Not available

com.philemonworks.selfdiagnose.check.CheckResourceProperty

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

com.philemonworks.selfdiagnose.check.CheckURLReachable

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

com.philemonworks.selfdiagnose.output.AtomFeedReporter

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