SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.9.3

Threshold is medium

Effort is max

Summary

Classes Bugs Errors Missing Classes
26 33 0 2

Files

Class Bugs
com.googlecode.catchexception.throwable.CatchThrowable 1
com.googlecode.catchexception.throwable.CatchThrowableTest 18
com.googlecode.catchexception.throwable.ThrowableNotThrownAssertionError 1
com.googlecode.catchexception.throwable.apis.BDDCatchThrowableTest 9
com.googlecode.catchexception.throwable.apis.CatchThrowableHamcrestMatchersTest 3
com.googlecode.catchexception.throwable.matcher.Find 1

com.googlecode.catchexception.throwable.CatchThrowable

Bug Category Details Line Priority
Static or private method com.googlecode.catchexception.throwable.CatchThrowable.caughtThrowable(Class) has unused parameters STYLE UP_UNUSED_PARAMETER 60 Medium

com.googlecode.catchexception.throwable.CatchThrowableTest

Bug Category Details Line Priority
Class com.googlecode.catchexception.throwable.CatchThrowableTest defines fields that are used only as locals CORRECTNESS FCBL_FIELD_COULD_BE_LOCAL 44 Medium
Class com.googlecode.catchexception.throwable.CatchThrowableTest defines fields that are used only as locals CORRECTNESS FCBL_FIELD_COULD_BE_LOCAL 49 Medium
Non-virtual method call in com.googlecode.catchexception.throwable.CatchThrowableTest.catchExceptionObjExcMissingArgumentObject() passes null for non-null parameter of CatchThrowable.catchThrowable(ThrowingCallable, Class) CORRECTNESS NP_NULL_PARAM_DEREF_NONVIRTUAL 158 High
Non-virtual method call in com.googlecode.catchexception.throwable.CatchThrowableTest.catchExceptionObjMissingArgumentObject() passes null for non-null parameter of CatchThrowable.catchThrowable(ThrowingCallable) CORRECTNESS NP_NULL_PARAM_DEREF_NONVIRTUAL 362 High
Non-virtual method call in com.googlecode.catchexception.throwable.CatchThrowableTest.testverifyThrowable_ObjExc_missingArgument_Object() passes null for non-null parameter of CatchThrowable.verifyThrowable(ThrowingCallable, Class) CORRECTNESS NP_NULL_PARAM_DEREF_NONVIRTUAL 273 High
Non-virtual method call in com.googlecode.catchexception.throwable.CatchThrowableTest.testverifyThrowable_Obj_missingArgument_Object() passes null for non-null parameter of CatchThrowable.verifyThrowable(ThrowingCallable) CORRECTNESS NP_NULL_PARAM_DEREF_NONVIRTUAL 320 High
Return value of java.util.List.get(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 89 Medium
Return value of java.util.List.get(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 129 Medium
Return value of java.util.List.get(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 102 Medium
Return value of java.util.List.get(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 115 Medium
Return value of java.util.List.get(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 348 Medium
Return value of java.util.List.get(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 189 Medium
Return value of java.util.List.get(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 237 Medium
Return value of java.util.List.get(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 202 Medium
Return value of java.util.List.get(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 216 Medium
Return value of java.util.List.get(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 306 Medium
Unread field: com.googlecode.catchexception.throwable.CatchThrowableTest.expectedMessage; should this field be static? PERFORMANCE SS_SHOULD_BE_STATIC 44 Medium
Unread field: com.googlecode.catchexception.throwable.CatchThrowableTest.expectedMessageJdk9on; should this field be static? PERFORMANCE SS_SHOULD_BE_STATIC 49 Medium

com.googlecode.catchexception.throwable.ThrowableNotThrownAssertionError

Bug Category Details Line Priority
Class com.googlecode.catchexception.throwable.ThrowableNotThrownAssertionError defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium

com.googlecode.catchexception.throwable.apis.BDDCatchThrowableTest

Bug Category Details Line Priority
Class com.googlecode.catchexception.throwable.apis.BDDCatchThrowableTest defines fields that are used only as locals CORRECTNESS FCBL_FIELD_COULD_BE_LOCAL 37 Medium
Class com.googlecode.catchexception.throwable.apis.BDDCatchThrowableTest defines fields that are used only as locals CORRECTNESS FCBL_FIELD_COULD_BE_LOCAL 42 Medium
Return value of java.util.List.get(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 76 Medium
Return value of java.util.List.get(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 54 Medium
Return value of java.util.List.get(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 98 Medium
Return value of java.util.List.get(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 104 Medium
Return value of java.util.List.get(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 114 Medium
Unread field: com.googlecode.catchexception.throwable.apis.BDDCatchThrowableTest.expectedMessageJdk9on; should this field be static? PERFORMANCE SS_SHOULD_BE_STATIC 37 Medium
Unread field: com.googlecode.catchexception.throwable.apis.BDDCatchThrowableTest.expectedMessageJdk9on500; should this field be static? PERFORMANCE SS_SHOULD_BE_STATIC 42 Medium

com.googlecode.catchexception.throwable.apis.CatchThrowableHamcrestMatchersTest

Bug Category Details Line Priority
Class com.googlecode.catchexception.throwable.apis.CatchThrowableHamcrestMatchersTest defines fields that are used only as locals CORRECTNESS FCBL_FIELD_COULD_BE_LOCAL 47 Medium
Return value of java.util.List.get(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 66 Medium
Unread field: com.googlecode.catchexception.throwable.apis.CatchThrowableHamcrestMatchersTest.expectedMessageJdk9on; should this field be static? PERFORMANCE SS_SHOULD_BE_STATIC 47 Medium

com.googlecode.catchexception.throwable.matcher.Find

Bug Category Details Line Priority
Class com.googlecode.catchexception.throwable.matcher.Find defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium