SpotBugs Bug Detector Report
The following document contains the results of SpotBugs
SpotBugs Version is 4.9.8
Threshold is medium
Effort is max
Summary
| Classes | Bugs | Errors | Missing Classes |
|---|---|---|---|
| 26 | 38 | 0 | 0 |
Files
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 |
|---|---|---|---|---|
| The expectedMessage field in class com.googlecode.catchexception.throwable.CatchThrowableTest is used only as a local, but defined on class level | CORRECTNESS | FCBL_FIELD_COULD_BE_LOCAL | 44 | Medium |
| The expectedMessageJdk9on field in class com.googlecode.catchexception.throwable.CatchThrowableTest is used only as a local, but defined on class level | 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 |
| Instance field com.googlecode.catchexception.throwable.CatchThrowableTest.expectedMessage likely could be defined as static | CORRECTNESS | SPP_FIELD_COULD_BE_STATIC | Not available | Medium |
| Instance field com.googlecode.catchexception.throwable.CatchThrowableTest.expectedMessageJdk9on likely could be defined as static | CORRECTNESS | SPP_FIELD_COULD_BE_STATIC | Not available | 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 |
|---|---|---|---|---|
| The expectedMessageJdk9on field in class com.googlecode.catchexception.throwable.apis.BDDCatchThrowableTest is used only as a local, but defined on class level | CORRECTNESS | FCBL_FIELD_COULD_BE_LOCAL | 37 | Medium |
| The expectedMessageJdk9on500 field in class com.googlecode.catchexception.throwable.apis.BDDCatchThrowableTest is used only as a local, but defined on class level | 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 |
| Instance field com.googlecode.catchexception.throwable.apis.BDDCatchThrowableTest.expectedMessageJdk9on likely could be defined as static | CORRECTNESS | SPP_FIELD_COULD_BE_STATIC | Not available | Medium |
| Instance field com.googlecode.catchexception.throwable.apis.BDDCatchThrowableTest.expectedMessageJdk9on500 likely could be defined as static | CORRECTNESS | SPP_FIELD_COULD_BE_STATIC | Not available | 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 |
|---|---|---|---|---|
| The expectedMessageJdk9on field in class com.googlecode.catchexception.throwable.apis.CatchThrowableHamcrestMatchersTest is used only as a local, but defined on class level | 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 |
| Instance field com.googlecode.catchexception.throwable.apis.CatchThrowableHamcrestMatchersTest.expectedMessageJdk9on likely could be defined as static | CORRECTNESS | SPP_FIELD_COULD_BE_STATIC | Not available | 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 |


