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
33 23 0 0

Files

Class Bugs
java8testing.InterfacesWithMethodBodiesTest 9
java8testing.InterfacesWithMethodBodiesTest$1 2
java8testing.InterfacesWithMethodBodiesTest$2 2
java8testing.InterfacesWithMethodBodiesTest$4 1
java8testing.InterfacesWithMethodBodiesTest$6 1
java8testing.InterfacesWithMethodBodiesTest$7$1 1
java8testing.InterfacesWithMethodBodiesTest$8 1
java8testing.JUnit5Test 1
java8testing.JUnit5Test$1 1
java8testing.TimeAPIFakingTest 2
java8testing.TimeAPIFakingTest$1 1
java8testing.TimeAPIFakingTest$2 1

java8testing.InterfacesWithMethodBodiesTest

Bug Category Details Line Priority
Method java8testing.InterfacesWithMethodBodiesTest.mockClassInheritingFromInterfaceHierarchy(InterfacesWithMethodBodiesTest$ClassInheritingFromInterfaceHierarchy) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 190 Medium
Method java8testing.InterfacesWithMethodBodiesTest.mockClassWithInheritedDefaultMethod(InterfacesWithMethodBodiesTest$ClassWhichInheritsDefaultMethodFromInterface) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 129 Medium
Method java8testing.InterfacesWithMethodBodiesTest.mockClassWithOverriddenDefaultMethod(InterfacesWithMethodBodiesTest$ClassWhichOverridesDefaultMethodFromInterface) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 98 Medium
Method java8testing.InterfacesWithMethodBodiesTest.mockFunctionalInterfaceFromJRE(Consumer) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 313 Medium
Method java8testing.InterfacesWithMethodBodiesTest.mockInterfaceWithDefaultMethods(InterfacesWithMethodBodiesTest$InterfaceWithDefaultMethods) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 77 Medium
Method java8testing.InterfacesWithMethodBodiesTest.mockNonPublicInterfaceHierarchyWithDefaultAndStaticMethods(InterfacesWithMethodBodiesTest$NonPublicBase, InterfacesWithMethodBodiesTest$NonPublicDerived) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 396 Medium
Method java8testing.InterfacesWithMethodBodiesTest.mockNonPublicInterfaceHierarchyWithDefaultAndStaticMethods(InterfacesWithMethodBodiesTest$NonPublicBase, InterfacesWithMethodBodiesTest$NonPublicDerived) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 411 Medium
Method java8testing.InterfacesWithMethodBodiesTest.partiallyMockObjectInheritingDefaultMethodsFromMultipleInterfaces() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 252 Medium
Method java8testing.InterfacesWithMethodBodiesTest.partiallyMockObjectInheritingDefaultMethodsFromMultipleInterfaces() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 270 Medium

java8testing.InterfacesWithMethodBodiesTest$1

Bug Category Details Line Priority
Return value of InterfacesWithMethodBodiesTest$InterfaceWithDefaultMethods.defaultMethod() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 79 Medium
Return value of InterfacesWithMethodBodiesTest$InterfaceWithDefaultMethods.regularMethod() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 81 Medium

java8testing.InterfacesWithMethodBodiesTest$2

Bug Category Details Line Priority
Return value of InterfacesWithMethodBodiesTest$ClassWhichOverridesDefaultMethodFromInterface.defaultMethod() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 100 Medium
Return value of InterfacesWithMethodBodiesTest$ClassWhichOverridesDefaultMethodFromInterface.regularMethod() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 102 Medium

java8testing.InterfacesWithMethodBodiesTest$4

Bug Category Details Line Priority
Return value of InterfacesWithMethodBodiesTest$ClassInheritingFromInterfaceHierarchy.regularMethod() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 194 Medium

java8testing.InterfacesWithMethodBodiesTest$6

Bug Category Details Line Priority
Method new java8testing.InterfacesWithMethodBodiesTest$6(InterfacesWithMethodBodiesTest, InterfacesWithMethodBodiesTest$ClassInheritingMultipleDefaultMethods) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 272 Medium

java8testing.InterfacesWithMethodBodiesTest$7$1

Bug Category Details Line Priority
Uncallable method java8testing.InterfacesWithMethodBodiesTest$7$1.delegate(String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 319-320 Medium

java8testing.InterfacesWithMethodBodiesTest$8

Bug Category Details Line Priority
Return value of InterfacesWithMethodBodiesTest$NonPublicBase.baseDefault() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 398 Medium

java8testing.JUnit5Test

Bug Category Details Line Priority
Method java8testing.JUnit5Test.recordExpectationOnCollaborator() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 119 Medium

java8testing.JUnit5Test$1

Bug Category Details Line Priority
Return value of Collaborator.doSomething(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 121 Medium

java8testing.TimeAPIFakingTest

Bug Category Details Line Priority
Method java8testing.TimeAPIFakingTest.fakeInstant() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 67 Medium
Method java8testing.TimeAPIFakingTest.fakeLocalDateTime() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 49 Medium

java8testing.TimeAPIFakingTest$1

Bug Category Details Line Priority
Uncallable method java8testing.TimeAPIFakingTest$1.now() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 52 High

java8testing.TimeAPIFakingTest$2

Bug Category Details Line Priority
Uncallable method java8testing.TimeAPIFakingTest$2.now() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 70 High