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
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 185 Medium
Method java8testing.InterfacesWithMethodBodiesTest.mockClassWithInheritedDefaultMethod(InterfacesWithMethodBodiesTest$ClassWhichInheritsDefaultMethodFromInterface) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 124 Medium
Method java8testing.InterfacesWithMethodBodiesTest.mockClassWithOverriddenDefaultMethod(InterfacesWithMethodBodiesTest$ClassWhichOverridesDefaultMethodFromInterface) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 93 Medium
Method java8testing.InterfacesWithMethodBodiesTest.mockFunctionalInterfaceFromJRE(Consumer) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 308 Medium
Method java8testing.InterfacesWithMethodBodiesTest.mockInterfaceWithDefaultMethods(InterfacesWithMethodBodiesTest$InterfaceWithDefaultMethods) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 72 Medium
Method java8testing.InterfacesWithMethodBodiesTest.mockNonPublicInterfaceHierarchyWithDefaultAndStaticMethods(InterfacesWithMethodBodiesTest$NonPublicBase, InterfacesWithMethodBodiesTest$NonPublicDerived) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 391 Medium
Method java8testing.InterfacesWithMethodBodiesTest.mockNonPublicInterfaceHierarchyWithDefaultAndStaticMethods(InterfacesWithMethodBodiesTest$NonPublicBase, InterfacesWithMethodBodiesTest$NonPublicDerived) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 406 Medium
Method java8testing.InterfacesWithMethodBodiesTest.partiallyMockObjectInheritingDefaultMethodsFromMultipleInterfaces() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 247 Medium
Method java8testing.InterfacesWithMethodBodiesTest.partiallyMockObjectInheritingDefaultMethodsFromMultipleInterfaces() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 265 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 74 Medium
Return value of InterfacesWithMethodBodiesTest$InterfaceWithDefaultMethods.regularMethod() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 76 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 95 Medium
Return value of InterfacesWithMethodBodiesTest$ClassWhichOverridesDefaultMethodFromInterface.regularMethod() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 97 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 189 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 267 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 314-315 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 393 Medium

java8testing.JUnit5Test

Bug Category Details Line Priority
Method java8testing.JUnit5Test.recordExpectationOnCollaborator() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 114 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 116 Medium

java8testing.TimeAPIFakingTest

Bug Category Details Line Priority
Method java8testing.TimeAPIFakingTest.fakeInstant() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 62 Medium
Method java8testing.TimeAPIFakingTest.fakeLocalDateTime() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 44 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 47 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 65 High