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
2221 2649 0 0

Files

Class Bugs
mockit.AssertionErrorMessagesTest 14
mockit.BaseTest 1
mockit.CapturingImplementationsTest 16
mockit.CapturingImplementationsTest$1 1
mockit.CapturingImplementationsTest$13 2
mockit.CapturingImplementationsTest$2 1
mockit.CapturingImplementationsTest$5 1
mockit.CapturingImplementationsTest$7 1
mockit.CapturingImplementationsTest$8 2
mockit.CapturingImplementationsTest$ServiceLocator 2
mockit.CapturingInstancesTest 2
mockit.CapturingInstancesTest$1 1
mockit.CapturingInstancesTest$2 1
mockit.CapturingInstancesTest$TestedUnit$3 1
mockit.CascadingFieldTest 16
mockit.CascadingFieldTest$1 2
mockit.CascadingFieldTest$6 2
mockit.CascadingFieldTest$7 1
mockit.CascadingFieldTest$8 1
mockit.CascadingFieldTest$8$1 1
mockit.CascadingFieldTest$9$1 1
mockit.CascadingFieldTest$Bar 1
mockit.CascadingFieldTest$BazCreatorAndConsumer 3
mockit.CascadingFieldTest$Foo 1
mockit.CascadingParametersTest 38
mockit.CascadingParametersTest$1 1
mockit.CascadingParametersTest$10 2
mockit.CascadingParametersTest$11 1
mockit.CascadingParametersTest$12 1
mockit.CascadingParametersTest$13 1
mockit.CascadingParametersTest$14 1
mockit.CascadingParametersTest$15 1
mockit.CascadingParametersTest$16 1
mockit.CascadingParametersTest$17 1
mockit.CascadingParametersTest$18 2
mockit.CascadingParametersTest$19 1
mockit.CascadingParametersTest$2 5
mockit.CascadingParametersTest$20 1
mockit.CascadingParametersTest$21 2
mockit.CascadingParametersTest$22 1
mockit.CascadingParametersTest$23 1
mockit.CascadingParametersTest$24 1
mockit.CascadingParametersTest$25 2
mockit.CascadingParametersTest$26 1
mockit.CascadingParametersTest$3 1
mockit.CascadingParametersTest$4 2
mockit.CascadingParametersTest$5 1
mockit.CascadingParametersTest$6 1
mockit.CascadingParametersTest$9 2
mockit.CascadingParametersTest$Bar 1
mockit.CascadingParametersTest$CustomException 1
mockit.CascadingParametersTest$Foo 1
mockit.CascadingParametersTest$SocketFactory 2
mockit.CascadingWithGenericsTest 5
mockit.CascadingWithGenericsTest$2 1
mockit.CascadingWithGenericsTest$5 1
mockit.CascadingWithGenericsTest$Bar 1
mockit.CascadingWithGenericsTest$Factory 1
mockit.CascadingWithGenericsTest$SubClass 1
mockit.CascadingWithGenericsTest$TypeWithUnusedTypeParameterInGenericMethod 1
mockit.ClassInitializationTest 1
mockit.ClassInitializationTest$AnotherDependent 2
mockit.ClassInitializationTest$Dependent 2
mockit.ClassLoadingAndJREMocksTest 11
mockit.ClassLoadingAndJREMocksTest$1 1
mockit.ClassLoadingAndJREMocksTest$2 1
mockit.ClassLoadingAndJREMocksTest$3 1
mockit.ClassLoadingAndJREMocksTest$4 2
mockit.ClassLoadingAndJREMocksTest$5 1
mockit.ClassLoadingAndJREMocksTest$6 1
mockit.ClassLoadingAndJREMocksTest$7 1
mockit.ClassWithObjectOverrides 2
mockit.CovariantReturnTypesTest 6
mockit.CovariantReturnTypesTest$5 1
mockit.DelegateInvocationProceedTest 16
mockit.DelegateInvocationProceedTest$1$1 1
mockit.DelegateInvocationProceedTest$10 2
mockit.DelegateInvocationProceedTest$10$1 1
mockit.DelegateInvocationProceedTest$11 3
mockit.DelegateInvocationProceedTest$11$1 1
mockit.DelegateInvocationProceedTest$11$2 1
mockit.DelegateInvocationProceedTest$12$1 1
mockit.DelegateInvocationProceedTest$13 2
mockit.DelegateInvocationProceedTest$2$1 1
mockit.DelegateInvocationProceedTest$3 4
mockit.DelegateInvocationProceedTest$3$1 1
mockit.DelegateInvocationProceedTest$3$2 1
mockit.DelegateInvocationProceedTest$4$1 2
mockit.DelegateInvocationProceedTest$5 4
mockit.DelegateInvocationProceedTest$5$1 1
mockit.DelegateInvocationProceedTest$5$2 1
mockit.DelegateInvocationProceedTest$6 2
mockit.DelegateInvocationProceedTest$6$1 1
mockit.DelegateInvocationProceedTest$7 2
mockit.DelegateInvocationProceedTest$7$1 1
mockit.DelegateInvocationProceedTest$8 2
mockit.DelegateInvocationProceedTest$8$1 1
mockit.DelegateInvocationProceedTest$8$2 1
mockit.DelegateInvocationProceedTest$9 1
mockit.DelegateInvocationProceedTest$9$1 1
mockit.DelegateInvocationTest 14
mockit.DelegateInvocationTest$1 1
mockit.DelegateInvocationTest$1$1 1
mockit.DelegateInvocationTest$10 2
mockit.DelegateInvocationTest$10$1 1
mockit.DelegateInvocationTest$2 2
mockit.DelegateInvocationTest$3 1
mockit.DelegateInvocationTest$3$1 3
mockit.DelegateInvocationTest$4 1
mockit.DelegateInvocationTest$4$1 2
mockit.DelegateInvocationTest$5 1
mockit.DelegateInvocationTest$5$1 2
mockit.DelegateInvocationTest$6 1
mockit.DelegateInvocationTest$6$1 1
mockit.DelegateInvocationTest$7 1
mockit.DelegateInvocationTest$7$1 2
mockit.DelegateInvocationTest$8 1
mockit.DelegateInvocationTest$8$1 1
mockit.DelegateInvocationTest$8$2 1
mockit.DelegateInvocationTest$8$3 1
mockit.DelegateInvocationTest$9 1
mockit.DelegateInvocationTest$9$1 1
mockit.DelegateTest 46
mockit.DelegateTest$1 1
mockit.DelegateTest$1$1 1
mockit.DelegateTest$1$2 2
mockit.DelegateTest$10$1 1
mockit.DelegateTest$11 1
mockit.DelegateTest$11$1 1
mockit.DelegateTest$12$1 1
mockit.DelegateTest$13 1
mockit.DelegateTest$13$1 2
mockit.DelegateTest$14 1
mockit.DelegateTest$14$1 2
mockit.DelegateTest$15 1
mockit.DelegateTest$15$1 1
mockit.DelegateTest$16 1
mockit.DelegateTest$16$1 1
mockit.DelegateTest$17 1
mockit.DelegateTest$17$1 1
mockit.DelegateTest$18 1
mockit.DelegateTest$18$1 1
mockit.DelegateTest$19 1
mockit.DelegateTest$19$1 2
mockit.DelegateTest$2 1
mockit.DelegateTest$2$1 1
mockit.DelegateTest$2$2 1
mockit.DelegateTest$20 1
mockit.DelegateTest$21 1
mockit.DelegateTest$21$1 1
mockit.DelegateTest$22 1
mockit.DelegateTest$22$1 1
mockit.DelegateTest$23 2
mockit.DelegateTest$23$1 1
mockit.DelegateTest$24 2
mockit.DelegateTest$24$1 1
mockit.DelegateTest$25 2
mockit.DelegateTest$25$1 1
mockit.DelegateTest$26 2
mockit.DelegateTest$26$1 1
mockit.DelegateTest$27 1
mockit.DelegateTest$27$1 1
mockit.DelegateTest$29 1
mockit.DelegateTest$29$1 1
mockit.DelegateTest$3$1 1
mockit.DelegateTest$3$2 1
mockit.DelegateTest$30 1
mockit.DelegateTest$30$1 1
mockit.DelegateTest$31 1
mockit.DelegateTest$31$1 1
mockit.DelegateTest$32 1
mockit.DelegateTest$32$1 1
mockit.DelegateTest$33 1
mockit.DelegateTest$33$1 1
mockit.DelegateTest$4 1
mockit.DelegateTest$4$1 1
mockit.DelegateTest$5 2
mockit.DelegateTest$6 2
mockit.DelegateTest$6$1 1
mockit.DelegateTest$7 2
mockit.DelegateTest$8 1
mockit.DelegateTest$8$1 1
mockit.DelegateTest$9 1
mockit.DelegateTest$Collaborator 1
mockit.DynamicMockingInBeforeMethodTest 2
mockit.DynamicMockingInBeforeMethodTest$1 2
mockit.DynamicMockingInBeforeMethodTest$2 1
mockit.DynamicOnInstanceMockingTest 18
mockit.DynamicOnInstanceMockingTest$1 1
mockit.DynamicOnInstanceMockingTest$10 2
mockit.DynamicOnInstanceMockingTest$12 1
mockit.DynamicOnInstanceMockingTest$2 1
mockit.DynamicOnInstanceMockingTest$3 1
mockit.DynamicOnInstanceMockingTest$4 3
mockit.DynamicOnInstanceMockingTest$5 2
mockit.DynamicOnInstanceMockingTest$7 1
mockit.DynamicOnInstanceMockingTest$8 1
mockit.DynamicOnInstanceMockingTest$9 1
mockit.ExpectationsForConstructorsTest 15
mockit.ExpectationsForConstructorsTest$1 4
mockit.ExpectationsForConstructorsTest$2 2
mockit.ExpectationsForConstructorsTest$3 2
mockit.ExpectationsForConstructorsTest$4 2
mockit.ExpectationsTest 29
mockit.ExpectationsTest$11 1
mockit.ExpectationsTest$12 1
mockit.ExpectationsTest$13 1
mockit.ExpectationsTest$14 1
mockit.ExpectationsTest$14$1 1
mockit.ExpectationsTest$19 1
mockit.ExpectationsTest$22 1
mockit.ExpectationsTest$24 1
mockit.ExpectationsTest$3 1
mockit.ExpectationsTest$4 1
mockit.ExpectationsTest$Dependency 3
mockit.ExpectationsUsingMockedTest 5
mockit.ExpectationsUsingMockedTest$2 2
mockit.ExpectationsUsingMockedTest$3 1
mockit.ExpectationsUsingMockedTest$4 1
mockit.ExpectationsUsingMockedTest$5 1
mockit.ExpectationsUsingResultFieldTest 48
mockit.ExpectationsUsingResultFieldTest$1 2
mockit.ExpectationsUsingResultFieldTest$10 2
mockit.ExpectationsUsingResultFieldTest$11 1
mockit.ExpectationsUsingResultFieldTest$12 1
mockit.ExpectationsUsingResultFieldTest$13 4
mockit.ExpectationsUsingResultFieldTest$14 1
mockit.ExpectationsUsingResultFieldTest$15 3
mockit.ExpectationsUsingResultFieldTest$16 2
mockit.ExpectationsUsingResultFieldTest$17 1
mockit.ExpectationsUsingResultFieldTest$18 2
mockit.ExpectationsUsingResultFieldTest$19 7
mockit.ExpectationsUsingResultFieldTest$20 2
mockit.ExpectationsUsingResultFieldTest$21 2
mockit.ExpectationsUsingResultFieldTest$24 2
mockit.ExpectationsUsingResultFieldTest$27 2
mockit.ExpectationsUsingResultFieldTest$28 1
mockit.ExpectationsUsingResultFieldTest$29 1
mockit.ExpectationsUsingResultFieldTest$30 1
mockit.ExpectationsUsingResultFieldTest$31 2
mockit.ExpectationsUsingResultFieldTest$32 8
mockit.ExpectationsUsingResultFieldTest$4 2
mockit.ExpectationsUsingResultFieldTest$5 2
mockit.ExpectationsUsingResultFieldTest$6 3
mockit.ExpectationsUsingResultFieldTest$7 1
mockit.ExpectationsUsingResultFieldTest$8 4
mockit.ExpectationsUsingResultFieldTest$9 1
mockit.ExpectationsUsingResultFieldTest$Collaborator 3
mockit.ExpectationsUsingReturnTypeConversionTest 22
mockit.ExpectationsUsingReturnTypeConversionTest$1 1
mockit.ExpectationsUsingReturnTypeConversionTest$10 5
mockit.ExpectationsUsingReturnTypeConversionTest$11 1
mockit.ExpectationsUsingReturnTypeConversionTest$12 1
mockit.ExpectationsUsingReturnTypeConversionTest$13 1
mockit.ExpectationsUsingReturnTypeConversionTest$14 1
mockit.ExpectationsUsingReturnTypeConversionTest$2 2
mockit.ExpectationsUsingReturnTypeConversionTest$3 1
mockit.ExpectationsUsingReturnTypeConversionTest$4 1
mockit.ExpectationsUsingReturnTypeConversionTest$5 1
mockit.ExpectationsUsingReturnTypeConversionTest$6 13
mockit.ExpectationsUsingReturnTypeConversionTest$7 11
mockit.ExpectationsUsingReturnTypeConversionTest$8 10
mockit.ExpectationsUsingReturnTypeConversionTest$9 6
mockit.ExpectationsWithArgMatchersTest 21
mockit.ExpectationsWithArgMatchersTest$10 2
mockit.ExpectationsWithArgMatchersTest$11 1
mockit.ExpectationsWithArgMatchersTest$12 2
mockit.ExpectationsWithArgMatchersTest$14 1
mockit.ExpectationsWithArgMatchersTest$17$1 1
mockit.ExpectationsWithArgMatchersTest$2 1
mockit.ExpectationsWithArgMatchersTest$4 3
mockit.ExpectationsWithArgMatchersTest$5 1
mockit.ExpectationsWithArgMatchersTest$5$1 1
mockit.ExpectationsWithDuplicateRecordingsTest 13
mockit.ExpectationsWithDuplicateRecordingsTest$1 3
mockit.ExpectationsWithDuplicateRecordingsTest$10 1
mockit.ExpectationsWithDuplicateRecordingsTest$11 1
mockit.ExpectationsWithDuplicateRecordingsTest$12 1
mockit.ExpectationsWithDuplicateRecordingsTest$13 1
mockit.ExpectationsWithDuplicateRecordingsTest$14 1
mockit.ExpectationsWithDuplicateRecordingsTest$2 1
mockit.ExpectationsWithDuplicateRecordingsTest$3 4
mockit.ExpectationsWithDuplicateRecordingsTest$4 4
mockit.ExpectationsWithDuplicateRecordingsTest$5 3
mockit.ExpectationsWithDuplicateRecordingsTest$6 6
mockit.ExpectationsWithDuplicateRecordingsTest$7 1
mockit.ExpectationsWithDuplicateRecordingsTest$8 4
mockit.ExpectationsWithDuplicateRecordingsTest$9 10
mockit.ExpectationsWithDuplicateRecordingsTest$9$1 1
mockit.ExpectationsWithDuplicateRecordingsTest$9$2 1
mockit.ExpectationsWithDuplicateRecordingsTest$9$3 1
mockit.ExpectationsWithDuplicateRecordingsTest$9$4 1
mockit.ExpectationsWithDuplicateRecordingsTest$9$5 1
mockit.ExpectationsWithDuplicateRecordingsTest$9$6 1
mockit.ExpectationsWithDuplicateRecordingsTest$Blah 1
mockit.ExpectationsWithInvocationCountsTest 20
mockit.ExpectationsWithSomeArgMatchersRecordedTest 25
mockit.ExpectationsWithSomeArgMatchersRecordedTest$1 4
mockit.ExpectationsWithSomeArgMatchersRecordedTest$11 1
mockit.ExpectationsWithSomeArgMatchersRecordedTest$12 1
mockit.ExpectationsWithSomeArgMatchersRecordedTest$13 1
mockit.ExpectationsWithSomeArgMatchersRecordedTest$15 1
mockit.ExpectationsWithSomeArgMatchersRecordedTest$17 2
mockit.ExpectationsWithSomeArgMatchersRecordedTest$18 1
mockit.ExpectationsWithSomeArgMatchersRecordedTest$5 2
mockit.ExpectationsWithSomeArgMatchersRecordedTest$7 1
mockit.ExpectationsWithSomeArgMatchersRecordedTest$Collaborator 14
mockit.ExpectationsWithValuesToReturnTest 16
mockit.ExpectationsWithValuesToReturnTest$1 17
mockit.ExpectationsWithValuesToReturnTest$10 1
mockit.ExpectationsWithValuesToReturnTest$11 2
mockit.ExpectationsWithValuesToReturnTest$12 10
mockit.ExpectationsWithValuesToReturnTest$13 2
mockit.ExpectationsWithValuesToReturnTest$14 2
mockit.ExpectationsWithValuesToReturnTest$2 6
mockit.ExpectationsWithValuesToReturnTest$3 13
mockit.ExpectationsWithValuesToReturnTest$4 5
mockit.ExpectationsWithValuesToReturnTest$5 1
mockit.ExpectationsWithValuesToReturnTest$6 1
mockit.ExpectationsWithValuesToReturnTest$7 1
mockit.ExpectationsWithValuesToReturnTest$8 3
mockit.ExpectationsWithValuesToReturnTest$9 2
mockit.ExpectationsWithValuesToReturnTest$Collaborator 2
mockit.ExpectationsWithVarArgsMatchersTest 41
mockit.ExpectationsWithVarArgsMatchersTest$1 1
mockit.ExpectationsWithVarArgsMatchersTest$10 2
mockit.ExpectationsWithVarArgsMatchersTest$11 2
mockit.ExpectationsWithVarArgsMatchersTest$12 1
mockit.ExpectationsWithVarArgsMatchersTest$15 3
mockit.ExpectationsWithVarArgsMatchersTest$17 1
mockit.ExpectationsWithVarArgsMatchersTest$18 2
mockit.ExpectationsWithVarArgsMatchersTest$19 1
mockit.ExpectationsWithVarArgsMatchersTest$4 1
mockit.ExpectationsWithVarArgsMatchersTest$5 2
mockit.ExpectationsWithVarArgsMatchersTest$6 7
mockit.ExpectationsWithVarArgsMatchersTest$7 1
mockit.ExpectationsWithVarArgsMatchersTest$8 1
mockit.ExpectationsWithVarArgsMatchersTest$9 1
mockit.FakeClassInstantiationPerSetupTest 7
mockit.FakeClassInstantiationPerSetupTest$FakeURL 3
mockit.FakeForGenericsTest 10
mockit.FakeForGenericsTest$1 1
mockit.FakeForGenericsTest$2 3
mockit.FakeForGenericsTest$3 2
mockit.FakeForGenericsTest$4 1
mockit.FakeForGenericsTest$5 1
mockit.FakeForGenericsTest$6 1
mockit.FakeForGenericsTest$7 1
mockit.FakeForGenericsTest$8 3
mockit.FakeForGenericsTest$NonGenericClassWithGenericMethods 2
mockit.FakeInvocationProceedTest 12
mockit.FakeInvocationProceedTest$1 1
mockit.FakeInvocationProceedTest$10 1
mockit.FakeInvocationProceedTest$1FakeWhichModifiesArguments 1
mockit.FakeInvocationProceedTest$2 3
mockit.FakeInvocationProceedTest$3 2
mockit.FakeInvocationProceedTest$4 1
mockit.FakeInvocationProceedTest$5 1
mockit.FakeInvocationProceedTest$6 1
mockit.FakeInvocationTest 10
mockit.FakeInvocationTest$1 1
mockit.FakeInvocationTest$2 1
mockit.FakeInvocationTest$3 1
mockit.FakeInvocationTest$4 1
mockit.FakeInvocationTest$Collaborator 1
mockit.FakeLoginContextTest 4
mockit.FakeLoginContextTest$1 1
mockit.FakeLoginContextTest$2 3
mockit.FakeLoginContextTest$ProceedingFakeLoginContext 1
mockit.FakedClassWithSuperClassTest 2
mockit.FakedClassWithSuperClassTest$3 1
mockit.FakingBaseTypesTest 15
mockit.FakingBaseTypesTest$1 1
mockit.FakingBaseTypesTest$10 1
mockit.FakingBaseTypesTest$11 1
mockit.FakingBaseTypesTest$2 1
mockit.FakingBaseTypesTest$3 1
mockit.FakingBaseTypesTest$6 2
mockit.FakingEverythingTest 6
mockit.FakingEverythingTest$1 1
mockit.FakingEverythingTest$2 1
mockit.FakingTest 19
mockit.FakingTest$10 1
mockit.FakingTest$11 1
mockit.FakingTest$12 1
mockit.FakingTest$1Fake1 1
mockit.FakingTest$2 1
mockit.FakingTest$3 1
mockit.FakingTest$5 2
mockit.FakingTest$6 1
mockit.FakingTest$8 1
mockit.FakingTest$FakeWithActionOnTearDown 1
mockit.FinalMockFieldsTest 6
mockit.FinalMockFieldsTest$1 1
mockit.FinalMockFieldsTest$3 1
mockit.FinalMockFieldsTest$4 2
mockit.FullVerificationsTest 30
mockit.FullVerificationsTest$2 1
mockit.FullVerificationsTest$4 1
mockit.GenericMockedTypesTest 7
mockit.GenericMockedTypesTest$1 1
mockit.GenericMockedTypesTest$3 1
mockit.GenericMockedTypesTest$5 1
mockit.InjectableFieldTest 4
mockit.InjectableFieldTest$1 2
mockit.InjectableFieldTest$3 1
mockit.InjectableFieldTest$4 2
mockit.InjectableFieldTest$Foo 1
mockit.InjectableParameterTest 2
mockit.InstanceSpecificMockingTest 10
mockit.InstanceSpecificMockingTest$1 3
mockit.InstanceSpecificMockingTest$2 1
mockit.InstanceSpecificMockingTest$5 3
mockit.InstanceSpecificMockingTest$7 1
mockit.InstanceSpecificMockingTest$Collaborator 2
mockit.Invocation 2
mockit.InvocationBlocksWithTimesFieldsTest 36
mockit.InvocationBlocksWithTimesFieldsTest$15 1
mockit.InvocationBlocksWithTimesFieldsTest$19 1
mockit.InvocationConstraintsTest 9
mockit.InvocationConstraintsTest$1 1
mockit.InvocationConstraintsTest$2 1
mockit.InvocationConstraintsTest$3 1
mockit.InvocationConstraintsTest$4 1
mockit.InvocationConstraintsTest$5 1
mockit.InvocationConstraintsTest$6 1
mockit.InvocationConstraintsTest$7 1
mockit.InvocationConstraintsTest$8 1
mockit.InvocationConstraintsTest$9 1
mockit.Invocations 4
mockit.IterableDITest 2
mockit.JREMockingTest 8
mockit.JREMockingTest$1 1
mockit.JREMockingTest$2 1
mockit.JREMockingTest$3 1
mockit.JREMockingTest$5 1
mockit.JREMockingTest$6 1
mockit.JUnit4ParametersTest 2
mockit.JUnit4ParametersTest$1 2
mockit.MisusedFakingAPITest 6
mockit.MisusedFakingAPITest$1 1
mockit.MisusedFakingAPITest$2 1
mockit.MisusedFakingAPITest$3 1
mockit.MisusedMockingAPITest 20
mockit.MisusedMockingAPITest$1 1
mockit.MisusedMockingAPITest$2 1
mockit.MisusedMockingAPITest$4 1
mockit.MisusedMockingAPITest$5 1
mockit.MisusedMockingAPITest$6 2
mockit.MisusedMockingAPITest$7 3
mockit.MisusedMockingAPITest$8 3
mockit.MisusedMockingAPITest$9 3
mockit.MisusedMockingAPITest$Blah 1
mockit.MockAnnotationsTest 27
mockit.MockAnnotationsTest$1 1
mockit.MockAnnotationsTest$10 1
mockit.MockAnnotationsTest$11 1
mockit.MockAnnotationsTest$12 1
mockit.MockAnnotationsTest$2 2
mockit.MockAnnotationsTest$4 1
mockit.MockAnnotationsTest$5 1
mockit.MockAnnotationsTest$7 1
mockit.MockAnnotationsTest$8 1
mockit.MockAnnotationsTest$9 1
mockit.MockAnnotationsTest$ClassWithStaticInitializers 1
mockit.MockAnnotationsTest$Collaborator 1
mockit.MockAnnotationsTest$MockFloat 1
mockit.MockAnnotationsTest$SubCollaborator 1
mockit.MockInstanceMatchingTest 23
mockit.MockInstanceMatchingTest$1 1
mockit.MockInstanceMatchingTest$10 2
mockit.MockInstanceMatchingTest$11 1
mockit.MockInstanceMatchingTest$12 1
mockit.MockInstanceMatchingTest$15 1
mockit.MockInstanceMatchingTest$16 1
mockit.MockInstanceMatchingTest$17 1
mockit.MockInstanceMatchingTest$2 1
mockit.MockInstanceMatchingTest$4 1
mockit.MockInstanceMatchingTest$6 1
mockit.MockInvocationProceedTest 10
mockit.MockInvocationProceedTest$1 1
mockit.MockInvocationProceedTest$2 3
mockit.MockInvocationProceedTest$3 2
mockit.MockInvocationProceedTest$4 1
mockit.MockInvocationProceedTest$5 1
mockit.MockInvocationProceedTest$9 1
mockit.MockInvocationTest 5
mockit.MockInvocationTest$1 1
mockit.MockInvocationTest$2 1
mockit.MockInvocationTest$3 2
mockit.MockInvocationTest$Collaborator 1
mockit.MockLoginContextTest 3
mockit.MockLoginContextTest$1 1
mockit.MockLoginContextTest$MockLoginContextWithStubs 1
mockit.MockLoginContextTest$ProceedingMockLoginContext 2
mockit.MockUp 3
mockit.MockUpForGenericsTest 11
mockit.MockUpForGenericsTest$1 1
mockit.MockUpForGenericsTest$10 1
mockit.MockUpForGenericsTest$11 1
mockit.MockUpForGenericsTest$2 3
mockit.MockUpForGenericsTest$3 2
mockit.MockUpForGenericsTest$4 1
mockit.MockUpForGenericsTest$5 1
mockit.MockUpForGenericsTest$6 1
mockit.MockUpForGenericsTest$7 1
mockit.MockUpForGenericsTest$8 3
mockit.MockUpForGenericsTest$9 1
mockit.MockUpForGenericsTest$NonGenericClassWithGenericMethods 2
mockit.MockUpForSingleClassInstanceTest 4
mockit.MockUpForSingleClassInstanceTest$1 1
mockit.MockUpForSingleClassInstanceTest$1AClassMockUp 2
mockit.MockUpForSingleClassInstanceTest$2 1
mockit.MockUpForSingleClassInstanceTest$3 1
mockit.MockUpForSingleClassInstanceTest$4 1
mockit.MockUpForSingleClassInstanceTest$5 1
mockit.MockUpForSingleClassInstanceTest$6 3
mockit.MockUpForSingleClassInstanceTest$7 2
mockit.MockUpForSingleClassInstanceTest$8 2
mockit.MockUpForSingleClassInstanceTest$9 2
mockit.MockUpForSingleInterfaceInstanceTest$1 1
mockit.MockUpForSingleInterfaceInstanceTest$1AnInterfaceMockUp 2
mockit.MockUpForSingleInterfaceInstanceTest$1InterfaceMockUp 1
mockit.MockUpForSingleInterfaceInstanceTest$2 1
mockit.MockUpForSingleInterfaceInstanceTest$2AnInterfaceMockUp 1
mockit.MockUpForSingleInterfaceInstanceTest$4 1
mockit.MockedAnnotationsTest 4
mockit.MockedAnnotationsTest$1 1
mockit.MockedAnnotationsTest$4 1
mockit.MockedClassWithSuperClassTest 6
mockit.MockedClassWithSuperClassTest$3 1
mockit.MockedClassWithSuperClassTest$6 1
mockit.MockedClassWithSuperClassTest$7 1
mockit.MockedClassWithSuperClassTest$8 1
mockit.MockedEnumsTest 10
mockit.MockedEnumsTest$1 2
mockit.MockedEnumsTest$2 1
mockit.MockedEnumsTest$4 1
mockit.MockedEnumsTest$5 1
mockit.MockedEnumsTest$6 1
mockit.MockedEnumsTest$7 2
mockit.MockedEnumsTest$Foo 1
mockit.MockedParametersWithCapturingTest 1
mockit.MockingMultipleInterfacesTest 4
mockit.MockingNewInstancesWithVaryingBehaviorTest 6
mockit.MockingNewInstancesWithVaryingBehaviorTest$2 1
mockit.MockingNewInstancesWithVaryingBehaviorTest$4 1
mockit.MockingNewInstancesWithVaryingBehaviorTest$5 4
mockit.MockingNewInstancesWithVaryingBehaviorTest$6 1
mockit.MoreFakingTest 13
mockit.MoreFakingTest$1 2
mockit.MoreFakingTest$4 1
mockit.MoreFakingTest$5 1
mockit.MoreFakingTest$6 1
mockit.MoreFakingTest$8 1
mockit.MoreFakingTest$Collaborator 1
mockit.MoreFakingTest$SubCollaborator 1
mockit.MultiThreadedExpectationsTest 8
mockit.MultiThreadedExpectationsTest$10 2
mockit.MultiThreadedExpectationsTest$2 1
mockit.MultiThreadedExpectationsTest$3 1
mockit.MultiThreadedExpectationsTest$4 1
mockit.MultiThreadedExpectationsTest$5 1
mockit.MultiThreadedExpectationsTest$6 1
mockit.MultiThreadedExpectationsTest$8 1
mockit.MultiThreadedExpectationsTest$9 1
mockit.MultipleMockedTypesTest 10
mockit.MultipleMockedTypesTest$1 1
mockit.MultipleMockedTypesTest$10 1
mockit.MultipleMockedTypesTest$2 1
mockit.MultipleMockedTypesTest$3 1
mockit.MultipleMockedTypesTest$5 1
mockit.MultipleMockedTypesTest$6 1
mockit.MultipleMockedTypesTest$7 1
mockit.MultipleMockedTypesTest$8 1
mockit.MultipleMockedTypesTest$TestedUnit 1
mockit.NaturalOrderingTest 6
mockit.NaturalOrderingTest$1 2
mockit.NaturalOrderingTest$2 1
mockit.NaturalOrderingTest$ComparableClass 1
mockit.ObjectOverridesAndInjectableMocksTest 5
mockit.ObjectOverridesAndInjectableMocksTest$1 1
mockit.ObjectOverridesAndInjectableMocksTest$BaseClass 3
mockit.ObjectOverridesTest 19
mockit.ObjectOverridesTest$1 6
mockit.ObjectOverridesTest$2 2
mockit.ObjectOverridesTest$3 3
mockit.ObjectOverridesTest$4 2
mockit.ObjectOverridesTest$5 3
mockit.ObjectOverridesTest$6 1
mockit.ObjectOverridesTest$7 5
mockit.ObjectOverridesTest$8 1
mockit.ObjectOverridesTest$9 1
mockit.ObjectOverridesTest$ClassWithEqualsOverride 3
mockit.PartialMockingTest 26
mockit.PartialMockingTest$10 1
mockit.PartialMockingTest$11 2
mockit.PartialMockingTest$12 2
mockit.PartialMockingTest$14 3
mockit.PartialMockingTest$15 2
mockit.PartialMockingTest$17 2
mockit.PartialMockingTest$18 1
mockit.PartialMockingTest$19 2
mockit.PartialMockingTest$20 1
mockit.PartialMockingTest$21 1
mockit.PartialMockingTest$22 1
mockit.PartialMockingTest$24 1
mockit.PartialMockingTest$7 1
mockit.PartialMockingTest$8 1
mockit.PartialMockingTest$9 2
mockit.PartialMockingTest$BaseClass 1
mockit.PartialMockingTest$Collaborator 2
mockit.PartialMockingTest$TestedClass 1
mockit.ReentrantDelegateTest 3
mockit.ReentrantDelegateTest$1 1
mockit.ReentrantDelegateTest$1$1 1
mockit.ReentrantDelegateTest$2 1
mockit.ReentrantDelegateTest$2$1 1
mockit.ReentrantDelegateTest$3 1
mockit.ReentrantDelegateTest$3$1 1
mockit.ReentrantFakeTest 25
mockit.ReentrantFakeTest$1 2
mockit.ReentrantFakeTest$2 2
mockit.ReentrantFakeTest$3 1
mockit.ReentrantFakeTest$5 1
mockit.ReentrantFakeTest$6 1
mockit.ReentrantFakeTest$7 1
mockit.ReentrantFakeTest$8 1
mockit.ReentrantFakeTest$9 1
mockit.ReentrantFakeTest$FakeClassWithReentrantFakeForRecursiveMethod 1
mockit.ReentrantFakeTest$RealClass 1
mockit.RestrictedFullVerificationsTest 49
mockit.RestrictedFullVerificationsTest$1 2
mockit.RestrictedFullVerificationsTest$10 2
mockit.RestrictedFullVerificationsTest$11 1
mockit.RestrictedFullVerificationsTest$12 1
mockit.RestrictedFullVerificationsTest$13 2
mockit.RestrictedFullVerificationsTest$14 1
mockit.RestrictedFullVerificationsTest$15 1
mockit.RestrictedFullVerificationsTest$16 1
mockit.RestrictedFullVerificationsTest$17 2
mockit.RestrictedFullVerificationsTest$19 1
mockit.RestrictedFullVerificationsTest$2 2
mockit.RestrictedFullVerificationsTest$3 1
mockit.RestrictedFullVerificationsTest$4 1
mockit.RestrictedFullVerificationsTest$5 1
mockit.RestrictedFullVerificationsTest$6 1
mockit.RestrictedFullVerificationsTest$7 1
mockit.RestrictedFullVerificationsTest$8 1
mockit.RestrictedFullVerificationsTest$9 1
mockit.RestrictedFullVerificationsTest$Dependency 1
mockit.StandardDI2Test$TestedClass 1
mockit.StandardDITest 8
mockit.StandardDITest$Collaborator 1
mockit.StandardDITest$TestedClass 1
mockit.StandardDITest$TestedClassWithVarargsParameterForProviders 3
mockit.TargetSubclass 1
mockit.TestedAbstractClassTest 6
mockit.TestedAbstractClassTest$3 1
mockit.TestedAndMockedTest 4
mockit.TestedAndMockedTest$1 1
mockit.TestedAndMockedTest$ClassToBeTested 2
mockit.TestedClassInjectedFromMockParametersTest 1
mockit.TestedClassWithConstructorAndFieldDI2Test$ClassWithConstructorHavingReferenceTypeParameterAndDoubleSizedLocalVar 1
mockit.TestedClassWithConstructorAndFieldDITest 4
mockit.TestedClassWithConstructorAndFieldDITest$1 1
mockit.TestedClassWithConstructorAndFieldDITest$AnotherTestedClass 2
mockit.TestedClassWithConstructorDI1Test 9
mockit.TestedClassWithConstructorDI1Test$1 1
mockit.TestedClassWithConstructorDI1Test$2 1
mockit.TestedClassWithConstructorDI1Test$4 1
mockit.TestedClassWithConstructorDI1Test$6 1
mockit.TestedClassWithConstructorDI1Test$TestedClass 1
mockit.TestedClassWithConstructorDI2Test 3
mockit.TestedClassWithConstructorDI2Test$1 1
mockit.TestedClassWithConstructorDI2Test$2 1
mockit.TestedClassWithConstructorDI2Test$TestedClass 2
mockit.TestedClassWithConstructorDI3Test 2
mockit.TestedClassWithConstructorDI3Test$1 1
mockit.TestedClassWithConstructorDI3Test$2 1
mockit.TestedClassWithConstructorDI4Test 3
mockit.TestedClassWithConstructorDI4Test$1 1
mockit.TestedClassWithConstructorDI4Test$2 1
mockit.TestedClassWithConstructorDI4Test$TestedClass 4
mockit.TestedClassWithFieldDITest 5
mockit.TestedClassWithFieldDITest$1 1
mockit.TestedClassWithFullConstructorAndFieldDITest 7
mockit.TestedClassWithFullConstructorAndFieldDITest$ClassWithMultipleConstructors 1
mockit.TestedClassWithFullConstructorDITest 1
mockit.TestedClassWithFullDITest 11
mockit.TestedClassWithFullMixedFieldDITest 3
mockit.TestedClassWithFullStandardDITest 4
mockit.TestedClassWithFullStandardDITest$1 1
mockit.TestedClassWithGenericSubtypesTest 4
mockit.TestedClassWithGenericsTest 7
mockit.TestedClassWithGenericsTest$ClassWithFieldOfGenericTypeContainingGenericArray 2
mockit.TestedClassWithGenericsTest$GenericClass 1
mockit.TestedClassWithNoDITest 4
mockit.TestedClassWithNoDITest$1 1
mockit.TestedClassWithNoDITest$2 1
mockit.TestedClassWithNoDITest$4 1
mockit.TestedClassWithNoPublicConstructorTest$TestedClassWithPrivateConstructor 1
mockit.TestedFieldExtractionTest 2
mockit.TestedFieldExtractionTest$TestedClassWithInitializedFieldsOfVariousTypes 1
mockit.TestedFieldWithFailedConstructorDITest$ClassWithOneParameter 1
mockit.TestedMethodsTest 5
mockit.TestedParametersTest 4
mockit.VerificationsInOrderTest 27
mockit.VerificationsTest 19
mockit.VerificationsTest$13$1 1
mockit.VerificationsTest$15$1 1
mockit.VerificationsWithSomeArgumentMatchersTest 15
mockit.VerificationsWithSomeArgumentMatchersTest$1 2
mockit.VerificationsWithSomeArgumentMatchersTest$5 2
mockit.VerificationsWithSomeArgumentMatchersTest$7 1
mockit.VerificationsWithSomeArgumentMatchersTest$Collaborator 14
mockit.WithCaptureTest 38
mockit.WithCaptureTest$1 1
mockit.WithCaptureTest$10 1
mockit.WithCaptureTest$18 1
mockit.WithCaptureTest$19 1
mockit.WithCaptureTest$20 1
mockit.WithCaptureTest$23 1
mockit.WithCaptureTest$25 2
mockit.asm.AnnotatedReader 2
mockit.asm.BaseWriter 2
mockit.asm.annotations.AnnotationReader 2
mockit.asm.annotations.AnnotationVisitor 3
mockit.asm.classes.ClassReader 8
mockit.asm.classes.ClassWriter 2
mockit.asm.classes.ConstantPoolCopying 1
mockit.asm.constantPool.ConstantPoolGeneration 2
mockit.asm.constantPool.Item 1
mockit.asm.constantPool.ModuleItem 1
mockit.asm.constantPool.PackageItem 1
mockit.asm.constantPool.StringItem 1
mockit.asm.controlFlow.CFGAnalysis 6
mockit.asm.controlFlow.Edge 2
mockit.asm.controlFlow.Frame 10
mockit.asm.controlFlow.Label 4
mockit.asm.controlFlow.StackMapTableWriter 4
mockit.asm.exceptionHandling.ExceptionHandler 1
mockit.asm.exceptionHandling.ExceptionHandling 1
mockit.asm.fields.FieldReader 4
mockit.asm.jvmConstants.JVMInstruction 2
mockit.asm.metadata.ClassMetadataReader 4
mockit.asm.methods.LocalVariableTableWriter 1
mockit.asm.methods.MethodReader 8
mockit.asm.types.JavaType 1
mockit.asm.types.PrimitiveType 12
mockit.asm.types.ReferenceType 6
mockit.asm.util.ByteVector 1
mockit.asm.util.BytecodeReader 3
mockit.coverage.CallPoint 3
mockit.coverage.CoverageCheck 5
mockit.coverage.CoverageCheck$Threshold 1
mockit.coverage.OutputFileGenerator 4
mockit.coverage.TestRun 1
mockit.coverage.data.CoverageData 7
mockit.coverage.data.FileCoverageData 4
mockit.coverage.dataItems.FieldData 2
mockit.coverage.dataItems.InstanceFieldData 4
mockit.coverage.dataItems.PerFileDataCoverage 2
mockit.coverage.dataItems.StaticFieldData 4
mockit.coverage.lines.BranchCoverageData 1
mockit.coverage.lines.LineCoverageData 2
mockit.coverage.lines.LineSegmentData 2
mockit.coverage.lines.PerFileLineCoverage 2
mockit.coverage.modification.CFGTracking 5
mockit.coverage.modification.ClassModification 1
mockit.coverage.modification.ClassesNotLoaded 1
mockit.coverage.reporting.CoverageReport 1
mockit.coverage.reporting.dataCoverage.DataCoverageOutput 4
mockit.coverage.reporting.lineCoverage.LineCoverageOutput 2
mockit.coverage.reporting.packages.IndexPage 2
mockit.coverage.reporting.parsing.LineElement 9
mockit.coverage.reporting.parsing.LineElement$1 1
mockit.coverage.reporting.parsing.LineParser 3
mockit.coverage.testRedundancy.JUnitListener 1
mockit.coverage.testRedundancy.TestCoverage 1
mockit.integration.TestRunnerDecorator 1
mockit.integration.junit4.BaseJUnit4DecoratorTest 2
mockit.integration.junit4.FakeFrameworkMethod 2
mockit.integration.junit4.JUnit4DecoratorTest 2
mockit.integration.junit4.JUnit4ViolatedExpectationsTest 5
mockit.integration.junit4.SecondJUnit4DecoratorTest 1
mockit.integration.junit4.TestSuiteWithBeforeClass 1
mockit.integration.junit4.TestSuiteWithBeforeClass$1 1
mockit.integration.junit4.ThirdJUnit4DecoratorTest 1
mockit.integration.junit5.JMockitExtension 3
mockit.integration.springframework.SpringIntegrationTest 1
mockit.integration.testng.TestNGRunnerDecorator 1
mockit.internal.BaseInvocation 2
mockit.internal.ClassFile 4
mockit.internal.ClassIdentification 1
mockit.internal.ClassLoadingBridge 2
mockit.internal.capturing.CaptureTransformer 1
mockit.internal.classGeneration.BaseSubclassGenerator 1
mockit.internal.classGeneration.ImplementationClass 2
mockit.internal.expectations.ActiveInvocations 1
mockit.internal.expectations.BaseVerificationPhase 1
mockit.internal.expectations.EquivalentInstances 1
mockit.internal.expectations.Expectation 1
mockit.internal.expectations.RecordAndReplayExecution 2
mockit.internal.expectations.RecordPhase 2
mockit.internal.expectations.TestOnlyPhase 1
mockit.internal.expectations.UnorderedVerificationPhase 1
mockit.internal.expectations.argumentMatching.CaptureMatcher 1
mockit.internal.expectations.argumentMatching.LenientEqualityMatcher 1
mockit.internal.expectations.invocation.ArgumentValuesAndMatchers 2
mockit.internal.expectations.invocation.DelegateInvocation 1
mockit.internal.expectations.invocation.DelegatedResult 3
mockit.internal.expectations.invocation.ExpectedInvocation 2
mockit.internal.expectations.invocation.InvocationArguments 1
mockit.internal.expectations.invocation.InvocationResults 2
mockit.internal.expectations.invocation.ReturnTypeConversion 8
mockit.internal.expectations.mocking.CaptureOfNewInstancesForFields 1
mockit.internal.expectations.mocking.FieldTypeRedefinitions 2
mockit.internal.expectations.mocking.InstanceFactory 1
mockit.internal.expectations.mocking.InterfaceImplementationGenerator 1
mockit.internal.expectations.mocking.MockedClassModifier 1
mockit.internal.expectations.mocking.ParameterTypeRedefinitions 2
mockit.internal.expectations.mocking.TypeRedefinitions 1
mockit.internal.expectations.state.ExecutingTest 9
mockit.internal.expectations.state.MockedTypeCascade 2
mockit.internal.expectations.transformation.ArgumentCapturing 2
mockit.internal.expectations.transformation.ExpectationsTransformer 1
mockit.internal.expectations.transformation.InvocationBlockModifier 1
mockit.internal.faking.FakeBridge 2
mockit.internal.faking.FakeClassSetup 1
mockit.internal.faking.FakeClasses 7
mockit.internal.faking.FakeClasses$SavePoint 1
mockit.internal.faking.FakeMethodCollector 2
mockit.internal.faking.FakeMethods 1
mockit.internal.faking.FakeMethods$FakeMethod 2
mockit.internal.faking.FakeState 5
mockit.internal.faking.FakedImplementationClass 1
mockit.internal.injection.InjectionPoint 1
mockit.internal.injection.InjectionPoint$ListedJakarta 1
mockit.internal.injection.InjectionProvider 1
mockit.internal.injection.InjectionProviders 2
mockit.internal.injection.InjectionState 1
mockit.internal.injection.LifecycleMethods 1
mockit.internal.injection.TestedClass 6
mockit.internal.injection.TestedObjectCreation 2
mockit.internal.injection.TestedParameters 1
mockit.internal.injection.constructor.ConstructorInjection 1
mockit.internal.injection.constructor.ConstructorSearch 3
mockit.internal.injection.field.FieldToInject 1
mockit.internal.injection.full.FullInjection 4
mockit.internal.injection.full.JPAJakartaDependencies 2
mockit.internal.injection.full.JPAJavaxDependencies 3
mockit.internal.injection.full.ServletJakartaDependencies 1
mockit.internal.injection.full.ServletJavaxDependencies 1
mockit.internal.injection.full.TestDataSource 2
mockit.internal.reflection.AnnotationReflection 2
mockit.internal.reflection.ConstructorReflection 8
mockit.internal.reflection.FieldReflection 4
mockit.internal.reflection.GenericTypeReflection 1
mockit.internal.reflection.GenericTypeReflection$GenericSignature 3
mockit.internal.reflection.MethodReflection 5
mockit.internal.reflection.MockInvocationHandler 1
mockit.internal.reflection.ThrowOfCheckedException 1
mockit.internal.startup.JMockitInitialization 4
mockit.internal.startup.Startup 6
mockit.internal.state.CachedClassfiles 1
mockit.internal.state.MockFixture 3
mockit.internal.state.ParameterNames 1
mockit.internal.state.TestRun 6
mockit.internal.util.ClassLoad 7
mockit.internal.util.DefaultValues 4
mockit.internal.util.MethodFormatter 3
mockit.internal.util.ObjectMethods 1
mockit.internal.util.StackTrace 1
mockit.internal.util.TestMethod 1
mockit.internal.util.TypeConversion 3
mockit.internal.util.Utilities 1
otherTests.BaseClass 1
otherTests.DeencapsulationTest 1
otherTests.DeencapsulationTest$Subclass 1
otherTests.JUnit4Test 9
otherTests.JUnit4Test$1 3
otherTests.JUnit4Test$3 1
otherTests.JUnit4Test$3$1 1
otherTests.JUnit4Test$4 1
otherTests.JUnit4Test$AnotherClass 2
otherTests.SubclassTest 6
otherTests.SubclassTest$1 1
otherTests.SubclassTest$SubClass 1
otherTests.SubclassTest$SuperClass 1
otherTests.multicast.Message 1
otherTests.multicast.Message$MessageDispatcher 3
otherTests.multicast.MessageTest 3
otherTests.multicast.MessageTest$1 1
otherTests.multicast.MessageTest$TaskExecution 1
otherTests.testng.BaseTestNGDecoratorTest 1
otherTests.testng.DynamicMockingInBeforeMethodTest 2
otherTests.testng.DynamicMockingInBeforeMethodTest$1 2
otherTests.testng.DynamicMockingInBeforeMethodTest$2 1
otherTests.testng.TestNGCascadingInSetupTest 1
otherTests.testng.TestNGCascadingInSetupTest$1 1
otherTests.testng.TestNGCascadingTest 1
otherTests.testng.TestNGCascadingTest$1 1
otherTests.testng.TestNGDecoratorTest 2
otherTests.testng.TestNGExpectationsTest 6
otherTests.testng.TestNGExpectationsTest$1 2
otherTests.testng.TestNGExpectationsTest$2 1
otherTests.testng.TestNGExpectationsTest$3 1
otherTests.testng.TestNGExpectationsTest$4 2
otherTests.testng.TestNGExpectationsTest$5 1
otherTests.testng.TestNGExpectationsTest$6 2
otherTests.testng.TestNGSharedMockFieldTest 3
otherTests.testng.TestNGSharedMockFieldTest$1 1
otherTests.testng.TestNGSharedMockFieldTest$2 1
otherTests.testng.TestNGSharedMockFieldTest$3 1
otherTests.testng.TestNGViolatedExpectationsTest 9
otherTests.testng.TestNGViolatedExpectationsTest$3 2
otherTests.testng.TestedAndInjectablesTest 6
otherTests.testng.TestedAndInjectablesTest$2 1
otherTests.testng.TestedAndInjectablesTest$3 1
otherTests.testng.TestedAndInjectablesTest$SUT 2

mockit.AssertionErrorMessagesTest

Bug Category Details Line Priority
Method mockit.AssertionErrorMessagesTest.lambda$missingInvocationForExpectationUsingMatcherForDifferentParameterType$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 292 Medium
Method mockit.AssertionErrorMessagesTest.lambda$missingInvocationForExpectationVerifiedInOrder$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 256 Medium
Method mockit.AssertionErrorMessagesTest.lambda$missingInvocationForFullyVerifiedExpectations$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 274 Medium
Method mockit.AssertionErrorMessagesTest.lambda$missingInvocationForVerifiedExpectation$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 217 Medium
Method mockit.AssertionErrorMessagesTest.lambda$missingInvocationForVerifiedExpectationWhichGetsNonMatchingInvocationsAtReplayTime$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 236 Medium
Method mockit.AssertionErrorMessagesTest.lambda$unexpectedInvocationForExpectationsVerifiedInOrder$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 145 Medium
Method mockit.AssertionErrorMessagesTest.lambda$unexpectedInvocationForVerifiedExpectation$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 126 Medium
Method mockit.AssertionErrorMessagesTest.lambda$unexpectedInvocationOnMethodWithNoParameters$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 171 Medium
Method mockit.AssertionErrorMessagesTest.lambda$unexpectedInvocationWhereExpectingAnotherForRecordedExpectations$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 90 Medium
Method mockit.AssertionErrorMessagesTest.missingInvocationForRecordedExpectation() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 183 Medium
Method mockit.AssertionErrorMessagesTest.missingInvocationForRecordedExpectationWhichGetsNonMatchingInvocationsAtReplayTime() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 200 Medium
Method mockit.AssertionErrorMessagesTest.unexpectedInvocationForRecordedExpectation() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 67 Medium
Method mockit.AssertionErrorMessagesTest.unexpectedInvocationForRecordedExpectationWithMaximumInvocationCountOfZero() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 106 Medium
Method mockit.AssertionErrorMessagesTest.unexpectedInvocationOnMethodWithNoParameters() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 162 Medium

mockit.BaseTest

Bug Category Details Line Priority

mockit.CapturingImplementationsTest

Bug Category Details Line Priority
mockit.CapturingImplementationsTest.<static initializer for CapturingImplementationsTest>() creates a mockit.CapturingImplementationsTest$4 classloader, which should be performed within a doPrivileged block MALICIOUS_CODE DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED 229 Medium
Null passed for non-null parameter of java.util.concurrent.ExecutorService.submit(Runnable) in mockit.CapturingImplementationsTest.captureClassesFromTheJavaConcurrencyAPI(ExecutorService) CORRECTNESS NP_NONNULL_PARAM_VIOLATION 410 High
Method mockit.CapturingImplementationsTest.instantiateCustomLoadedClass() uses AccessibleObject.setAccessible to modify accessibility of classes CORRECTNESS RFI_SET_ACCESSIBLE 250 Medium
Exceptional return value of java.util.concurrent.ExecutorService.submit(Callable) ignored in mockit.CapturingImplementationsTest.captureClassesFromTheJavaConcurrencyAPI(ExecutorService) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 413 Medium
Return value of CapturingImplementationsTest$Base.doSomethingReturn(Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 536 Medium
Method mockit.CapturingImplementationsTest.captureClassPreviouslyLoadedByClassLoaderOtherThanContext(CapturingImplementationsTest$Service2) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 262 Medium
Method mockit.CapturingImplementationsTest.captureClassesFromTheSAXParserAPI(SAXParser) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 383 Medium
Method mockit.CapturingImplementationsTest.captureDynamicallyGeneratedProxyClass(CapturingImplementationsTest$Service3) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 310 Medium
Method mockit.CapturingImplementationsTest.captureImplementationUsingMockField() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 134 Medium
Method mockit.CapturingImplementationsTest.captureImplementationUsingMockParameter(CapturingImplementationsTest$Service2) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 177 Medium
Method mockit.CapturingImplementationsTest.captureImplementationsOfGenericType(CapturingImplementationsTest$Base) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 525 Medium
Method mockit.CapturingImplementationsTest.captureLibraryClassImplementingInterfaceFromAnotherLibrary(ServletContextListener) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 670 Medium
Method mockit.CapturingImplementationsTest.captureMethodWithGenericReturnTypes(CapturingImplementationsTest$BaseGenericReturnTypes) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 715 Medium
Method mockit.CapturingImplementationsTest.captureR(CapturingImplementationsTest$BaseR) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 763 Medium
Method mockit.CapturingImplementationsTest.verifyInvocationToBaseInterfaceMethodOnCapturedImplementationOfSubInterface(CapturingImplementationsTest$SubItf) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 618 Medium
Method mockit.CapturingImplementationsTest.verifyInvocationToMethodFromBaseClassOnCapturedSubclassOfIntermediateSubclass(CapturingImplementationsTest$Sub) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 580 Medium

mockit.CapturingImplementationsTest$1

Bug Category Details Line Priority
Return value of CapturingImplementationsTest$Service1.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 136 Medium

mockit.CapturingImplementationsTest$13

Bug Category Details Line Priority
Return value of CapturingImplementationsTest$BaseGenericReturnTypes.methodOne() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 717 Medium
Return value of CapturingImplementationsTest$BaseGenericReturnTypes.methodTwo() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 721 Medium

mockit.CapturingImplementationsTest$2

Bug Category Details Line Priority
Return value of CapturingImplementationsTest$Service2.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 179 Medium

mockit.CapturingImplementationsTest$5

Bug Category Details Line Priority
Return value of CapturingImplementationsTest$Service2.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 264 Medium

mockit.CapturingImplementationsTest$7

Bug Category Details Line Priority
Method new mockit.CapturingImplementationsTest$7(CapturingImplementationsTest, SAXParser) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 386 Medium

mockit.CapturingImplementationsTest$8

Bug Category Details Line Priority
Return value of CapturingImplementationsTest$Base.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 527 Medium
Return value of CapturingImplementationsTest$Base.doSomethingReturn(Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 529 Medium

mockit.CapturingImplementationsTest$ServiceLocator

Bug Category Details Line Priority
Static or private method mockit.CapturingImplementationsTest$ServiceLocator.getInstance(Class) has unused parameters STYLE UP_UNUSED_PARAMETER 81-88 Medium
Method mockit.CapturingImplementationsTest$ServiceLocator.getInstance(Class) stores return result in local before immediately returning it STYLE USBR_UNNECESSARY_STORE_BEFORE_RETURN 88 Medium

mockit.CapturingInstancesTest

Bug Category Details Line Priority
Method mockit.CapturingInstancesTest.captureAllInternallyCreatedInstances(Observable, Callable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 124 Medium
Method mockit.CapturingInstancesTest.captureAllInternallyCreatedInstances(Observable, Callable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 139 Medium

mockit.CapturingInstancesTest$1

Bug Category Details Line Priority
Return value of CapturingInstancesTest$Service1.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 126 Medium

mockit.CapturingInstancesTest$2

Bug Category Details Line Priority
Exception thrown in class mockit.CapturingInstancesTest$2 at new mockit.CapturingInstancesTest$2(CapturingInstancesTest, Callable) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 141 Medium

mockit.CapturingInstancesTest$TestedUnit$3

Bug Category Details Line Priority
Exception thrown in class mockit.CapturingInstancesTest$TestedUnit$3 at new mockit.CapturingInstancesTest$TestedUnit$3(CapturingInstancesTest$TestedUnit, boolean) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 86 Medium

mockit.CascadingFieldTest

Bug Category Details Line Priority
Return value of CascadingFieldTest$Bar.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 422 Medium
Return value of CascadingFieldTest$Foo.getBar() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 421 Medium
Method mockit.CascadingFieldTest.callMethodOnNonCascadedInstanceFromCustomArgumentMatcherWithCascadedInstanceAlsoCreated() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 518 Medium
Method mockit.CascadingFieldTest.cascadeGenericMethodOfConcreteSubclassWhichExtendsGenericClass(CascadingFieldTest$ConcreteSubclass1) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 575 Medium
Method mockit.CascadingFieldTest.cascadeGenericMethodOfConcreteSubclassWhichExtendsGenericClass(CascadingFieldTest$ConcreteSubclass1) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 589 Medium
Method mockit.CascadingFieldTest.cascadeGenericMethodOfSubclassWhichExtendsGenericClassWithUpperBoundOnlyInVerificationBlock(CascadingFieldTest$ConcreteSubclass2) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 655 Medium
Method mockit.CascadingFieldTest.cascadeGenericMethodOfSubclassWhichExtendsGenericClassWithUpperBoundUsingClass(CascadingFieldTest$ActionHolder) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 692 Medium
Method mockit.CascadingFieldTest.cascadeGenericMethodOfSubclassWhichExtendsGenericClassWithUpperBoundUsingInterface(CascadingFieldTest$ConcreteSubclass2) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 638 Medium
Method mockit.CascadingFieldTest.cascadeOneLevel() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 327 Medium
Method mockit.CascadingFieldTest.cascadingInstanceAccessedFromDelegateMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 463 Medium
Method mockit.CascadingFieldTest.cascadingMockField() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 448 Medium
Method mockit.CascadingFieldTest.recordAmbiguousExpectationWithMultipleCascadingCandidatesFollowedByExpectationRecordedOnFirstCandidate(CascadingFieldTest$Bar, CascadingFieldTest$Bar) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 414 Medium
Method mockit.CascadingFieldTest.recordAmbiguousExpectationsOnInstanceMethodProducingTheSameCascadedInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 371 Medium
Method mockit.CascadingFieldTest.recordAmbiguousExpectationsOnStaticMethodProducingTheSameCascadedInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 389 Medium
Method mockit.CascadingFieldTest.recordCommonExpectations() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 268 Medium
Method mockit.CascadingFieldTest.recordUnambiguousExpectationsProducingDifferentCascadedInstances(CascadingFieldTest$Foo, CascadingFieldTest$Foo) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 353 Medium

mockit.CascadingFieldTest$1

Bug Category Details Line Priority
Method new mockit.CascadingFieldTest$1(CascadingFieldTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 273 Medium
Return value of CascadingFieldTest$Bar.isDone() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 272 Medium

mockit.CascadingFieldTest$6

Bug Category Details Line Priority
Return value of CascadingFieldTest$Bar.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 417 Medium
Return value of CascadingFieldTest$Foo.getBar() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 416 Medium

mockit.CascadingFieldTest$7

Bug Category Details Line Priority
Return value of CascadingFieldTest$Bar.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 450 Medium

mockit.CascadingFieldTest$8

Bug Category Details Line Priority
Return value of CascadingFieldTest$Foo.getIntValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 465 Medium

mockit.CascadingFieldTest$8$1

Bug Category Details Line Priority
Uncallable method mockit.CascadingFieldTest$8$1.delegate() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 469 Medium

mockit.CascadingFieldTest$9$1

Bug Category Details Line Priority
Uncallable method mockit.CascadingFieldTest$9$1.matches(CascadingFieldTest$Baz) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 523 Medium

mockit.CascadingFieldTest$Bar

Bug Category Details Line Priority
Exception thrown in class mockit.CascadingFieldTest$Bar at new mockit.CascadingFieldTest$Bar() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 123 Medium

mockit.CascadingFieldTest$BazCreatorAndConsumer

Bug Category Details Line Priority
Method mockit.CascadingFieldTest$BazCreatorAndConsumer.consume(CascadingFieldTest$Baz) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 503 Medium
Return value of Object.toString() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 503 Medium
Method mockit.CascadingFieldTest$BazCreatorAndConsumer.consume(CascadingFieldTest$Baz) calls toString() on an instance of a class that hasn't overridden toString() STYLE SPP_NON_USEFUL_TOSTRING 503 Medium

mockit.CascadingFieldTest$Foo

Bug Category Details Line Priority
Method mockit.CascadingFieldTest$Foo.getBooleanValue() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 83 Medium

mockit.CascadingParametersTest

Bug Category Details Line Priority
Hard coded reference to an absolute pathname in mockit.CascadingParametersTest.createOSProcessToCopyTempFiles(ProcessBuilder) STYLE DMI_HARDCODED_ABSOLUTE_FILENAME 585 Medium
Return value of CascadingParametersTest$Bar.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 475 Medium
Return value of CascadingParametersTest$Bar.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 396 Medium
Return value of CascadingParametersTest$Bar.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 957 Medium
Return value of CascadingParametersTest$Bar.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 926 Medium
Return value of CascadingParametersTest$Foo.getBar() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 280 Medium
Method mockit.CascadingParametersTest.cascadeOnJREClasses(ProcessBuilder) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 539 Medium
Method mockit.CascadingParametersTest.cascadeOneLevelAndVerifyInvocationOnLastMockOnly(CascadingParametersTest$Foo, CascadingParametersTest$Bar) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 477 Medium
Method mockit.CascadingParametersTest.cascadeOneLevelDuringRecord(CascadingParametersTest$Foo) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 360 Medium
Method mockit.CascadingParametersTest.cascadeOneLevelDuringVerify(CascadingParametersTest$Foo) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 406 Medium
Method mockit.CascadingParametersTest.cascadeOneLevelDuringVerify(CascadingParametersTest$Foo) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 415 Medium
Method mockit.CascadingParametersTest.cascadeOneLevelWithArgumentMatchers(CascadingParametersTest$SocketFactory) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 684 Medium
Method mockit.CascadingParametersTest.cascadeTwoLevelsAndVerifyInvocationOnLastMockOnly(CascadingParametersTest$Foo, CascadingParametersTest$Baz) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 519 Medium
Method mockit.CascadingParametersTest.cascadeTwoLevelsDuringRecord(CascadingParametersTest$Foo) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 442 Medium
Method mockit.CascadingParametersTest.cascadeTwoLevelsWithInvocationRecordedOnLastMockOnly(CascadingParametersTest$Foo, CascadingParametersTest$Baz) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 494 Medium
Method mockit.CascadingParametersTest.cascadedEnum(CascadingParametersTest$Foo) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 977 Medium
Method mockit.CascadingParametersTest.cascadedEnumReturningConsecutiveValuesThroughResultField(CascadingParametersTest$Foo) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 995 Medium
Method mockit.CascadingParametersTest.cascadedEnumReturningConsecutiveValuesThroughReturnsMethod(CascadingParametersTest$Foo) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1017 Medium
Method mockit.CascadingParametersTest.createOSProcessToCopyTempFiles(ProcessBuilder) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 594 Medium
Method mockit.CascadingParametersTest.lambda$overrideTwoCascadedMocksOfTheSameTypeButReplayInDifferentOrder$0(CascadingParametersTest$Foo, CascadingParametersTest$Bar, CascadingParametersTest$Foo, CascadingParametersTest$Bar) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 946 Medium
Method mockit.CascadingParametersTest.lambda$overrideTwoCascadedMocksOfTheSameTypeButReplayInDifferentOrder$0(CascadingParametersTest$Foo, CascadingParametersTest$Bar, CascadingParametersTest$Foo, CascadingParametersTest$Bar) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 960 Medium
Method mockit.CascadingParametersTest.overrideLastCascadedObjectWithNonMockedInstance(CascadingParametersTest$Foo) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1040 Medium
Method mockit.CascadingParametersTest.overrideTwoCascadedMocksOfTheSameType(CascadingParametersTest$Foo, CascadingParametersTest$Foo, CascadingParametersTest$Bar, CascadingParametersTest$Bar) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 913 Medium
Method mockit.CascadingParametersTest.recordAndVerifyExpectationsOnCascadedMocks(Socket, SocketChannel, InetSocketAddress) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 634 Medium
Method mockit.CascadingParametersTest.recordAndVerifyOnTwoCascadingMocksOfTheSameType(CascadingParametersTest$SocketFactory, CascadingParametersTest$SocketFactory) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 735 Medium
Method mockit.CascadingParametersTest.recordAndVerifyOnTwoCascadingMocksOfTheSameType(CascadingParametersTest$SocketFactory, CascadingParametersTest$SocketFactory) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 747 Medium
Method mockit.CascadingParametersTest.recordAndVerifyOneLevelDeep(CascadingParametersTest$SocketFactory) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 708 Medium
Method mockit.CascadingParametersTest.recordAndVerifySameInvocationOnMocksReturnedFromInvocationsWithDifferentArguments(CascadingParametersTest$SocketFactory) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 767 Medium
Method mockit.CascadingParametersTest.recordAndVerifySameInvocationOnMocksReturnedFromInvocationsWithDifferentArguments(CascadingParametersTest$SocketFactory) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 785 Medium
Method mockit.CascadingParametersTest.recordAndVerifyWithMixedCascadeLevels(CascadingParametersTest$SocketFactory) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 821 Medium
Method mockit.CascadingParametersTest.recordAndVerifyWithMixedCascadeLevels(CascadingParametersTest$SocketFactory) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 834 Medium
Method mockit.CascadingParametersTest.recordExpectationOnCascadedMock(CascadingParametersTest$Foo, CascadingParametersTest$Bar) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 886 Medium
Method mockit.CascadingParametersTest.replaceCascadedInstanceWithFirstOneOfTwoInjectableInstances(CascadingParametersTest$Foo, CascadingParametersTest$Bar, CascadingParametersTest$Bar) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 336 Medium
Method mockit.CascadingParametersTest.verifyThatStaticMethodsAndConstructorsAreMockedWhenCascadedMockIsMockedNormally(CascadingParametersTest$Foo, CascadingParametersTest$Bar) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 305 Medium
Method mockit.CascadingParametersTest.verifyThatStaticMethodsAndConstructorsAreNotMockedWhenCascading(CascadingParametersTest$Foo) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 285 Medium
Write to static field mockit.CascadingParametersTest.cascadedBar1 from instance method mockit.CascadingParametersTest.cascadeOneLevelDuringReplay(CascadingParametersTest$Foo) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 235 High
Write to static field mockit.CascadingParametersTest.cascadedBar2 from instance method mockit.CascadingParametersTest.cascadeOneLevelDuringReplay(CascadingParametersTest$Foo) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 238 Medium
Unencrypted socket to mockit.CascadingParametersTest (instead of SSLSocket) SECURITY UNENCRYPTED_SOCKET 621 Medium

mockit.CascadingParametersTest$1

Bug Category Details Line Priority
Return value of CascadingParametersTest$Foo.getBar() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 338 Medium

mockit.CascadingParametersTest$10

Bug Category Details Line Priority
This usage of java/lang/ProcessBuilder.command([Ljava/lang/String;)Ljava/lang/ProcessBuilder; can be vulnerable to Command Injection SECURITY COMMAND_INJECTION 596 Medium
Exception thrown in class mockit.CascadingParametersTest$10 at new mockit.CascadingParametersTest$10(CascadingParametersTest, ProcessBuilder) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 596 Medium

mockit.CascadingParametersTest$11

Bug Category Details Line Priority
Exception thrown in class mockit.CascadingParametersTest$11 at new mockit.CascadingParametersTest$11(CascadingParametersTest, SocketChannel) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 636 Medium

mockit.CascadingParametersTest$12

Bug Category Details Line Priority
Exception thrown in class mockit.CascadingParametersTest$12 at new mockit.CascadingParametersTest$12(CascadingParametersTest, CascadingParametersTest$SocketFactory) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 686 Medium

mockit.CascadingParametersTest$13

Bug Category Details Line Priority
Exception thrown in class mockit.CascadingParametersTest$13 at new mockit.CascadingParametersTest$13(CascadingParametersTest, CascadingParametersTest$SocketFactory, OutputStream) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 710 Medium

mockit.CascadingParametersTest$14

Bug Category Details Line Priority
Exception thrown in class mockit.CascadingParametersTest$14 at new mockit.CascadingParametersTest$14(CascadingParametersTest, CascadingParametersTest$SocketFactory, OutputStream, CascadingParametersTest$SocketFactory, OutputStream) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 737 Medium

mockit.CascadingParametersTest$15

Bug Category Details Line Priority
Exception thrown in class mockit.CascadingParametersTest$15 at new mockit.CascadingParametersTest$15(CascadingParametersTest, CascadingParametersTest$SocketFactory, CascadingParametersTest$SocketFactory) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 749 Medium

mockit.CascadingParametersTest$16

Bug Category Details Line Priority
Exception thrown in class mockit.CascadingParametersTest$16 at new mockit.CascadingParametersTest$16(CascadingParametersTest, CascadingParametersTest$SocketFactory) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 771 Medium

mockit.CascadingParametersTest$17

Bug Category Details Line Priority
Exception thrown in class mockit.CascadingParametersTest$17 at new mockit.CascadingParametersTest$17(CascadingParametersTest, CascadingParametersTest$SocketFactory) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 789 Medium

mockit.CascadingParametersTest$18

Bug Category Details Line Priority
Exception thrown in class mockit.CascadingParametersTest$18 at new mockit.CascadingParametersTest$18(CascadingParametersTest, CascadingParametersTest$SocketFactory) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 823 Medium
Method new mockit.CascadingParametersTest$18(CascadingParametersTest, CascadingParametersTest$SocketFactory) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 824 Medium

mockit.CascadingParametersTest$19

Bug Category Details Line Priority
Exception thrown in class mockit.CascadingParametersTest$19 at new mockit.CascadingParametersTest$19(CascadingParametersTest, CascadingParametersTest$SocketFactory) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 836 Medium

mockit.CascadingParametersTest$2

Bug Category Details Line Priority
Method new mockit.CascadingParametersTest$2(CascadingParametersTest, CascadingParametersTest$Foo, List) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 369 Medium
Return value of CascadingParametersTest$Bar.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 364 Medium
Return value of CascadingParametersTest$Foo.getBooleanValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 368 Medium
Return value of CascadingParametersTest$Foo.getIntValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 370 Medium
Return value of CascadingParametersTest$Foo.getList() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 372 Medium

mockit.CascadingParametersTest$20

Bug Category Details Line Priority
Return value of CascadingParametersTest$Bar.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 888 Medium

mockit.CascadingParametersTest$21

Bug Category Details Line Priority
Return value of CascadingParametersTest$Bar.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 919 Medium
Return value of CascadingParametersTest$Foo.getBar() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 915 Medium

mockit.CascadingParametersTest$22

Bug Category Details Line Priority
Return value of CascadingParametersTest$Foo.getBar() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 948 Medium

mockit.CascadingParametersTest$23

Bug Category Details Line Priority
Return value of CascadingParametersTest$Bar.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 962 Medium

mockit.CascadingParametersTest$24

Bug Category Details Line Priority
Return value of CascadingParametersTest$Bar.getEnum() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 979 Medium

mockit.CascadingParametersTest$25

Bug Category Details Line Priority
Return value of CascadingParametersTest$Bar.getEnum() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 997 Medium
Double assignment of field CascadingParametersTest$25.result in new mockit.CascadingParametersTest$25(CascadingParametersTest, CascadingParametersTest$Foo) STYLE SA_FIELD_DOUBLE_ASSIGNMENT 999 Medium

mockit.CascadingParametersTest$26

Bug Category Details Line Priority
Return value of CascadingParametersTest$Bar.getEnum() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1019 Medium

mockit.CascadingParametersTest$3

Bug Category Details Line Priority
Return value of CascadingParametersTest$Bar.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 408 Medium

mockit.CascadingParametersTest$4

Bug Category Details Line Priority
Return value of CascadingParametersTest$Foo.getBooleanValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 418 Medium
Return value of CascadingParametersTest$Foo.getIntValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 417 Medium

mockit.CascadingParametersTest$5

Bug Category Details Line Priority
Return value of CascadingParametersTest$Bar.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 444 Medium

mockit.CascadingParametersTest$6

Bug Category Details Line Priority
Return value of CascadingParametersTest$Bar.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 479 Medium

mockit.CascadingParametersTest$9

Bug Category Details Line Priority
Exception thrown in class mockit.CascadingParametersTest$9 at new mockit.CascadingParametersTest$9(CascadingParametersTest, ProcessBuilder) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 544 Medium
Method new mockit.CascadingParametersTest$9(CascadingParametersTest, ProcessBuilder) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 546 Medium

mockit.CascadingParametersTest$Bar

Bug Category Details Line Priority
Exception thrown in class mockit.CascadingParametersTest$Bar at new mockit.CascadingParametersTest$Bar() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 133 Medium

mockit.CascadingParametersTest$CustomException

Bug Category Details Line Priority
Class mockit.CascadingParametersTest$CustomException is not derived from an Exception, even though it is named as such BAD_PRACTICE NM_CLASS_NOT_EXCEPTION 1252 Medium

mockit.CascadingParametersTest$Foo

Bug Category Details Line Priority
Method mockit.CascadingParametersTest$Foo.getBooleanValue() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 102 Medium

mockit.CascadingParametersTest$SocketFactory

Bug Category Details Line Priority
Unencrypted socket to mockit.CascadingParametersTest$SocketFactory (instead of SSLSocket) SECURITY UNENCRYPTED_SOCKET 652 Medium
Unencrypted socket to mockit.CascadingParametersTest$SocketFactory (instead of SSLSocket) SECURITY UNENCRYPTED_SOCKET 669 Medium

mockit.CascadingWithGenericsTest

Bug Category Details Line Priority
Method mockit.CascadingWithGenericsTest.cascadeFromGenericMethodWhoseReturnTypeComesFromParameterOnOwnerType(CascadingWithGenericsTest$Foo, CascadingWithGenericsTest$Baz) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 475 Medium
Method mockit.CascadingWithGenericsTest.cascadeFromMethodReturningATypeVariable(CascadingWithGenericsTest$GenericInterfaceWithBoundedTypeParameter) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 560 Medium
Method mockit.CascadingWithGenericsTest.cascadeFromMethodReturningInnerInstanceOfGenericClass(CascadingWithGenericsTest$Client) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 757 Medium
Method mockit.CascadingWithGenericsTest.cascadeOnMethodReturningAParameterizedClassWithAGenericMethod(CascadingWithGenericsTest$A) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 318 Medium
Method mockit.CascadingWithGenericsTest.cascadeTwoLevelsDuringRecord(CascadingWithGenericsTest$Foo) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 224 Medium

mockit.CascadingWithGenericsTest$2

Bug Category Details Line Priority
Return value of CascadingWithGenericsTest$B.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 320 Medium

mockit.CascadingWithGenericsTest$5

Bug Category Details Line Priority
Return value of CascadingWithGenericsTest$Client.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 759 Medium

mockit.CascadingWithGenericsTest$Bar

Bug Category Details Line Priority
Exception thrown in class mockit.CascadingWithGenericsTest$Bar at new mockit.CascadingWithGenericsTest$Bar() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 143 Medium

mockit.CascadingWithGenericsTest$Factory

Bug Category Details Line Priority
Static or private method mockit.CascadingWithGenericsTest$Factory.bar(Class) has unused parameters STYLE UP_UNUSED_PARAMETER 396 Medium

mockit.CascadingWithGenericsTest$SubClass

Bug Category Details Line Priority
Class mockit.CascadingWithGenericsTest$SubClass implements interface by relying on unknowing superclass methods STYLE SCII_SPOILED_CHILD_INTERFACE_IMPLEMENTOR 838 Medium

mockit.CascadingWithGenericsTest$TypeWithUnusedTypeParameterInGenericMethod

Bug Category Details Line Priority
Method mockit.CascadingWithGenericsTest$TypeWithUnusedTypeParameterInGenericMethod.foo() declares unbound method template parameter(s) CORRECTNESS UMTP_UNBOUND_METHOD_TEMPLATE_PARAMETER 587 Medium

mockit.ClassInitializationTest

Bug Category Details Line Priority
Method mockit.ClassInitializationTest.usingExpectations(ClassInitializationTest$ClassWhichFailsAtInitialization) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 39 Medium

mockit.ClassInitializationTest$AnotherDependent

Bug Category Details Line Priority
Method mockit.ClassInitializationTest$AnotherDependent.<static initializer for AnotherDependent>() ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 224 Medium
Return value of Object.toString() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 224 Medium

mockit.ClassInitializationTest$Dependent

Bug Category Details Line Priority
Method mockit.ClassInitializationTest$Dependent.<static initializer for Dependent>() ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 212 Medium
Return value of Object.toString() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 212 Medium

mockit.ClassLoadingAndJREMocksTest

Bug Category Details Line Priority
Return value of new ClassLoadingAndJREMocksTest$Foo() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 60 Medium
Method mockit.ClassLoadingAndJREMocksTest.fakeFile() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 49 Medium
Method mockit.ClassLoadingAndJREMocksTest.fakeFile() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 60 Medium
Method mockit.ClassLoadingAndJREMocksTest.fakeFileSafelyUsingProceed() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 95 Medium
Method mockit.ClassLoadingAndJREMocksTest.fakeFileSafelyUsingReentrantFakeMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 69 Medium
Method mockit.ClassLoadingAndJREMocksTest.fakeURLUsingInjectableURLConnection(URLConnection) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 264 Medium
Method mockit.ClassLoadingAndJREMocksTest.mockURLAndHttpURLConnectionWithDynamicMock(HttpURLConnection) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 166 Medium
Method mockit.ClassLoadingAndJREMocksTest.mockURLAndHttpURLConnectionWithDynamicMock(HttpURLConnection) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 183 Medium
Method mockit.ClassLoadingAndJREMocksTest.recordURLConnectionToReturnContent(URLConnection) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 243 Medium
This web server request could be used by an attacker to expose internal services and filesystem. SECURITY URLCONNECTION_SSRF_FD 148 Medium
This web server request could be used by an attacker to expose internal services and filesystem. SECURITY URLCONNECTION_SSRF_FD 130 Medium

mockit.ClassLoadingAndJREMocksTest$1

Bug Category Details Line Priority
Uncallable method mockit.ClassLoadingAndJREMocksTest$1.exists() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 56 High

mockit.ClassLoadingAndJREMocksTest$2

Bug Category Details Line Priority
Uncallable method mockit.ClassLoadingAndJREMocksTest$2.exists(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 72-73 High

mockit.ClassLoadingAndJREMocksTest$3

Bug Category Details Line Priority
Uncallable method mockit.ClassLoadingAndJREMocksTest$3.exists(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 98-99 High

mockit.ClassLoadingAndJREMocksTest$4

Bug Category Details Line Priority
Exception thrown in class mockit.ClassLoadingAndJREMocksTest$4 at new mockit.ClassLoadingAndJREMocksTest$4(ClassLoadingAndJREMocksTest, Object[], URL, HttpURLConnection) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 168 Medium
This web server request could be used by an attacker to expose internal services and filesystem. SECURITY URLCONNECTION_SSRF_FD 168 Medium

mockit.ClassLoadingAndJREMocksTest$5

Bug Category Details Line Priority
Exception thrown in class mockit.ClassLoadingAndJREMocksTest$5 at new mockit.ClassLoadingAndJREMocksTest$5(ClassLoadingAndJREMocksTest, HttpURLConnection) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 186 Medium

mockit.ClassLoadingAndJREMocksTest$6

Bug Category Details Line Priority
Exception thrown in class mockit.ClassLoadingAndJREMocksTest$6 at new mockit.ClassLoadingAndJREMocksTest$6(ClassLoadingAndJREMocksTest, URLConnection) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 245 Medium

mockit.ClassLoadingAndJREMocksTest$7

Bug Category Details Line Priority
Uncallable method mockit.ClassLoadingAndJREMocksTest$7.openConnection() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 271 High

mockit.ClassWithObjectOverrides

Bug Category Details Line Priority
Non derivable method mockit.ClassWithObjectOverrides.finalize() declares throwing an exception that isn't thrown CORRECTNESS BED_BOGUS_EXCEPTION_DECLARATION 44 Medium
Method mockit.ClassWithObjectOverrides.equals(Object) calls equals(Object o) on a StringBuilder or StringBuffer CORRECTNESS SPP_EQUALS_ON_STRING_BUILDER 28 Medium

mockit.CovariantReturnTypesTest

Bug Category Details Line Priority
Method mockit.CovariantReturnTypesTest.abstractMethodImplementationUsingRecordedExpectation(CovariantReturnTypesTest$AbstractBaseClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 133 Medium
Method mockit.CovariantReturnTypesTest.concreteMethodImplementationUsingRecordedExpectation(CovariantReturnTypesTest$ConcreteClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 111 Medium
Method mockit.CovariantReturnTypesTest.methodInClassHierarchyUsingRecordedExpectation(CovariantReturnTypesTest$SubClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 59 Medium
Method mockit.CovariantReturnTypesTest.methodInSubInterfaceReplayedThroughSuperInterfaceUsingRecordedExpectation(CovariantReturnTypesTest$SubInterface) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 239 Medium
Method mockit.CovariantReturnTypesTest.methodInSubInterfaceUsingRecordedExpectations(CovariantReturnTypesTest$SubInterface) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 213 Medium
Method mockit.CovariantReturnTypesTest.methodInSuperInterfaceWithVaryingReturnValuesUsingRecordedExpectation(CovariantReturnTypesTest$SuperInterface) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 187 Medium

mockit.CovariantReturnTypesTest$5

Bug Category Details Line Priority
Double assignment of field CovariantReturnTypesTest$5.result in new mockit.CovariantReturnTypesTest$5(CovariantReturnTypesTest, CovariantReturnTypesTest$SuperInterface, Object) STYLE SA_FIELD_DOUBLE_ASSIGNMENT 191 Medium

mockit.DelegateInvocationProceedTest

Bug Category Details Line Priority
Do not catch NullPointerException like in mockit.DelegateInvocationProceedTest.throwExceptionFromProceedIntoJREMethod(AbstractExecutorService, DelegateInvocationProceedTest$ClassToBeMocked) STYLE DCN_NULLPOINTER_EXCEPTION 512 Medium
Method mockit.DelegateInvocationProceedTest.proceedFromDelegateMethodIntoRealMethodWithModifiedArguments() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 303 Medium
Null passed for non-null parameter of DelegateInvocationProceedTest$ClassToBeMocked.anotherMethodToBeMocked(String, boolean, List) in mockit.DelegateInvocationProceedTest.proceedConditionallyFromDelegateMethod() CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 261 Medium
Method mockit.DelegateInvocationProceedTest.proceedConditionallyFromDelegateMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 243 Medium
Method mockit.DelegateInvocationProceedTest.proceedConditionallyFromDelegateMethodIntoConstructor(DelegateInvocationProceedTest$ClassToBeMocked) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 339 Medium
Method mockit.DelegateInvocationProceedTest.proceedFromDelegateMethodIntoConstructor(DelegateInvocationProceedTest$ClassToBeMocked) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 314 Medium
Method mockit.DelegateInvocationProceedTest.proceedFromDelegateMethodIntoJREConstructor(ProcessBuilder) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 367 Medium
Method mockit.DelegateInvocationProceedTest.proceedFromDelegateMethodIntoMethodInheritedFromBaseClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 401 Medium
Method mockit.DelegateInvocationProceedTest.proceedFromDelegateMethodIntoOverridingMethodThatCallsSuperWhichAlsoHasAProceedingDelegate(DelegateInvocationProceedTest$BaseClassToBeMocked, DelegateInvocationProceedTest$ClassToBeMocked) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 457 Medium
Method mockit.DelegateInvocationProceedTest.proceedFromDelegateMethodIntoOverridingMethodWhichCallsSuper(DelegateInvocationProceedTest$ClassToBeMocked) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 428 Medium
Method mockit.DelegateInvocationProceedTest.proceedFromDelegateMethodIntoRealMethodWithModifiedArguments() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 281 Medium
Method mockit.DelegateInvocationProceedTest.proceedFromDelegateMethodOnInjectableMockedClass(DelegateInvocationProceedTest$ClassToBeMocked) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 183 Medium
Method mockit.DelegateInvocationProceedTest.proceedFromDelegateMethodOnRegularMockedClass(DelegateInvocationProceedTest$ClassToBeMocked) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 160 Medium
Method mockit.DelegateInvocationProceedTest.proceedFromDelegateMethodWithParameters() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 208 Medium
Method mockit.DelegateInvocationProceedTest.throwExceptionFromProceedIntoJREMethod(AbstractExecutorService, DelegateInvocationProceedTest$ClassToBeMocked) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 497 Medium
Method mockit.DelegateInvocationProceedTest.throwExceptionFromProceedIntoJREMethod(AbstractExecutorService, DelegateInvocationProceedTest$ClassToBeMocked) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 513 Medium

mockit.DelegateInvocationProceedTest$1$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationProceedTest$1$1.delegate(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 166 Medium

mockit.DelegateInvocationProceedTest$10

Bug Category Details Line Priority
Exception thrown in class mockit.DelegateInvocationProceedTest$10 at new mockit.DelegateInvocationProceedTest$10(DelegateInvocationProceedTest, DelegateInvocationProceedTest$ClassToBeMocked) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 430 Medium
Return value of DelegateInvocationProceedTest$ClassToBeMocked.methodToBeMocked(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 430 Medium

mockit.DelegateInvocationProceedTest$10$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationProceedTest$10$1.delegate(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 434 Medium

mockit.DelegateInvocationProceedTest$11

Bug Category Details Line Priority
Exception thrown in class mockit.DelegateInvocationProceedTest$11 at new mockit.DelegateInvocationProceedTest$11(DelegateInvocationProceedTest, DelegateInvocationProceedTest$BaseClassToBeMocked, DelegateInvocationProceedTest$ClassToBeMocked) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 459 Medium
Return value of DelegateInvocationProceedTest$BaseClassToBeMocked.methodToBeMocked(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 459 Medium
Return value of DelegateInvocationProceedTest$ClassToBeMocked.methodToBeMocked(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 469 Medium

mockit.DelegateInvocationProceedTest$11$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationProceedTest$11$1.delegate(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 464-465 Medium

mockit.DelegateInvocationProceedTest$11$2

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationProceedTest$11$2.delegate(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 473 Medium

mockit.DelegateInvocationProceedTest$12$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationProceedTest$12$1.delegate(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 503-504 Medium

mockit.DelegateInvocationProceedTest$13

Bug Category Details Line Priority
Exception thrown in class mockit.DelegateInvocationProceedTest$13 at new mockit.DelegateInvocationProceedTest$13(DelegateInvocationProceedTest, DelegateInvocationProceedTest$ClassToBeMocked) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 515 Medium
Return value of DelegateInvocationProceedTest$ClassToBeMocked.methodToBeMocked(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 515 Medium

mockit.DelegateInvocationProceedTest$2$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationProceedTest$2$1.delegate(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 189 Medium

mockit.DelegateInvocationProceedTest$3

Bug Category Details Line Priority
Exception thrown in class mockit.DelegateInvocationProceedTest$3 at new mockit.DelegateInvocationProceedTest$3(DelegateInvocationProceedTest, Object[], DelegateInvocationProceedTest$ClassToBeMocked) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 210 Medium
Return value of DelegateInvocationProceedTest$ClassToBeMocked.methodToBeMocked(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 210 Medium
Return value of DelegateInvocationProceedTest$ClassToBeMocked.methodToBeMocked(int, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 219 Medium
Method new mockit.DelegateInvocationProceedTest$3(DelegateInvocationProceedTest, Object[], DelegateInvocationProceedTest$ClassToBeMocked) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 219 Medium

mockit.DelegateInvocationProceedTest$3$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationProceedTest$3$1.delegate(Invocation, int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 214-215 Medium

mockit.DelegateInvocationProceedTest$3$2

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationProceedTest$3$2.delegate(Invocation, int, Object[]) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 224-225 Medium

mockit.DelegateInvocationProceedTest$4$1

Bug Category Details Line Priority
mockit.DelegateInvocationProceedTest$4$1.delegate(Invocation, String, boolean, List): 4th parameter 'ints' could be declared as java.util.Collection instead STYLE OCP_OVERLY_CONCRETE_COLLECTION_PARAMETER 249 Medium
Uncallable method mockit.DelegateInvocationProceedTest$4$1.delegate(Invocation, String, boolean, List) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 249-254 Medium

mockit.DelegateInvocationProceedTest$5

Bug Category Details Line Priority
Exception thrown in class mockit.DelegateInvocationProceedTest$5 at new mockit.DelegateInvocationProceedTest$5(DelegateInvocationProceedTest, Object[], DelegateInvocationProceedTest$ClassToBeMocked) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 283 Medium
Return value of DelegateInvocationProceedTest$ClassToBeMocked.methodToBeMocked(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 283 Medium
Return value of DelegateInvocationProceedTest$ClassToBeMocked.methodToBeMocked(int, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 291 Medium
Method new mockit.DelegateInvocationProceedTest$5(DelegateInvocationProceedTest, Object[], DelegateInvocationProceedTest$ClassToBeMocked) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 291 Medium

mockit.DelegateInvocationProceedTest$5$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationProceedTest$5$1.delegate1(Invocation, int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 287 Medium

mockit.DelegateInvocationProceedTest$5$2

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationProceedTest$5$2.delegate2(Invocation, int, Object[]) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 295-296 Medium

mockit.DelegateInvocationProceedTest$6

Bug Category Details Line Priority
Return value of new DelegateInvocationProceedTest$ClassToBeMocked() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 316 Medium
Method new mockit.DelegateInvocationProceedTest$6(DelegateInvocationProceedTest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 316 Medium

mockit.DelegateInvocationProceedTest$6$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationProceedTest$6$1.init(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 320-322 Medium

mockit.DelegateInvocationProceedTest$7

Bug Category Details Line Priority
Return value of new DelegateInvocationProceedTest$ClassToBeMocked(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 341 Medium
Method new mockit.DelegateInvocationProceedTest$7(DelegateInvocationProceedTest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 341 Medium

mockit.DelegateInvocationProceedTest$7$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationProceedTest$7$1.init(Invocation, String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 345-350 Medium

mockit.DelegateInvocationProceedTest$8

Bug Category Details Line Priority
This usage of java/lang/ProcessBuilder.<init>([Ljava/lang/String;)V can be vulnerable to Command Injection SECURITY COMMAND_INJECTION 369 Medium
Return value of ProcessBuilder.command() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 377 Medium

mockit.DelegateInvocationProceedTest$8$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationProceedTest$8$1.init(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 373-374 Medium

mockit.DelegateInvocationProceedTest$8$2

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationProceedTest$8$2.delegate(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 381 Medium

mockit.DelegateInvocationProceedTest$9

Bug Category Details Line Priority
Return value of DelegateInvocationProceedTest$BaseClassToBeMocked.baseMethod(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 403 Medium

mockit.DelegateInvocationProceedTest$9$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationProceedTest$9$1.baseMethod(Invocation, int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 407 Medium

mockit.DelegateInvocationTest

Bug Category Details Line Priority
Null passed for non-null parameter of DelegateInvocationTest$Collaborator.doSomething(boolean, int[], String) in mockit.DelegateInvocationTest.delegateReceivingNullArguments(DelegateInvocationTest$Collaborator) CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 209 Medium
Return value of DelegateInvocationTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 354 Medium
Return value of new DelegateInvocationTest$Collaborator(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 174 Medium
Method mockit.DelegateInvocationTest.consecutiveDelegatesForTheSameExpectation(DelegateInvocationTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 326 Medium
Method mockit.DelegateInvocationTest.delegateClassWithMultipleMethodsAndInexactButValidMatch(DelegateInvocationTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 249 Medium
Method mockit.DelegateInvocationTest.delegateForConstructorWithContext(DelegateInvocationTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 167 Medium
Method mockit.DelegateInvocationTest.delegateForConstructorWithContext(DelegateInvocationTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 174 Medium
Method mockit.DelegateInvocationTest.delegateMethodWithInvocationForInterface(Callable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 372 Medium
Method mockit.DelegateInvocationTest.delegateMethodWithNoParametersForExpectationWithParameters(DelegateInvocationTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 277 Medium
Method mockit.DelegateInvocationTest.delegateReceivingNullArguments(DelegateInvocationTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 187 Medium
Method mockit.DelegateInvocationTest.delegateWithAnotherMethodOnTheDelegateClass(DelegateInvocationTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 220 Medium
Method mockit.DelegateInvocationTest.delegateWithContextObject(DelegateInvocationTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 115 Medium
Method mockit.DelegateInvocationTest.delegateWithDifferentMethodName(DelegateInvocationTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 300 Medium
Method mockit.DelegateInvocationTest.useOfContextParametersForJREMethods() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 399 Medium

mockit.DelegateInvocationTest$1

Bug Category Details Line Priority
Return value of DelegateInvocationTest$Collaborator.staticMethod() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 117 Medium

mockit.DelegateInvocationTest$1$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationTest$1$1.staticMethod(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 121-124 Medium

mockit.DelegateInvocationTest$10

Bug Category Details Line Priority
This usage of java/lang/Runtime.exec(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/Process; can be vulnerable to Command Injection SECURITY COMMAND_INJECTION 401 Medium
Exception thrown in class mockit.DelegateInvocationTest$10 at new mockit.DelegateInvocationTest$10(DelegateInvocationTest, Object[], Runtime) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 401 Medium

mockit.DelegateInvocationTest$10$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationTest$10$1.exec(Invocation, String, String[]) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 406-410 Medium

mockit.DelegateInvocationTest$2

Bug Category Details Line Priority
Return value of new DelegateInvocationTest$Collaborator(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 169 Medium
Method new mockit.DelegateInvocationTest$2(DelegateInvocationTest, DelegateInvocationTest$ConstructorDelegate) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 169 Medium

mockit.DelegateInvocationTest$3

Bug Category Details Line Priority
Null passed for non-null parameter of DelegateInvocationTest$Collaborator.doSomething(boolean, int[], String) in new mockit.DelegateInvocationTest$3(DelegateInvocationTest, DelegateInvocationTest$Collaborator) CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 189 Medium

mockit.DelegateInvocationTest$3$1

Bug Category Details Line Priority
Method mockit.DelegateInvocationTest$3$1.doSomething(Invocation, Boolean, int[], String) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 202 Medium
Method mockit.DelegateInvocationTest$3$1.doSomething(Invocation, Boolean, int[], String) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 203 Medium
Uncallable method mockit.DelegateInvocationTest$3$1.doSomething(Invocation, Boolean, int[], String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 193-204 Medium

mockit.DelegateInvocationTest$4

Bug Category Details Line Priority
Return value of DelegateInvocationTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 222 Medium

mockit.DelegateInvocationTest$4$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationTest$4$1.getValue(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 226 Medium
Static or private method mockit.DelegateInvocationTest$4$1.otherMethod(Invocation) has unused parameters STYLE UP_UNUSED_PARAMETER 231-232 Medium

mockit.DelegateInvocationTest$5

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

mockit.DelegateInvocationTest$5$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationTest$5$1.staticMethod(Invocation, Number) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 260 Medium
Static or private method mockit.DelegateInvocationTest$5$1.otherMethod(int) has unused parameters STYLE UP_UNUSED_PARAMETER 255-256 Medium

mockit.DelegateInvocationTest$6

Bug Category Details Line Priority
Return value of DelegateInvocationTest$Collaborator.publicMethod(boolean) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 279 Medium

mockit.DelegateInvocationTest$6$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationTest$6$1.nonMatchingDelegate() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 283 Medium

mockit.DelegateInvocationTest$7

Bug Category Details Line Priority
Return value of DelegateInvocationTest$Collaborator.publicMethod(boolean) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 302 Medium

mockit.DelegateInvocationTest$7$1

Bug Category Details Line Priority
Suspicious comparison of Boolean references in mockit.DelegateInvocationTest$7$1.differentName(Invocation, boolean) BAD_PRACTICE RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN 308 Medium
Uncallable method mockit.DelegateInvocationTest$7$1.differentName(Invocation, boolean) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 306-309 Medium

mockit.DelegateInvocationTest$8

Bug Category Details Line Priority
Return value of DelegateInvocationTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 328 Medium

mockit.DelegateInvocationTest$8$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationTest$8$1.delegate(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 332-333 Medium

mockit.DelegateInvocationTest$8$2

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationTest$8$2.delegate(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 338 Medium

mockit.DelegateInvocationTest$8$3

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationTest$8$3.delegate(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 343-344 Medium

mockit.DelegateInvocationTest$9

Bug Category Details Line Priority
Exception thrown in class mockit.DelegateInvocationTest$9 at new mockit.DelegateInvocationTest$9(DelegateInvocationTest, Callable) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 374 Medium

mockit.DelegateInvocationTest$9$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateInvocationTest$9$1.delegate(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 378 Medium

mockit.DelegateTest

Bug Category Details Line Priority
Found reliance on default encoding in mockit.DelegateTest.returnByteArrayFromDelegateMethod(DelegateTest$Collaborator): String.getBytes() I18N DM_DEFAULT_ENCODING 995 High
Method mockit.DelegateTest.returnByteArrayFromDelegateMethod(DelegateTest$Collaborator) encodes String bytes without specifying the character encoding CORRECTNESS MDM_STRING_BYTES_ENCODING 995 Medium
Null passed for non-null parameter of DelegateTest$Collaborator.doSomething(boolean, int[], String) in mockit.DelegateTest.delegateReceivingNullArguments(DelegateTest$Collaborator) CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 567 Medium
Null passed for non-null parameter of DelegateTest$Collaborator.doSomething(boolean, int[], String) in mockit.DelegateTest.delegateWithSingleMethodHavingADifferentName(DelegateTest$Collaborator) CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 617 Medium
Null passed for non-null parameter of DelegateTest$Collaborator.doSomething(boolean, int[], String) in mockit.DelegateTest.delegateWithSingleMethodHavingNoParameters(DelegateTest$Collaborator) CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 639 Medium
Null passed for non-null parameter of DelegateTest$Collaborator.doSomething(boolean, int[], String) in mockit.DelegateTest.delegateWithTwoMethods(DelegateTest$Collaborator) CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 593 Medium
Return value of new DelegateTest$Collaborator(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 374 Medium
Return value of new DelegateTest$Collaborator(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 327 Medium
Return value of DelegateTest$Collaborator.getFoo() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 901 Medium
Return value of DelegateTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 954 Medium
Return value of DelegateTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 980 Medium
Method mockit.DelegateTest.consecutiveResultsThroughDelegatesHavingDifferentValues(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 230 Medium
Method mockit.DelegateTest.consecutiveReturnValuesThroughDelegatesUsingSingleReturnsWithVarargs(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 261 Medium
Method mockit.DelegateTest.constructorDelegateWithMultipleMethods(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 359 Medium
Method mockit.DelegateTest.constructorDelegateWithMultipleMethods(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 374 Medium
Method mockit.DelegateTest.constructorDelegateWithMultipleMethods(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 377 Medium
Method mockit.DelegateTest.constructorDelegateWithSingleMethod(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 320 Medium
Method mockit.DelegateTest.constructorDelegateWithSingleMethod(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 327 Medium
Method mockit.DelegateTest.convertValueReturnedFromDelegateWhenReturnsTypesDiffer(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 918 Medium
Method mockit.DelegateTest.delegateCallingMockedMethodLaterVerified(DelegateTest$Collaborator, Runnable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 890 Medium
Method mockit.DelegateTest.delegateCallingMockedMethodLaterVerified(DelegateTest$Collaborator, Runnable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 903 Medium
Method mockit.DelegateTest.delegateCausingConcurrentMockInvocation(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 737 Medium
Method mockit.DelegateTest.delegateForFinalMethod(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 508 Medium
Method mockit.DelegateTest.delegateForMethodWithCompatibleButDistinctParameterType(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 530 Medium
Method mockit.DelegateTest.delegateForNativeMethod(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 485 Medium
Method mockit.DelegateTest.delegateForStaticMethod(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 417 Medium
Method mockit.DelegateTest.delegateReceivingNullArguments(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 555 Medium
Method mockit.DelegateTest.delegateWhichCallsAnotherMockedMethod(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 787 Medium
Method mockit.DelegateTest.delegateWhichCallsAnotherMockedMethodProducingACascadedInstance(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 861 Medium
Method mockit.DelegateTest.delegateWhichCallsAnotherMockedMethod_injectableMocking(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 836 Medium
Method mockit.DelegateTest.delegateWhichCallsAnotherMockedMethod_partialMockingOfInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 811 Medium
Method mockit.DelegateTest.delegateWhichCallsTheSameMockedMethod(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 762 Medium
Method mockit.DelegateTest.delegateWithOneMethodHavingDifferentParameters(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 674 Medium
Method mockit.DelegateTest.delegateWithSingleMethodHavingADifferentName(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 604 Medium
Method mockit.DelegateTest.delegateWithSingleMethodHavingNoParameters(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 628 Medium
Method mockit.DelegateTest.delegateWithSingleMethodHavingNoParametersExceptForInvocationContext(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 652 Medium
Method mockit.DelegateTest.delegateWithStaticMethod(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 439 Medium
Method mockit.DelegateTest.delegateWithTwoMethods(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 579 Medium
Method mockit.DelegateTest.lambda$attemptToUseConstructorDelegateWithPrivateMethodsOnly$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 393 Medium
Method mockit.DelegateTest.lambda$delegateWithTwoNonPrivateMethods$0(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 701 Medium
Method mockit.DelegateTest.resultFromDelegate(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 197 Medium
Method mockit.DelegateTest.resultWithMultipleReturnValuesThroughSingleDelegate(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 292 Medium
Method mockit.DelegateTest.returnByteArrayFromDelegateMethod(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 996 Medium
Method mockit.DelegateTest.returnInconvertibleValueFromDelegateWhenReturnsTypesDiffer(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 942 Medium
Method mockit.DelegateTest.returnValueOfCorrectTypeFromDelegateMethodReturningASupertype(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1020 Medium
Method mockit.DelegateTest.returnVoidFromDelegateMethodForRecordedMethodHavingPrimitiveReturnType(DelegateTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 969 Medium

mockit.DelegateTest$1

Bug Category Details Line Priority
Return value of DelegateTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 199 Medium

mockit.DelegateTest$1$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$1$1.getValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 202 Medium

mockit.DelegateTest$1$2

Bug Category Details Line Priority
Method mockit.DelegateTest$1$2.doSomething(boolean, int[], String) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 209 Medium
Uncallable method mockit.DelegateTest$1$2.doSomething(boolean, int[], String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 209-212 Medium

mockit.DelegateTest$10$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$10$1.nativeMethod(boolean) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 490-491 Medium

mockit.DelegateTest$11

Bug Category Details Line Priority
Return value of DelegateTest$Collaborator.finalMethod() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 510 Medium

mockit.DelegateTest$11$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$11$1.finalMethod() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 513 Medium

mockit.DelegateTest$12$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$12$1.delegate(Collection) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 535-536 Medium

mockit.DelegateTest$13

Bug Category Details Line Priority
Null passed for non-null parameter of DelegateTest$Collaborator.doSomething(boolean, int[], String) in new mockit.DelegateTest$13(DelegateTest, DelegateTest$Collaborator) CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 557 Medium

mockit.DelegateTest$13$1

Bug Category Details Line Priority
Invocation of toString on i in mockit.DelegateTest$13$1.delegate(boolean, int[], String) CORRECTNESS DMI_INVOKING_TOSTRING_ON_ARRAY 561 High
Uncallable method mockit.DelegateTest$13$1.delegate(boolean, int[], String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 561 Medium

mockit.DelegateTest$14

Bug Category Details Line Priority
Null passed for non-null parameter of DelegateTest$Collaborator.doSomething(boolean, int[], String) in new mockit.DelegateTest$14(DelegateTest, DelegateTest$Collaborator) CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 581 Medium

mockit.DelegateTest$14$1

Bug Category Details Line Priority
Private or static method mockit.DelegateTest$14$1.someOther() only returns one constant value STYLE MRC_METHOD_RETURNS_CONSTANT 584 Medium
Uncallable method mockit.DelegateTest$14$1.doSomething(boolean, int[], String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 588 Medium

mockit.DelegateTest$15

Bug Category Details Line Priority
Null passed for non-null parameter of DelegateTest$Collaborator.doSomething(boolean, int[], String) in new mockit.DelegateTest$15(DelegateTest, DelegateTest$Collaborator) CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 606 Medium

mockit.DelegateTest$15$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$15$1.onReplay(boolean, int[], String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 609-612 Medium

mockit.DelegateTest$16

Bug Category Details Line Priority
Null passed for non-null parameter of DelegateTest$Collaborator.doSomething(boolean, int[], String) in new mockit.DelegateTest$16(DelegateTest, DelegateTest$Collaborator) CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 630 Medium

mockit.DelegateTest$16$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$16$1.onReplay() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 633 Medium

mockit.DelegateTest$17

Bug Category Details Line Priority
Null passed for non-null parameter of DelegateTest$Collaborator.doSomething(boolean, int[], String) in new mockit.DelegateTest$17(DelegateTest, DelegateTest$Collaborator) CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 654 Medium

mockit.DelegateTest$17$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$17$1.doSomething(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 657-658 Medium

mockit.DelegateTest$18

Bug Category Details Line Priority
Null passed for non-null parameter of DelegateTest$Collaborator.doSomething(boolean, int[], String) in new mockit.DelegateTest$18(DelegateTest, DelegateTest$Collaborator) CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 676 Medium

mockit.DelegateTest$18$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$18$1.delegate(boolean, String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 679 Medium

mockit.DelegateTest$19

Bug Category Details Line Priority
Null passed for non-null parameter of DelegateTest$Collaborator.doSomething(boolean, int[], String) in new mockit.DelegateTest$19(DelegateTest, DelegateTest$Collaborator) CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 703 Medium

mockit.DelegateTest$19$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$19$1.doSomethingElse(boolean, int[], String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 710 Medium
Uncallable method mockit.DelegateTest$19$1.someOther() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 706 Medium

mockit.DelegateTest$2

Bug Category Details Line Priority
Return value of DelegateTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 232 Medium

mockit.DelegateTest$2$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$2$1.getValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 235 Medium

mockit.DelegateTest$2$2

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$2$2.getValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 240 Medium

mockit.DelegateTest$20

Bug Category Details Line Priority
Null passed for non-null parameter of DelegateTest$Collaborator.doSomething(boolean, int[], String) in mockit.DelegateTest$20.run() CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 733 Medium

mockit.DelegateTest$21

Bug Category Details Line Priority
Return value of DelegateTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 739 Medium

mockit.DelegateTest$21$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$21$1.executeInAnotherThread() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 743-745 Medium

mockit.DelegateTest$22

Bug Category Details Line Priority
Return value of DelegateTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 764 Medium

mockit.DelegateTest$22$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$22$1.delegate() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 770 Medium

mockit.DelegateTest$23

Bug Category Details Line Priority
Return value of DelegateTest$Collaborator.finalMethod() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 796 Medium
Return value of DelegateTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 789 Medium

mockit.DelegateTest$23$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$23$1.delegate() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 792 Medium

mockit.DelegateTest$24

Bug Category Details Line Priority
Return value of DelegateTest$Collaborator.finalMethod() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 820 Medium
Return value of DelegateTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 813 Medium

mockit.DelegateTest$24$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$24$1.delegate() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 816 Medium

mockit.DelegateTest$25

Bug Category Details Line Priority
Return value of DelegateTest$Collaborator.finalMethod() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 845 Medium
Return value of DelegateTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 838 Medium

mockit.DelegateTest$25$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$25$1.delegate() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 841 Medium

mockit.DelegateTest$26

Bug Category Details Line Priority
Return value of DelegateTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 866 Medium
Return value of DelegateTest$Foo.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 863 Medium

mockit.DelegateTest$26$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$26$1.delegate() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 869 Medium

mockit.DelegateTest$27

Bug Category Details Line Priority
Return value of DelegateTest$Collaborator.getFoo() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 892 Medium

mockit.DelegateTest$27$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$27$1.delegate() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 895-896 Medium

mockit.DelegateTest$29

Bug Category Details Line Priority
Return value of DelegateTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 920 Medium

mockit.DelegateTest$29$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$29$1.delegate() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 923 Medium

mockit.DelegateTest$3$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$3$1.execute(boolean, int[], String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 266-267 Medium

mockit.DelegateTest$3$2

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$3$2.execute(boolean, int[], String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 271-272 Medium

mockit.DelegateTest$30

Bug Category Details Line Priority
Return value of DelegateTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 944 Medium

mockit.DelegateTest$30$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$30$1.delegate() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 947 Medium

mockit.DelegateTest$31

Bug Category Details Line Priority
Return value of DelegateTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 971 Medium

mockit.DelegateTest$31$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$31$1.delegate() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 974 Medium

mockit.DelegateTest$32

Bug Category Details Line Priority
Return value of DelegateTest$Collaborator.getArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 998 Medium

mockit.DelegateTest$32$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$32$1.delegate() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 1001 Medium

mockit.DelegateTest$33

Bug Category Details Line Priority
Return value of DelegateTest$Collaborator.getFoo() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1022 Medium

mockit.DelegateTest$33$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$33$1.delegate() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 1025 Medium

mockit.DelegateTest$4

Bug Category Details Line Priority
Return value of DelegateTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 294 Medium

mockit.DelegateTest$4$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$4$1.getValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 299 Medium

mockit.DelegateTest$5

Bug Category Details Line Priority
Return value of new DelegateTest$Collaborator(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 322 Medium
Method new mockit.DelegateTest$5(DelegateTest, DelegateTest$ConstructorDelegate) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 322 Medium

mockit.DelegateTest$6

Bug Category Details Line Priority
Return value of new DelegateTest$Collaborator(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 361 Medium
Method new mockit.DelegateTest$6(DelegateTest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 361 Medium

mockit.DelegateTest$6$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$6$1.init(int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 364-366 Medium

mockit.DelegateTest$7

Bug Category Details Line Priority
Return value of new DelegateTest$Collaborator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 395 Medium
Method new mockit.DelegateTest$7(DelegateTest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 395 Medium

mockit.DelegateTest$8

Bug Category Details Line Priority
Return value of DelegateTest$Collaborator.staticMethod() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 419 Medium

mockit.DelegateTest$8$1

Bug Category Details Line Priority
Uncallable method mockit.DelegateTest$8$1.staticMethod() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 422 Medium

mockit.DelegateTest$9

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

mockit.DelegateTest$Collaborator

Bug Category Details Line Priority
mockit.DelegateTest$Collaborator.addElements(List): 1st parameter 'elements' could be declared as java.util.Collection instead STYLE OCP_OVERLY_CONCRETE_COLLECTION_PARAMETER 149 Medium

mockit.DynamicMockingInBeforeMethodTest

Bug Category Details Line Priority
Method mockit.DynamicMockingInBeforeMethodTest.recordExpectationsOnDynamicallyMockedClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 46 Medium
Method mockit.DynamicMockingInBeforeMethodTest.verifyThatDynamicallyMockedClassIsStillMocked() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 62 Medium

mockit.DynamicMockingInBeforeMethodTest$1

Bug Category Details Line Priority
Method new mockit.DynamicMockingInBeforeMethodTest$1(DynamicMockingInBeforeMethodTest, Object[]) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 49 Medium
Return value of DynamicMockingInBeforeMethodTest$MockedClass.doSomething(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 48 Medium

mockit.DynamicMockingInBeforeMethodTest$2

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

mockit.DynamicOnInstanceMockingTest

Bug Category Details Line Priority
Method mockit.DynamicOnInstanceMockingTest.createCascadedMockFromPartiallyMockedInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 271 Medium
Method mockit.DynamicOnInstanceMockingTest.lambda$verifyOrderedInvocationsToDynamicallyMockedInstanceWithAnotherInstanceInvolvedButMissingAnInvocation$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 381 Medium
Method mockit.DynamicOnInstanceMockingTest.lambda$verifyOrderedInvocationsToDynamicallyMockedInstanceWithAnotherInstanceInvolvedButMissingAnInvocation$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 387 Medium
Method mockit.DynamicOnInstanceMockingTest.mockingOneInstanceAndMatchingInvocationsOnlyOnThatInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 95 Medium
Method mockit.DynamicOnInstanceMockingTest.mockingOneInstanceButRecordingOnAnother() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 138 Medium
Method mockit.DynamicOnInstanceMockingTest.mockingTwoInstancesAndMatchingInvocationsOnEachOne() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 116 Medium
Method mockit.DynamicOnInstanceMockingTest.recordDuplicateInvocationOnTwoDynamicMocksOfDifferentTypesButSharedBaseClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 213 Medium
Method mockit.DynamicOnInstanceMockingTest.useAvailableMockedInstanceAsCascadeFromPartiallyMockedInstance(DynamicOnInstanceMockingTest$AnotherDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 291 Medium
Method mockit.DynamicOnInstanceMockingTest.useAvailableMockedSubclassInstanceAsCascadeFromPartiallyMockedInstance(DynamicOnInstanceMockingTest$Bar) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 319 Medium
Method mockit.DynamicOnInstanceMockingTest.useItselfAsCascadeFromPartiallyMockedInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 338 Medium
Method mockit.DynamicOnInstanceMockingTest.verifyMethodInvocationCountOnMockedAndNonMockedInstances() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 236 Medium
Method mockit.DynamicOnInstanceMockingTest.verifyMethodInvocationCountOnMockedAndNonMockedInstances() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 252 Medium
Method mockit.DynamicOnInstanceMockingTest.verifyOrderedInvocationsToDynamicallyMockedInstanceWithAnotherInstanceInvolved() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 405 Medium
Method mockit.DynamicOnInstanceMockingTest.verifyOrderedInvocationsToDynamicallyMockedInstanceWithAnotherInstanceInvolved() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 414 Medium
Method mockit.DynamicOnInstanceMockingTest.verifySingleInvocationToMockedInstanceWithAdditionalInvocationToSameMethodOnAnotherInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 357 Medium
Method mockit.DynamicOnInstanceMockingTest.verifySingleInvocationToMockedInstanceWithAdditionalInvocationToSameMethodOnAnotherInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 364 Medium
Useless object created in method mockit.DynamicOnInstanceMockingTest.lambda$verifyOrderedInvocationsToDynamicallyMockedInstanceWithAnotherInstanceInvolvedButMissingAnInvocation$0() STYLE UC_USELESS_OBJECT_STACK 385 Medium
Useless object created in method mockit.DynamicOnInstanceMockingTest.verifyOrderedInvocationsToDynamicallyMockedInstanceWithAnotherInstanceInvolved() STYLE UC_USELESS_OBJECT_STACK 412 Medium

mockit.DynamicOnInstanceMockingTest$1

Bug Category Details Line Priority
Return value of DynamicOnInstanceMockingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 97 Medium

mockit.DynamicOnInstanceMockingTest$10

Bug Category Details Line Priority
Method new mockit.DynamicOnInstanceMockingTest$10(DynamicOnInstanceMockingTest, Object[], DynamicOnInstanceMockingTest$Foo) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 341 Medium
Return value of DynamicOnInstanceMockingTest$Foo.doIt() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 340 Medium

mockit.DynamicOnInstanceMockingTest$12

Bug Category Details Line Priority
Return value of DynamicOnInstanceMockingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 366 Medium

mockit.DynamicOnInstanceMockingTest$2

Bug Category Details Line Priority
Return value of DynamicOnInstanceMockingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 118 Medium

mockit.DynamicOnInstanceMockingTest$3

Bug Category Details Line Priority
Return value of DynamicOnInstanceMockingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 141 Medium

mockit.DynamicOnInstanceMockingTest$4

Bug Category Details Line Priority
Method new mockit.DynamicOnInstanceMockingTest$4(DynamicOnInstanceMockingTest, Object[], DynamicOnInstanceMockingTest$Foo, DynamicOnInstanceMockingTest$SubFoo) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 216 Medium
Method new mockit.DynamicOnInstanceMockingTest$4(DynamicOnInstanceMockingTest, Object[], DynamicOnInstanceMockingTest$Foo, DynamicOnInstanceMockingTest$SubFoo) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 218 Medium
Return value of DynamicOnInstanceMockingTest$Foo.doIt() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 215 Medium

mockit.DynamicOnInstanceMockingTest$5

Bug Category Details Line Priority
Method new mockit.DynamicOnInstanceMockingTest$5(DynamicOnInstanceMockingTest, Object[], DynamicOnInstanceMockingTest$Foo) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 239 Medium
Return value of DynamicOnInstanceMockingTest$Foo.doIt() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 238 Medium

mockit.DynamicOnInstanceMockingTest$7

Bug Category Details Line Priority
Return value of DynamicOnInstanceMockingTest$AnotherDependency.getName() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 273 Medium

mockit.DynamicOnInstanceMockingTest$8

Bug Category Details Line Priority
Return value of DynamicOnInstanceMockingTest$AnotherDependency.getName() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 293 Medium

mockit.DynamicOnInstanceMockingTest$9

Bug Category Details Line Priority
Return value of DynamicOnInstanceMockingTest$AnotherDependency.getName() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 321 Medium

mockit.ExpectationsForConstructorsTest

Bug Category Details Line Priority
Return value of new ExpectationsForConstructorsTest$D(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 163 Medium
Return value of new ExpectationsForConstructorsTest$Collaborator2() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 271 Medium
Return value of new ExpectationsForConstructorsTest$Base() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 192 Medium
Return value of new ExpectationsForConstructorsTest$Derived() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 211 Medium
Return value of new ExpectationsForConstructorsTest$Derived() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 223 Medium
Method mockit.ExpectationsForConstructorsTest.mockAllConstructors(ExpectationsForConstructorsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 80 Medium
Method mockit.ExpectationsForConstructorsTest.mockClassHierarchyWhereFirstConstructorInBaseClassIsPrivate(ExpectationsForConstructorsTest$B) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 137 Medium
Method mockit.ExpectationsForConstructorsTest.mockClassHierarchyWhereFirstConstructorInBaseClassOnAnotherPackageIsPackagePrivate(ExpectationsForConstructorsTest$D) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 163 Medium
Method mockit.ExpectationsForConstructorsTest.mockConstructorWhichCallsTwoOthersOfTheSameClass(ExpectationsForConstructorsTest$Collaborator2) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 271 Medium
Method mockit.ExpectationsForConstructorsTest.recordAndReplayBaseConstructorInvocation(ExpectationsForConstructorsTest$Base) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 186 Medium
Method mockit.ExpectationsForConstructorsTest.recordAndReplayBaseConstructorInvocation(ExpectationsForConstructorsTest$Base) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 192 Medium
Method mockit.ExpectationsForConstructorsTest.recordExpectationOnBaseConstructorAndReplayWithCallToSuper(ExpectationsForConstructorsTest$Base) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 204 Medium
Method mockit.ExpectationsForConstructorsTest.recordExpectationOnBaseConstructorAndReplayWithCallToSuper(ExpectationsForConstructorsTest$Base) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 211 Medium
Method mockit.ExpectationsForConstructorsTest.verifyExpectationOnBaseConstructorReplayedWithCallToSuper(ExpectationsForConstructorsTest$Base) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 223 Medium
Method mockit.ExpectationsForConstructorsTest.verifyExpectationOnBaseConstructorReplayedWithCallToSuper(ExpectationsForConstructorsTest$Base) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 225 Medium

mockit.ExpectationsForConstructorsTest$1

Bug Category Details Line Priority
Return value of new ExpectationsForConstructorsTest$Collaborator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 82 Medium
Return value of new ExpectationsForConstructorsTest$Collaborator(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 83 Medium
Method new mockit.ExpectationsForConstructorsTest$1(ExpectationsForConstructorsTest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 82 Medium
Method new mockit.ExpectationsForConstructorsTest$1(ExpectationsForConstructorsTest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 83 Medium

mockit.ExpectationsForConstructorsTest$2

Bug Category Details Line Priority
Return value of new ExpectationsForConstructorsTest$Base() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 188 Medium
Method new mockit.ExpectationsForConstructorsTest$2(ExpectationsForConstructorsTest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 188 Medium

mockit.ExpectationsForConstructorsTest$3

Bug Category Details Line Priority
Return value of new ExpectationsForConstructorsTest$Base() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 206 Medium
Method new mockit.ExpectationsForConstructorsTest$3(ExpectationsForConstructorsTest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 206 Medium

mockit.ExpectationsForConstructorsTest$4

Bug Category Details Line Priority
Return value of new ExpectationsForConstructorsTest$Base() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 227 Medium
Method new mockit.ExpectationsForConstructorsTest$4(ExpectationsForConstructorsTest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 227 Medium

mockit.ExpectationsTest

Bug Category Details Line Priority
Null passed for non-null parameter of ExpectationsTest$Dependency.doSomething(Integer, boolean) in mockit.ExpectationsTest.expectationsRecordedOnSameMethodWithMatcherInOneAndFixedArgumentInAnother() CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 211 Medium
Return value of ExpectationsTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 556 Medium
Return value of ExpectationsTest$Dependency.staticMethod(Object, Exception) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 349 Medium
Return value of ExpectationsTest$Collaborator.doSomething(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 581 Medium
Return value of ExpectationsTest$Collaborator.doInternal() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 523 Medium
Method mockit.ExpectationsTest.expectNothingOnMockedTypeButExerciseItDuringReplay(ExpectationsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 495 Medium
Method mockit.ExpectationsTest.expectNothingOnMockedTypeButExerciseItDuringReplay(ExpectationsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 504 Medium
Method mockit.ExpectationsTest.expectOnlyOneInvocationButExerciseOthersDuringReplay(ExpectationsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 473 Medium
Method mockit.ExpectationsTest.expectOnlyOneInvocationButExerciseOthersDuringReplay(ExpectationsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 482 Medium
Method mockit.ExpectationsTest.expectationsRecordedOnSameMethodWithMatcherInOneAndFixedArgumentInAnother() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 201 Medium
Method mockit.ExpectationsTest.expectationsRecordedOnSameMethodWithSameMatchersButDifferentArguments() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 182 Medium
Method mockit.ExpectationsTest.failureFromUnexpectedInvocationInAnotherThread(ExpectationsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 550 Medium
Method mockit.ExpectationsTest.failureFromUnexpectedInvocationInAnotherThread(ExpectationsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 560 Medium
Method mockit.ExpectationsTest.lambda$replayWithUnexpectedStaticMethodInvocation$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 526 Medium
Method mockit.ExpectationsTest.recordInvocationThatWillNotOccur() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 165 Medium
Method mockit.ExpectationsTest.recordInvocationWithExactExpectedNumberOfInvocationsButFailToSatisfy() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 222 Medium
Method mockit.ExpectationsTest.recordInvocationWithMaximumExpectedNumberOfInvocationsButFailToSatisfy() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 251 Medium
Method mockit.ExpectationsTest.recordInvocationWithMinimumExpectedNumberOfInvocationsButFailToSatisfy() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 236 Medium
Method mockit.ExpectationsTest.recordInvocationsWithExpectedInvocationCounts() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 267 Medium
Method mockit.ExpectationsTest.recordInvocationsWithMinInvocationCountLargerThanWillOccur() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 288 Medium
Method mockit.ExpectationsTest.recordSimpleInvocations() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 149 Medium
Method mockit.ExpectationsTest.recordWithArgumentMatcherAndIndividualInvocationCounts() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 303 Medium
Method mockit.ExpectationsTest.recordWithMaxInvocationCountFollowedByReturnValue() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 324 Medium
Method mockit.ExpectationsTest.recordWithMaxInvocationCountFollowedByReturnValueButReplayOneTimeBeyondMax() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 341 Medium
Method mockit.ExpectationsTest.recordWithMinInvocationCountFollowedByReturnValueUsingDelegate() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 374 Medium
Method mockit.ExpectationsTest.recordWithReturnValueFollowedByExpectedInvocationCount() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 358 Medium
Method mockit.ExpectationsTest.recordingExpectationOnMethodWithOneArgumentButReplayingWithAnotherShouldProduceUsefulErrorMessage(ExpectationsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 575 Medium
Method mockit.ExpectationsTest.recordingExpectationOnMethodWithOneArgumentButReplayingWithAnotherShouldProduceUsefulErrorMessage(ExpectationsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 586 Medium
Method mockit.ExpectationsTest.replayWithUnexpectedStaticMethodInvocation(ExpectationsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 517 Medium

mockit.ExpectationsTest$11

Bug Category Details Line Priority
Return value of ExpectationsTest$Dependency.staticMethod(Object, Exception) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 326 Medium

mockit.ExpectationsTest$12

Bug Category Details Line Priority
Return value of ExpectationsTest$Dependency.staticMethod(Object, Exception) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 343 Medium

mockit.ExpectationsTest$13

Bug Category Details Line Priority
Return value of ExpectationsTest$Dependency.staticMethod(Object, Exception) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 360 Medium

mockit.ExpectationsTest$14

Bug Category Details Line Priority
Return value of ExpectationsTest$Dependency.staticMethod(Object, Exception) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 376 Medium

mockit.ExpectationsTest$14$1

Bug Category Details Line Priority
Uncallable method mockit.ExpectationsTest$14$1.staticMethod(Object, Exception) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 380 Medium

mockit.ExpectationsTest$19

Bug Category Details Line Priority
Return value of ExpectationsTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 519 Medium

mockit.ExpectationsTest$22

Bug Category Details Line Priority
Return value of ExpectationsTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 552 Medium

mockit.ExpectationsTest$24

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

mockit.ExpectationsTest$3

Bug Category Details Line Priority
Return value of ExpectationsTest$Dependency.doSomething(Integer, boolean) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 184 Medium

mockit.ExpectationsTest$4

Bug Category Details Line Priority
Return value of ExpectationsTest$Dependency.doSomething(Integer, boolean) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 203 Medium

mockit.ExpectationsTest$Dependency

Bug Category Details Line Priority
Static or private method mockit.ExpectationsTest$Dependency.staticMethod(Object, Exception) has unused parameters STYLE UP_UNUSED_PARAMETER 123 Medium
Static or private method mockit.ExpectationsTest$Dependency.staticMethod(Object, Exception) has unused parameters STYLE UP_UNUSED_PARAMETER 123 Medium
Unread field: mockit.ExpectationsTest$Dependency.value PERFORMANCE URF_UNREAD_FIELD 46 Medium

mockit.ExpectationsUsingMockedTest

Bug Category Details Line Priority
Method mockit.ExpectationsUsingMockedTest.mockFieldForAbstractClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 103 Medium
Method mockit.ExpectationsUsingMockedTest.mockInnerClass(ExpectationsUsingMockedTest$InnerClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 230 Medium
Method mockit.ExpectationsUsingMockedTest.multipleMockParametersOfSameMockedType(ExpectationsUsingMockedTest$Dependency, ExpectationsUsingMockedTest$Dependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 83 Medium
Method mockit.ExpectationsUsingMockedTest.recordExpectationOnBaseMethodHavingASyntheticBridgeMethodInSubclass(ExpectationsUsingMockedTest$GenericSubclass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 325 Medium
Method mockit.ExpectationsUsingMockedTest.recordMethodFromAbstractBaseClassAndReplayOnSubclass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 256 Medium

mockit.ExpectationsUsingMockedTest$2

Bug Category Details Line Priority
Method new mockit.ExpectationsUsingMockedTest$2(ExpectationsUsingMockedTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 106 Medium
Return value of ExpectationsUsingMockedTest$AbstractBase.add(Integer) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 105 Medium

mockit.ExpectationsUsingMockedTest$3

Bug Category Details Line Priority
Return value of ExpectationsUsingMockedTest$InnerClass.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 232 Medium

mockit.ExpectationsUsingMockedTest$4

Bug Category Details Line Priority
Return value of ExpectationsUsingMockedTest$AbstractBase.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 258 Medium

mockit.ExpectationsUsingMockedTest$5

Bug Category Details Line Priority
Return value of ExpectationsUsingMockedTest$GenericSubclass.base() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 327 Medium

mockit.ExpectationsUsingResultFieldTest

Bug Category Details Line Priority
Method mockit.ExpectationsUsingResultFieldTest.returnIterableOrIteratorFromRecordedArray(ExpectationsUsingResultFieldTest$Collaborator) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 1063 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnIterableOrIteratorFromRecordedArray(ExpectationsUsingResultFieldTest$Collaborator) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 1064 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnMapFromRecordedTwoDimensionalArray(ExpectationsUsingResultFieldTest$Collaborator, ExpectationsUsingResultFieldTest$Collaborator) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 1124 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnsMultipleValuesInSequenceUsingCollection() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 724 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getIterator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1049 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getIterator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1031 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getArrayOfGenericElements(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1375 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getString() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1307 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getBooleanArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 971 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getIntArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 981 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getStringArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 976 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getListItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1005 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getSetItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1010 Medium
Return value of new ExpectationsUsingResultFieldTest$Collaborator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1227 Medium
Method mockit.ExpectationsUsingResultFieldTest.attemptToReturnValueOfTypeListFromMethodReturningIterator(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1042 Medium
Method mockit.ExpectationsUsingResultFieldTest.attemptToReturnValueOfTypeSetFromMethodReturningIterator(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1024 Medium
Method mockit.ExpectationsUsingResultFieldTest.createAppropriateContainerFromSingleRecordedValueOfTheElementType(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1414 Medium
Method mockit.ExpectationsUsingResultFieldTest.createArrayFromSingleRecordedValueOfTheElementType(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1389 Medium
Method mockit.ExpectationsUsingResultFieldTest.lambda$recordReturnValueForConstructor$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1279 Medium
Method mockit.ExpectationsUsingResultFieldTest.lambda$recordReturnValueForVoidMethod$0(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1240 Medium
Method mockit.ExpectationsUsingResultFieldTest.recordArraysOfGenericElementTypes(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1361 Medium
Method mockit.ExpectationsUsingResultFieldTest.recordConsecutiveReturnValuesForVoidMethod(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1258 Medium
Method mockit.ExpectationsUsingResultFieldTest.recordExceptionFollowedByNullReturnValueForVoidMethod(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1333 Medium
Method mockit.ExpectationsUsingResultFieldTest.recordNullReturnValueForConstructor(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1150 Medium
Method mockit.ExpectationsUsingResultFieldTest.recordNullReturnValueForVoidMethod(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1168 Medium
Method mockit.ExpectationsUsingResultFieldTest.recordNullReturnValueForVoidMethodAndThenAThrownError(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1187 Medium
Method mockit.ExpectationsUsingResultFieldTest.recordReturnValuesMixedWithThrowablesForNonVoidMethod(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1297 Medium
Method mockit.ExpectationsUsingResultFieldTest.recordThrownError(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 568 Medium
Method mockit.ExpectationsUsingResultFieldTest.recordThrownException(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 549 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnIterableOrIteratorFromRecordedArray(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1066 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnMapFromRecordedTwoDimensionalArray(ExpectationsUsingResultFieldTest$Collaborator, ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1126 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnsEmptyArrayForMethodWithReturnTypeOfObject(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 869 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnsExpectedValues(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 526 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnsMultipleExpectedValues(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 586 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnsMultipleExpectedValuesWithMoreInvocationsAllowed(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 608 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnsMultipleValuesFromGenericMethod(Callable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 890 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnsMultipleValuesFromMethodWithReturnTypeOfObject(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 842 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnsMultipleValuesInSequenceUsingArray(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 784 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnsMultipleValuesInSequenceUsingCollection() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 728 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnsMultipleValuesInSequenceUsingIterable(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 822 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnsMultipleValuesInSequenceUsingIterator() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 759 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnsSpecifiedCollectionsForMethodsThatReturnCollections() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 914 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnsSpecifiedIteratorForMethodThatReturnsIterator() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 941 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnsValueOfIncompatibleTypeForMethodReturningArray(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 959 Medium
Method mockit.ExpectationsUsingResultFieldTest.returnsValueOfIncompatibleTypeForMethodReturningCollection(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 995 Medium
Method mockit.ExpectationsUsingResultFieldTest.throwExceptionFromSecondInvocationOfConstructor(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1213 Medium
Method mockit.ExpectationsUsingResultFieldTest.throwExceptionFromSecondInvocationOfConstructor(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1222 Medium
Method mockit.ExpectationsUsingResultFieldTest.throwExceptionFromSecondInvocationOfConstructor(ExpectationsUsingResultFieldTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1227 Medium

mockit.ExpectationsUsingResultFieldTest$1

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.doInternal() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 530 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 528 Medium

mockit.ExpectationsUsingResultFieldTest$10

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getObject() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 844 Medium
Double assignment of field ExpectationsUsingResultFieldTest$10.result in new mockit.ExpectationsUsingResultFieldTest$10(ExpectationsUsingResultFieldTest, ExpectationsUsingResultFieldTest$Collaborator) STYLE SA_FIELD_DOUBLE_ASSIGNMENT 848 Medium

mockit.ExpectationsUsingResultFieldTest$11

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getObject() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 871 Medium

mockit.ExpectationsUsingResultFieldTest$12

Bug Category Details Line Priority
Exception thrown in class mockit.ExpectationsUsingResultFieldTest$12 at new mockit.ExpectationsUsingResultFieldTest$12(ExpectationsUsingResultFieldTest, Callable) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 892 Medium

mockit.ExpectationsUsingResultFieldTest$13

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 916 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getListItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 918 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getSetItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 920 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getSortedSetItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 922 Medium

mockit.ExpectationsUsingResultFieldTest$14

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getIterator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 943 Medium

mockit.ExpectationsUsingResultFieldTest$15

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getBooleanArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 961 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getIntArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 965 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getStringArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 963 Medium

mockit.ExpectationsUsingResultFieldTest$16

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getListItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 997 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getSetItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 999 Medium

mockit.ExpectationsUsingResultFieldTest$17

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getIterator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1026 Medium

mockit.ExpectationsUsingResultFieldTest$18

Bug Category Details Line Priority
Method new mockit.ExpectationsUsingResultFieldTest$18(ExpectationsUsingResultFieldTest, ExpectationsUsingResultFieldTest$Collaborator) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 1045 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getIterator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1044 Medium

mockit.ExpectationsUsingResultFieldTest$19

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1068 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getIterable() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1076 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getIterator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1078 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getListItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1070 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getListIterator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1080 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getSetItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1072 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getSortedSetItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1074 Medium

mockit.ExpectationsUsingResultFieldTest$20

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getMapItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1128 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getSortedMapItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1130 Medium

mockit.ExpectationsUsingResultFieldTest$21

Bug Category Details Line Priority
Return value of new ExpectationsUsingResultFieldTest$Collaborator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1152 Medium
Method new mockit.ExpectationsUsingResultFieldTest$21(ExpectationsUsingResultFieldTest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1152 Medium

mockit.ExpectationsUsingResultFieldTest$24

Bug Category Details Line Priority
Return value of new ExpectationsUsingResultFieldTest$Collaborator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1215 Medium
Method new mockit.ExpectationsUsingResultFieldTest$24(ExpectationsUsingResultFieldTest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1215 Medium

mockit.ExpectationsUsingResultFieldTest$27

Bug Category Details Line Priority
Return value of new ExpectationsUsingResultFieldTest$Collaborator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1281 Medium
Method new mockit.ExpectationsUsingResultFieldTest$27(ExpectationsUsingResultFieldTest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 1281 Medium

mockit.ExpectationsUsingResultFieldTest$28

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getString() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1299 Medium

mockit.ExpectationsUsingResultFieldTest$29

Bug Category Details Line Priority
Double assignment of field ExpectationsUsingResultFieldTest$29.result in new mockit.ExpectationsUsingResultFieldTest$29(ExpectationsUsingResultFieldTest, ExpectationsUsingResultFieldTest$Collaborator) STYLE SA_FIELD_DOUBLE_ASSIGNMENT 1337 Medium

mockit.ExpectationsUsingResultFieldTest$30

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

mockit.ExpectationsUsingResultFieldTest$31

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getIntArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1391 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getStringArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1393 Medium

mockit.ExpectationsUsingResultFieldTest$32

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getFloatIterator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1430 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getNumberIterable() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1424 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getNumberList() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1418 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getNumberQueue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1426 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getNumbers() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1416 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getSortedNumberSet() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1422 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getStringIterator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1428 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getStringSet() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 1420 Medium

mockit.ExpectationsUsingResultFieldTest$4

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 588 Medium
Double assignment of field ExpectationsUsingResultFieldTest$4.result in new mockit.ExpectationsUsingResultFieldTest$4(ExpectationsUsingResultFieldTest, ExpectationsUsingResultFieldTest$Collaborator) STYLE SA_FIELD_DOUBLE_ASSIGNMENT 590 Medium

mockit.ExpectationsUsingResultFieldTest$5

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 610 Medium
Double assignment of field ExpectationsUsingResultFieldTest$5.result in new mockit.ExpectationsUsingResultFieldTest$5(ExpectationsUsingResultFieldTest, ExpectationsUsingResultFieldTest$Collaborator) STYLE SA_FIELD_DOUBLE_ASSIGNMENT 612 Medium

mockit.ExpectationsUsingResultFieldTest$6

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getBooleanWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 730 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getCharValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 734 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getInteger() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 732 Medium

mockit.ExpectationsUsingResultFieldTest$7

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getString() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 761 Medium

mockit.ExpectationsUsingResultFieldTest$8

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getBooleanValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 786 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getBooleanWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 788 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getCharValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 792 Medium
Return value of ExpectationsUsingResultFieldTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 790 Medium

mockit.ExpectationsUsingResultFieldTest$9

Bug Category Details Line Priority
Return value of ExpectationsUsingResultFieldTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 824 Medium

mockit.ExpectationsUsingResultFieldTest$Collaborator

Bug Category Details Line Priority
Method mockit.ExpectationsUsingResultFieldTest$Collaborator.getItems() returns java.util.Collection CORRECTNESS IMC_IMMATURE_CLASS_COLLECTION_RETURN 239 Medium
Method mockit.ExpectationsUsingResultFieldTest$Collaborator.getNumbers() returns java.util.Collection CORRECTNESS IMC_IMMATURE_CLASS_COLLECTION_RETURN 451 Medium
Method mockit.ExpectationsUsingResultFieldTest$Collaborator.getBooleanWrapper() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 212 Medium

mockit.ExpectationsUsingReturnTypeConversionTest

Bug Category Details Line Priority
Found reliance on default encoding in mockit.ExpectationsUsingReturnTypeConversionTest.convertRecordedTextualResultForMethodsWithEligibleReturnTypes(): String.getBytes() I18N DM_DEFAULT_ENCODING 549 High
Method mockit.ExpectationsUsingReturnTypeConversionTest.convertRecordedTextualResultForMethodsWithEligibleReturnTypes() encodes String bytes without specifying the character encoding CORRECTNESS MDM_STRING_BYTES_ENCODING 549 Medium
Method mockit.ExpectationsUsingReturnTypeConversionTest.convertRecordedTextualResultForMethodsWithEligibleReturnTypes() encodes String bytes without specifying the character encoding CORRECTNESS MDM_STRING_BYTES_ENCODING 551 Medium
Method mockit.ExpectationsUsingReturnTypeConversionTest.convertRecordedTextualResultForMethodsWithEligibleReturnTypes() encodes String bytes without specifying the character encoding CORRECTNESS MDM_STRING_BYTES_ENCODING 554 Medium
Method mockit.ExpectationsUsingReturnTypeConversionTest.convertRecordedTextualResultForMethodsWithEligibleReturnTypes() encodes String bytes without specifying the character encoding CORRECTNESS MDM_STRING_BYTES_ENCODING 557 Medium
mockit.ExpectationsUsingReturnTypeConversionTest.convertRecordedTextualResultForMethodsWithEligibleReturnTypes() ignores result of java.io.InputStream.read(byte[]) BAD_PRACTICE RR_NOT_CHECKED 550 Medium
mockit.ExpectationsUsingReturnTypeConversionTest.convertRecordedTextualResultForMethodsWithEligibleReturnTypes() ignores result of java.io.Reader.read(char[]) BAD_PRACTICE RR_NOT_CHECKED 560 Medium
mockit.ExpectationsUsingReturnTypeConversionTest.convertRecordedTextualResultForMethodsWithEligibleReturnTypes() ignores result of java.io.StringReader.read(char[]) BAD_PRACTICE RR_NOT_CHECKED 563 Medium
Method mockit.ExpectationsUsingReturnTypeConversionTest.convertArrayToStream(ExpectationsUsingReturnTypeConversionTest$Java8Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 705 Medium
Method mockit.ExpectationsUsingReturnTypeConversionTest.convertCollectionToStream(ExpectationsUsingReturnTypeConversionTest$Java8Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 683 Medium
Method mockit.ExpectationsUsingReturnTypeConversionTest.convertNumberValueToNarrowerNumericalReturnTypeWhenTheActualValueDoesNotFitTheReturnType() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 481 Medium
Method mockit.ExpectationsUsingReturnTypeConversionTest.convertNumberValueToNarrowerNumericalReturnTypeWhenTheActualValueFitsTheReturnType() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 436 Medium
Method mockit.ExpectationsUsingReturnTypeConversionTest.convertNumberValueToWiderNumericalReturnType() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 382 Medium
Method mockit.ExpectationsUsingReturnTypeConversionTest.convertRecordedTextualResultForMethodsWithEligibleReturnTypes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 530 Medium
Method mockit.ExpectationsUsingReturnTypeConversionTest.convertSingleValueToStream(ExpectationsUsingReturnTypeConversionTest$Java8Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 661 Medium
Method mockit.ExpectationsUsingReturnTypeConversionTest.convertTextualAndNumericalResultsToNumberSubtypes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 577 Medium
Method mockit.ExpectationsUsingReturnTypeConversionTest.convertValueToOptionalOfValue(ExpectationsUsingReturnTypeConversionTest$Java8Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 640 Medium
Method mockit.ExpectationsUsingReturnTypeConversionTest.lambda$attemptToReturnValueNotCompatibleWithBooleanReturnType$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 330 Medium
Method mockit.ExpectationsUsingReturnTypeConversionTest.lambda$attemptToReturnValueNotCompatibleWithBooleanWrapperReturnType$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 348 Medium
Method mockit.ExpectationsUsingReturnTypeConversionTest.lambda$attemptToReturnValueNotCompatibleWithPrimitiveReturnType$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 294 Medium
Method mockit.ExpectationsUsingReturnTypeConversionTest.lambda$attemptToReturnValueNotCompatibleWithPrimitiveWrapperReturnType$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 312 Medium
Method mockit.ExpectationsUsingReturnTypeConversionTest.lambda$attemptToReturnValueOfReferenceTypeNotAssignableToReturnType$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 366 Medium

mockit.ExpectationsUsingReturnTypeConversionTest$1

Bug Category Details Line Priority
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getInt() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 296 Medium

mockit.ExpectationsUsingReturnTypeConversionTest$10

Bug Category Details Line Priority
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getAtomicInteger() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 587 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getAtomicLong() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 589 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getBigDecimal() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 579 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getBigInteger() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 584 Medium
Double assignment of field ExpectationsUsingReturnTypeConversionTest$10.result in new mockit.ExpectationsUsingReturnTypeConversionTest$10(ExpectationsUsingReturnTypeConversionTest) STYLE SA_FIELD_DOUBLE_ASSIGNMENT 581 Medium

mockit.ExpectationsUsingReturnTypeConversionTest$11

Bug Category Details Line Priority
Return value of ExpectationsUsingReturnTypeConversionTest$Java8Collaborator.getOptionalValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 642 Medium

mockit.ExpectationsUsingReturnTypeConversionTest$12

Bug Category Details Line Priority
Return value of ExpectationsUsingReturnTypeConversionTest$Java8Collaborator.getStream() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 663 Medium

mockit.ExpectationsUsingReturnTypeConversionTest$13

Bug Category Details Line Priority
Return value of ExpectationsUsingReturnTypeConversionTest$Java8Collaborator.getStream() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 685 Medium

mockit.ExpectationsUsingReturnTypeConversionTest$14

Bug Category Details Line Priority
Return value of ExpectationsUsingReturnTypeConversionTest$Java8Collaborator.getStream() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 707 Medium

mockit.ExpectationsUsingReturnTypeConversionTest$2

Bug Category Details Line Priority
Method new mockit.ExpectationsUsingReturnTypeConversionTest$2(ExpectationsUsingReturnTypeConversionTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 315 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getFloatWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 314 Medium

mockit.ExpectationsUsingReturnTypeConversionTest$3

Bug Category Details Line Priority
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getBoolean() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 332 Medium

mockit.ExpectationsUsingReturnTypeConversionTest$4

Bug Category Details Line Priority
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getBooleanWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 350 Medium

mockit.ExpectationsUsingReturnTypeConversionTest$5

Bug Category Details Line Priority
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getInputStream() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 368 Medium

mockit.ExpectationsUsingReturnTypeConversionTest$6

Bug Category Details Line Priority
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getChar() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 407 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getCharacter() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 409 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getDouble() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 402 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getDoubleWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 405 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getFloat() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 397 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getFloatWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 400 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getInt() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 388 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getInteger() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 390 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getLong() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 392 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getLongWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 395 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getShort() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 384 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getShortWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 386 Medium
Double assignment of field ExpectationsUsingReturnTypeConversionTest$6.result in new mockit.ExpectationsUsingReturnTypeConversionTest$6(ExpectationsUsingReturnTypeConversionTest) STYLE SA_FIELD_DOUBLE_ASSIGNMENT 394 Medium

mockit.ExpectationsUsingReturnTypeConversionTest$7

Bug Category Details Line Priority
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getByte() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 438 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getByteWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 441 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getChar() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 455 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getCharacter() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 457 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getFloat() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 451 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getFloatWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 453 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getInt() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 447 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getInteger() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 449 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getShort() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 443 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getShortWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 445 Medium
Double assignment of field ExpectationsUsingReturnTypeConversionTest$7.result in new mockit.ExpectationsUsingReturnTypeConversionTest$7(ExpectationsUsingReturnTypeConversionTest) STYLE SA_FIELD_DOUBLE_ASSIGNMENT 440 Medium

mockit.ExpectationsUsingReturnTypeConversionTest$8

Bug Category Details Line Priority
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getByte() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 483 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getByteWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 485 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getChar() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 499 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getCharacter() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 501 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getFloat() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 495 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getFloatWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 497 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getInt() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 491 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getInteger() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 493 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getShort() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 487 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getShortWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 489 Medium

mockit.ExpectationsUsingReturnTypeConversionTest$9

Bug Category Details Line Priority
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getByteArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 538 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getByteArrayInputStream() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 536 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getInputStream() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 534 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getReader() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 540 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getStringBuilder() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 532 Medium
Return value of ExpectationsUsingReturnTypeConversionTest$Collaborator.getStringReader() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 542 Medium

mockit.ExpectationsWithArgMatchersTest

Bug Category Details Line Priority
Method mockit.ExpectationsWithArgMatchersTest.assertInvocationsWithArgumentsOfDifferentTypesToMethodAcceptingAnyObject() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 448 Medium
Method mockit.ExpectationsWithArgMatchersTest.assertInvocationsWithArgumentsOfDifferentTypesToMethodAcceptingAnyObject() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 449 Medium
Return value of ExpectationsWithArgMatchersTest$Collaborator.useObject(Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 217 Medium
Method mockit.ExpectationsWithArgMatchersTest.declareFieldInExpectationBlockWithNameHavingSamePrefixAsArgumentMatchingField() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 493 Medium
Method mockit.ExpectationsWithArgMatchersTest.declareMethodInExpectationBlockWithNameHavingSamePrefixAsArgumentMatchingMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 511 Medium
Method mockit.ExpectationsWithArgMatchersTest.declareMethodInExpectationBlockWithNameHavingSamePrefixAsArgumentMatchingMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 528 Medium
Method mockit.ExpectationsWithArgMatchersTest.expectInvocationWithMatcherContainingAnotherMatcher() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 377 Medium
Method mockit.ExpectationsWithArgMatchersTest.expectInvocationWithMatcherWhichInvokesMockedMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 571 Medium
Method mockit.ExpectationsWithArgMatchersTest.expectInvocationWithSameMockInstanceButReplayWithNull(Certificate) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 555 Medium
Method mockit.ExpectationsWithArgMatchersTest.expectInvocationsWithHamcrestMatcher() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 353 Medium
Method mockit.ExpectationsWithArgMatchersTest.expectInvocationsWithHamcrestMatcher2() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 365 Medium
Method mockit.ExpectationsWithArgMatchersTest.expectInvocationsWithNamedDelegateMatcher() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 341 Medium
Method mockit.ExpectationsWithArgMatchersTest.extendingAReusableArgumentMatcher() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 617 Medium
Method mockit.ExpectationsWithArgMatchersTest.recordExpectationWithDelegateWithoutTheParameterType() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 264 Medium
Method mockit.ExpectationsWithArgMatchersTest.recordExpectationsUsingTheAnyFieldsForParameterOfTypeObject() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 409 Medium
Method mockit.ExpectationsWithArgMatchersTest.recordExpectationsUsingTheWithAnyMethodForParameterOfTypeObject() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 460 Medium
Method mockit.ExpectationsWithArgMatchersTest.useMockedMethodBeforeRecordingExpectationWithArgumentMatcher() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 393 Medium
Method mockit.ExpectationsWithArgMatchersTest.verifyExpectationNumericEqualityMatcherButFailToMatchOnReplay() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 204 Medium
Method mockit.ExpectationsWithArgMatchersTest.verifyExpectationUsingInequalityMatcherButFailToMatchOnReplay() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 234 Medium
Method mockit.ExpectationsWithArgMatchersTest.verifyExpectationUsingNumericEqualityMatcherButReplayWithNonNumericParameterType() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 219 Medium
Method mockit.ExpectationsWithArgMatchersTest.verifyExpectationsUsingNumericEqualityMatchers() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 246 Medium

mockit.ExpectationsWithArgMatchersTest$10

Bug Category Details Line Priority
Method new mockit.ExpectationsWithArgMatchersTest$10(ExpectationsWithArgMatchersTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 396 Medium
Return value of ExpectationsWithArgMatchersTest$Collaborator.doSomething(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 395 Medium

mockit.ExpectationsWithArgMatchersTest$11

Bug Category Details Line Priority
Return value of ExpectationsWithArgMatchersTest$Collaborator.useObject(Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 411 Medium

mockit.ExpectationsWithArgMatchersTest$12

Bug Category Details Line Priority
Method new mockit.ExpectationsWithArgMatchersTest$12(ExpectationsWithArgMatchersTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 472 Medium
Return value of ExpectationsWithArgMatchersTest$Collaborator.useObject(Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 462 Medium

mockit.ExpectationsWithArgMatchersTest$14

Bug Category Details Line Priority
Constructor new mockit.ExpectationsWithArgMatchersTest$14(ExpectationsWithArgMatchersTest, List) makes call to non-final method CORRECTNESS PCOA_PARTIALLY_CONSTRUCTED_OBJECT_ACCESS 513 Medium

mockit.ExpectationsWithArgMatchersTest$17$1

Bug Category Details Line Priority
Uncallable method mockit.ExpectationsWithArgMatchersTest$17$1.validateAsPositive(int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 577-578 Medium

mockit.ExpectationsWithArgMatchersTest$2

Bug Category Details Line Priority
Return value of ExpectationsWithArgMatchersTest$Collaborator.useObject(Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 221 Medium

mockit.ExpectationsWithArgMatchersTest$4

Bug Category Details Line Priority
Method new mockit.ExpectationsWithArgMatchersTest$4(ExpectationsWithArgMatchersTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 249 Medium
Method new mockit.ExpectationsWithArgMatchersTest$4(ExpectationsWithArgMatchersTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 251 Medium
Return value of ExpectationsWithArgMatchersTest$Collaborator.setValue(float) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 248 Medium

mockit.ExpectationsWithArgMatchersTest$5

Bug Category Details Line Priority
Return value of ExpectationsWithArgMatchersTest$Collaborator.useObject(Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 266 Medium

mockit.ExpectationsWithArgMatchersTest$5$1

Bug Category Details Line Priority
Uncallable method mockit.ExpectationsWithArgMatchersTest$5$1.delegate(Object) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 269 Medium

mockit.ExpectationsWithDuplicateRecordingsTest

Bug Category Details Line Priority
Method mockit.ExpectationsWithDuplicateRecordingsTest.recordAmbiguousExpectationsUsingArgumentMatchers() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 167 Medium
Method mockit.ExpectationsWithDuplicateRecordingsTest.recordAmbiguousExpectationsUsingTheSameMatcherButWithDifferentArguments() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 318 Medium
Method mockit.ExpectationsWithDuplicateRecordingsTest.recordMultipleNonStrictExpectationsWithSameDelegate() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 542 Medium
Method mockit.ExpectationsWithDuplicateRecordingsTest.recordMultipleNonStrictExpectationsWithSameDelegate() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 551 Medium
Method mockit.ExpectationsWithDuplicateRecordingsTest.recordOverlappingExpectationsWithSameMatcherForOneParameterAndDifferentArgumentsForAnother() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 513 Medium
Method mockit.ExpectationsWithDuplicateRecordingsTest.recordSameMethodWithArgumentsOrMatchersOfVaryingSpecificity() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 255 Medium
Method mockit.ExpectationsWithDuplicateRecordingsTest.recordSameMethodWithDisjunctiveArgumentMatchers() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 147 Medium
Method mockit.ExpectationsWithDuplicateRecordingsTest.recordSameMethodWithExactArgumentAndArgMatcherButInWrongOrderOfSpecificity() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 237 Medium
Method mockit.ExpectationsWithDuplicateRecordingsTest.recordSameMethodWithIdenticalArgumentMatchers() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 185 Medium
Method mockit.ExpectationsWithDuplicateRecordingsTest.recordSameMethodWithOpposingMatchers() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 300 Medium
Method mockit.ExpectationsWithDuplicateRecordingsTest.recordSameMethodWithOverlappingArgumentMatchers() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 211 Medium
Method mockit.ExpectationsWithDuplicateRecordingsTest.recordUnambiguousExpectationsUsingTheSameMatcherButWithDifferentArguments() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 347 Medium
Method mockit.ExpectationsWithDuplicateRecordingsTest.recordUnambiguousExpectationsWithSameMatcherForOneParameterAndDifferentArgumentsForAnother() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 489 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$1

Bug Category Details Line Priority
Method new mockit.ExpectationsWithDuplicateRecordingsTest$1(ExpectationsWithDuplicateRecordingsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 150 Medium
Method new mockit.ExpectationsWithDuplicateRecordingsTest$1(ExpectationsWithDuplicateRecordingsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 152 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 149 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$10

Bug Category Details Line Priority
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(Long, Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 491 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$11

Bug Category Details Line Priority
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(Long, Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 515 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$12

Bug Category Details Line Priority
Uncallable method mockit.ExpectationsWithDuplicateRecordingsTest$12.matches(String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 538 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$13

Bug Category Details Line Priority
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 544 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$14

Bug Category Details Line Priority
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 553 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$2

Bug Category Details Line Priority
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(char) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 169 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$3

Bug Category Details Line Priority
Method new mockit.ExpectationsWithDuplicateRecordingsTest$3(ExpectationsWithDuplicateRecordingsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 188 Medium
Method new mockit.ExpectationsWithDuplicateRecordingsTest$3(ExpectationsWithDuplicateRecordingsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 190 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 187 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(Long, Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 192 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$4

Bug Category Details Line Priority
Method new mockit.ExpectationsWithDuplicateRecordingsTest$4(ExpectationsWithDuplicateRecordingsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 214 Medium
Method new mockit.ExpectationsWithDuplicateRecordingsTest$4(ExpectationsWithDuplicateRecordingsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 216 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 213 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(Long) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 218 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$5

Bug Category Details Line Priority
Method new mockit.ExpectationsWithDuplicateRecordingsTest$5(ExpectationsWithDuplicateRecordingsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 240 Medium
Method new mockit.ExpectationsWithDuplicateRecordingsTest$5(ExpectationsWithDuplicateRecordingsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 242 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 239 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$6

Bug Category Details Line Priority
Method new mockit.ExpectationsWithDuplicateRecordingsTest$6(ExpectationsWithDuplicateRecordingsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 263 Medium
Method new mockit.ExpectationsWithDuplicateRecordingsTest$6(ExpectationsWithDuplicateRecordingsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 265 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(char) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 267 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 262 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 272 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(boolean) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 257 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$7

Bug Category Details Line Priority
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 302 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$8

Bug Category Details Line Priority
Method new mockit.ExpectationsWithDuplicateRecordingsTest$8(ExpectationsWithDuplicateRecordingsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 326 Medium
Method new mockit.ExpectationsWithDuplicateRecordingsTest$8(ExpectationsWithDuplicateRecordingsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 328 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(char) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 320 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 325 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$9

Bug Category Details Line Priority
Method new mockit.ExpectationsWithDuplicateRecordingsTest$9(ExpectationsWithDuplicateRecordingsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 417 Medium
Method new mockit.ExpectationsWithDuplicateRecordingsTest$9(ExpectationsWithDuplicateRecordingsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 423 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(char) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 364 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 412 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(Long) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 425 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(Long, Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 369 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 349 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(boolean) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 399 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.truncate(double) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 354 Medium
Return value of ExpectationsWithDuplicateRecordingsTest$Blah.truncate(float) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 359 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$9$1

Bug Category Details Line Priority
Uncallable method mockit.ExpectationsWithDuplicateRecordingsTest$9$1.matches(boolean) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 401 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$9$2

Bug Category Details Line Priority
Uncallable method mockit.ExpectationsWithDuplicateRecordingsTest$9$2.matches(boolean) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 407 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$9$3

Bug Category Details Line Priority
Uncallable method mockit.ExpectationsWithDuplicateRecordingsTest$9$3.matches(int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 414 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$9$4

Bug Category Details Line Priority
Uncallable method mockit.ExpectationsWithDuplicateRecordingsTest$9$4.matches(int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 420 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$9$5

Bug Category Details Line Priority
Uncallable method mockit.ExpectationsWithDuplicateRecordingsTest$9$5.matches(Long) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 427 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$9$6

Bug Category Details Line Priority
Uncallable method mockit.ExpectationsWithDuplicateRecordingsTest$9$6.matches(Long) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 433 Medium

mockit.ExpectationsWithDuplicateRecordingsTest$Blah

Bug Category Details Line Priority
Method mockit.ExpectationsWithDuplicateRecordingsTest$Blah.doSomething(int) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 122 Medium

mockit.ExpectationsWithInvocationCountsTest

Bug Category Details Line Priority
Method mockit.ExpectationsWithInvocationCountsTest.catchUnexpectedInvocationAndContinue(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 168 Medium
Method mockit.ExpectationsWithInvocationCountsTest.expectAtLeastOnceAndReplayTwice(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 254 Medium
Method mockit.ExpectationsWithInvocationCountsTest.expectAtLeastOneInvocationMatchingStrictExpectationButInvokeNone(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 466 Medium
Method mockit.ExpectationsWithInvocationCountsTest.expectAtLeastTwiceButReplayOnceWithSingleExpectation(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 276 Medium
Method mockit.ExpectationsWithInvocationCountsTest.expectAtLeastTwiceButReplayOnceWithTwoConsecutiveExpectations(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 295 Medium
Method mockit.ExpectationsWithInvocationCountsTest.expectAtMostTwiceAndReplayOnce(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 336 Medium
Method mockit.ExpectationsWithInvocationCountsTest.expectExactlyTwiceButReplayMoreTimes(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 234 Medium
Method mockit.ExpectationsWithInvocationCountsTest.expectOnce(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 102 Medium
Method mockit.ExpectationsWithInvocationCountsTest.expectOnceButReplayMoreTimes(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 142 Medium
Method mockit.ExpectationsWithInvocationCountsTest.expectOnceButReplayTwice(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 120 Medium
Method mockit.ExpectationsWithInvocationCountsTest.expectOneOrMoreInvocationsFollowedByAnotherWhichWontOccur_maxTimes(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 485 Medium
Method mockit.ExpectationsWithInvocationCountsTest.expectOneOrMoreInvocationsFollowedByAnotherWhichWontOccur_minTimes(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 505 Medium
Method mockit.ExpectationsWithInvocationCountsTest.expectSameMethodOnceOrTwiceThenOnceButReplayEachExpectationOnlyOnce(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 400 Medium
Method mockit.ExpectationsWithInvocationCountsTest.expectTwiceByUsingInvocationCount(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 191 Medium
Method mockit.ExpectationsWithInvocationCountsTest.expectTwiceByUsingInvocationCountButReplayOnlyOnce(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 213 Medium
Method mockit.ExpectationsWithInvocationCountsTest.expectTwoOrThreeTimes(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 421 Medium
Method mockit.ExpectationsWithInvocationCountsTest.expectZeroOrMoreTimesAndReplayTwice(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 443 Medium
Method mockit.ExpectationsWithInvocationCountsTest.lambda$expectAtMostOnceButReplayTwice$0(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 358 Medium
Method mockit.ExpectationsWithInvocationCountsTest.repeatsAtLeastOverwritingUpperLimit(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 315 Medium
Method mockit.ExpectationsWithInvocationCountsTest.repeatsAtMostDoesNotOverwriteLowerLimit(ExpectationsWithInvocationCountsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 381 Medium

mockit.ExpectationsWithSomeArgMatchersRecordedTest

Bug Category Details Line Priority
Return value of ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.doSomething(ExpectationsWithSomeArgMatchersRecordedTest$Dependency) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 676 Medium
Return value of ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.doSomething(ExpectationsWithSomeArgMatchersRecordedTest$Dependency) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 642 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.expectationWithMatcherInSecondLineAndConstantArgumentInThirdLine() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 811 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.expectationWithMatchersSpanningMultipleLines() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 797 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.expectationsWithPartialMatchersInEveryCombinationForMethodWithThreeParameters() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 836 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.lambda$useMatcherOnlyForFirstArgumentWithUnexpectedReplayValue$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 409 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.lambda$useMatcherOnlyForLastArgumentWithUnexpectedReplayValue$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 443 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.lambda$useMatcherOnlyForSecondArgumentWithUnexpectedReplayValue$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 426 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.recordExpectationWithMatcherAndRegularArgumentMatchingMockedObjectInstantiatedInsideSUT(ExpectationsWithSomeArgMatchersRecordedTest$Dependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 704 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.recordExpectationWithMatcherAndRegularArgumentMatchingMockedObjectInstantiatedInsideSUT(ExpectationsWithSomeArgMatchersRecordedTest$Dependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 711 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.recordExpectationsForMockedObjectsInstantiatedInsideSUT(ExpectationsWithSomeArgMatchersRecordedTest$Dependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 608 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.recordInstantiationExpectationsForMockedObjectsInstantiatedInsideSUT(ExpectationsWithSomeArgMatchersRecordedTest$Dependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 765 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.recordVarargsExpectationWithMatcherAndRegularArgumentMatchingMockedObjectInstantiatedInsideSUT(ExpectationsWithSomeArgMatchersRecordedTest$Dependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 736 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.recordVarargsExpectationWithMatcherAndRegularArgumentMatchingMockedObjectInstantiatedInsideSUT(ExpectationsWithSomeArgMatchersRecordedTest$Dependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 743 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.useAnyIntField() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 476 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.useAnyStringField() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 490 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.useMatcherOnlyForOneArgument() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 361 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.useMatchersForParametersOfAllSizes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 456 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.useMatchersInInvocationsToInterfaceMethods(ExpectationsWithSomeArgMatchersRecordedTest$Scheduler) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 587 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.useSeveralAnyFields() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 509 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.useWithMethodsMixedWithAnyFields() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 549 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.verifyOrderedExpectationsForMockedObjectsInstantiatedInsideSUT() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 681 Medium
Method mockit.ExpectationsWithSomeArgMatchersRecordedTest.verifyUnorderedExpectationsForMockedObjectsInstantiatedInsideSUT() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 648 Medium
JUnit test method mockit.ExpectationsWithSomeArgMatchersRecordedTest.verifyUnorderedExpectationsForMockedObjectsInstantiatedInsideSUT() passes boolean expression to Assert.assertFalse / Assert.assertTrue CORRECTNESS UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_EQUALS 658 Medium
JUnit test method mockit.ExpectationsWithSomeArgMatchersRecordedTest.verifyUnorderedExpectationsForMockedObjectsInstantiatedInsideSUT() passes boolean expression to Assert.assertFalse / Assert.assertTrue CORRECTNESS UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_EQUALS 663 Medium

mockit.ExpectationsWithSomeArgMatchersRecordedTest$1

Bug Category Details Line Priority
Method new mockit.ExpectationsWithSomeArgMatchersRecordedTest$1(ExpectationsWithSomeArgMatchersRecordedTest, Object) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 374 Medium
Method new mockit.ExpectationsWithSomeArgMatchersRecordedTest$1(ExpectationsWithSomeArgMatchersRecordedTest, Object) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 376 Medium
Return value of ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.anotherOperation(byte, Long) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 367 Medium
Return value of ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.staticBooleanMethod(boolean, String, int[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 373 Medium

mockit.ExpectationsWithSomeArgMatchersRecordedTest$11

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

mockit.ExpectationsWithSomeArgMatchersRecordedTest$12

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

mockit.ExpectationsWithSomeArgMatchersRecordedTest$13

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

mockit.ExpectationsWithSomeArgMatchersRecordedTest$15

Bug Category Details Line Priority
Return value of ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.doSomething(ExpectationsWithSomeArgMatchersRecordedTest$Dependency, String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 714 Medium

mockit.ExpectationsWithSomeArgMatchersRecordedTest$17

Bug Category Details Line Priority
Return value of ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.doSomething(ExpectationsWithSomeArgMatchersRecordedTest$Dependency, String[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 746 Medium
Method new mockit.ExpectationsWithSomeArgMatchersRecordedTest$17(ExpectationsWithSomeArgMatchersRecordedTest, List) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 746 Medium

mockit.ExpectationsWithSomeArgMatchersRecordedTest$18

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

mockit.ExpectationsWithSomeArgMatchersRecordedTest$5

Bug Category Details Line Priority
Return value of ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.booleanValues(long, byte, double, short) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 459 Medium
Return value of ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.staticLongValues(long, byte, double, short) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 461 Medium

mockit.ExpectationsWithSomeArgMatchersRecordedTest$7

Bug Category Details Line Priority
Return value of ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.setValue(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 492 Medium

mockit.ExpectationsWithSomeArgMatchersRecordedTest$Collaborator

Bug Category Details Line Priority
Static or private method mockit.ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.staticBooleanMethod(boolean, String, int[]) has unused parameters STYLE UP_UNUSED_PARAMETER 282 Medium
Static or private method mockit.ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.staticBooleanMethod(boolean, String, int[]) has unused parameters STYLE UP_UNUSED_PARAMETER 282 Medium
Static or private method mockit.ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.staticBooleanMethod(boolean, String, int[]) has unused parameters STYLE UP_UNUSED_PARAMETER 282 Medium
Static or private method mockit.ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.staticLongValues(long, byte, double, short) has unused parameters STYLE UP_UNUSED_PARAMETER 175 Medium
Static or private method mockit.ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.staticLongValues(long, byte, double, short) has unused parameters STYLE UP_UNUSED_PARAMETER 175 Medium
Static or private method mockit.ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.staticLongValues(long, byte, double, short) has unused parameters STYLE UP_UNUSED_PARAMETER 175 Medium
Static or private method mockit.ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.staticLongValues(long, byte, double, short) has unused parameters STYLE UP_UNUSED_PARAMETER 175 Medium
Static or private method mockit.ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.staticSetValues(long, byte, double, short) has unused parameters STYLE UP_UNUSED_PARAMETER 158 Medium
Static or private method mockit.ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.staticSetValues(long, byte, double, short) has unused parameters STYLE UP_UNUSED_PARAMETER 158 Medium
Static or private method mockit.ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.staticSetValues(long, byte, double, short) has unused parameters STYLE UP_UNUSED_PARAMETER 158 Medium
Static or private method mockit.ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.staticSetValues(long, byte, double, short) has unused parameters STYLE UP_UNUSED_PARAMETER 158 Medium
Static or private method mockit.ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.staticVoidMethod(long, char, double) has unused parameters STYLE UP_UNUSED_PARAMETER 267 Medium
Static or private method mockit.ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.staticVoidMethod(long, char, double) has unused parameters STYLE UP_UNUSED_PARAMETER 267 Medium
Static or private method mockit.ExpectationsWithSomeArgMatchersRecordedTest$Collaborator.staticVoidMethod(long, char, double) has unused parameters STYLE UP_UNUSED_PARAMETER 267 Medium

mockit.ExpectationsWithValuesToReturnTest

Bug Category Details Line Priority
Method mockit.ExpectationsWithValuesToReturnTest.recordResultsForCollectionAndListReturningMethodsUsingVarargs(ExpectationsWithValuesToReturnTest$Collaborator) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 670 Medium
Method mockit.ExpectationsWithValuesToReturnTest.recordResultsForIterableReturningMethodUsingVarargs(ExpectationsWithValuesToReturnTest$Collaborator) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 689 Medium
Method mockit.ExpectationsWithValuesToReturnTest.recordMultipleIteratorsToBeReturnedFromMethodThatReturnsIterator(ExpectationsWithValuesToReturnTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 796 Medium
Method mockit.ExpectationsWithValuesToReturnTest.recordMultipleListsToBeReturnedFromMethodThatReturnsList(ExpectationsWithValuesToReturnTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 826 Medium
Method mockit.ExpectationsWithValuesToReturnTest.recordResultsForArrayReturningMethodsUsingVarargs() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 747 Medium
Method mockit.ExpectationsWithValuesToReturnTest.recordResultsForCollectionAndListReturningMethodsUsingVarargs(ExpectationsWithValuesToReturnTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 659 Medium
Method mockit.ExpectationsWithValuesToReturnTest.recordResultsForIterableReturningMethodUsingVarargs(ExpectationsWithValuesToReturnTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 681 Medium
Method mockit.ExpectationsWithValuesToReturnTest.recordResultsForIteratorReturningMethodUsingVarargs(ExpectationsWithValuesToReturnTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 705 Medium
Method mockit.ExpectationsWithValuesToReturnTest.recordResultsForSetReturningMethodUsingVarargs(ExpectationsWithValuesToReturnTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 727 Medium
Method mockit.ExpectationsWithValuesToReturnTest.returnsDefaultValuesForArrayValuedReturnTypes(ExpectationsWithValuesToReturnTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 516 Medium
Method mockit.ExpectationsWithValuesToReturnTest.returnsDefaultValuesForCollectionValuedReturnTypes(ExpectationsWithValuesToReturnTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 489 Medium
Method mockit.ExpectationsWithValuesToReturnTest.returnsDefaultValuesForPrimitiveAndWrapperReturnTypes(ExpectationsWithValuesToReturnTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 440 Medium
Method mockit.ExpectationsWithValuesToReturnTest.returnsMultipleValuesFromGenericMethod(Callable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 639 Medium
Method mockit.ExpectationsWithValuesToReturnTest.returnsMultipleValuesFromMethodWithReturnTypeOfObject(ExpectationsWithValuesToReturnTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 614 Medium
Method mockit.ExpectationsWithValuesToReturnTest.returnsMultipleValuesInSequenceUsingVarargs() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 556 Medium
Method mockit.ExpectationsWithValuesToReturnTest.returnsNonNullValueFollowedByNullUsingVarargs(ExpectationsWithValuesToReturnTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 593 Medium

mockit.ExpectationsWithValuesToReturnTest$1

Bug Category Details Line Priority
Return value of ExpectationsWithValuesToReturnTest$Collaborator.doInternal() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 458 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getBooleanValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 456 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getBooleanWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 457 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getByteValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 444 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getByteWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 445 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getCharValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 454 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getCharacter() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 455 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getDoubleValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 452 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getDoubleWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 453 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getFloatValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 450 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getFloatWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 451 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getInteger() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 443 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getLongValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 448 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getLongWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 449 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getShortValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 446 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getShortWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 447 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 442 Medium

mockit.ExpectationsWithValuesToReturnTest$10

Bug Category Details Line Priority
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getIterator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 707 Medium

mockit.ExpectationsWithValuesToReturnTest$11

Bug Category Details Line Priority
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getSetItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 729 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getSortedSetItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 731 Medium

mockit.ExpectationsWithValuesToReturnTest$12

Bug Category Details Line Priority
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getByteArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 753 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getByteWrapperArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 755 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getCharArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 757 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getDoubleArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 765 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getFloatArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 763 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getIntArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 749 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getLongArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 751 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getShortArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 759 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getShortWrapperArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 761 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getStringArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 767 Medium

mockit.ExpectationsWithValuesToReturnTest$13

Bug Category Details Line Priority
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getIterator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 801 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getListIterator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 798 Medium

mockit.ExpectationsWithValuesToReturnTest$14

Bug Category Details Line Priority
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getAList() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 828 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getListItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 831 Medium

mockit.ExpectationsWithValuesToReturnTest$2

Bug Category Details Line Priority
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 491 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getListItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 492 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getMapItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 495 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getSetItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 493 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getSortedMapItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 496 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getSortedSetItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 494 Medium

mockit.ExpectationsWithValuesToReturnTest$3

Bug Category Details Line Priority
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getBooleanArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 528 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getByteArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 520 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getCharArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 527 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getDoubleArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 526 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getFloatArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 525 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getInt2Array() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 519 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getIntArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 518 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getLong2Array() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 524 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getLongArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 523 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getShortArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 521 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getShortWrapperArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 522 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getString2Array() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 530 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getStringArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 529 Medium

mockit.ExpectationsWithValuesToReturnTest$4

Bug Category Details Line Priority
Method new mockit.ExpectationsWithValuesToReturnTest$4(ExpectationsWithValuesToReturnTest, Object[], ExpectationsWithValuesToReturnTest$Collaborator) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 559 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getBooleanValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 558 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getCharArray() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 564 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getShortValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 560 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getShortWrapper() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 562 Medium

mockit.ExpectationsWithValuesToReturnTest$5

Bug Category Details Line Priority
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getString() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 595 Medium

mockit.ExpectationsWithValuesToReturnTest$6

Bug Category Details Line Priority
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getObject() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 616 Medium

mockit.ExpectationsWithValuesToReturnTest$7

Bug Category Details Line Priority
Exception thrown in class mockit.ExpectationsWithValuesToReturnTest$7 at new mockit.ExpectationsWithValuesToReturnTest$7(ExpectationsWithValuesToReturnTest, Callable) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 641 Medium

mockit.ExpectationsWithValuesToReturnTest$8

Bug Category Details Line Priority
Method new mockit.ExpectationsWithValuesToReturnTest$8(ExpectationsWithValuesToReturnTest, ExpectationsWithValuesToReturnTest$Collaborator) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 664 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 661 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getListItems() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 663 Medium

mockit.ExpectationsWithValuesToReturnTest$9

Bug Category Details Line Priority
Method new mockit.ExpectationsWithValuesToReturnTest$9(ExpectationsWithValuesToReturnTest, ExpectationsWithValuesToReturnTest$Collaborator) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 684 Medium
Return value of ExpectationsWithValuesToReturnTest$Collaborator.getIterable() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 683 Medium

mockit.ExpectationsWithValuesToReturnTest$Collaborator

Bug Category Details Line Priority
Method mockit.ExpectationsWithValuesToReturnTest$Collaborator.getItems() returns java.util.Collection CORRECTNESS IMC_IMMATURE_CLASS_COLLECTION_RETURN 221 Medium
Method mockit.ExpectationsWithValuesToReturnTest$Collaborator.getBooleanWrapper() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 194 Medium

mockit.ExpectationsWithVarArgsMatchersTest

Bug Category Details Line Priority
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithAnyNumberOfVariableArguments() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 186 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithMatchersForAllParametersAndVarargsValuesButReplayWithDifferentVarargValue() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 563 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithMatchersForRegularParametersAndAllVarargsValues() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 245 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithMatchersForRegularParametersAndAllVarargsValues() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 246 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationsWithMatcherForVarargsParameterOnly() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 207 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationsWithNonNullRegularArgumentAndAnyVarargs() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 300 Medium
Non-virtual method call in mockit.ExpectationsWithVarArgsMatchersTest.expectationRecordedWithNotNullMatcherForVarargsParameter() passes null for non-null parameter of ExpectationsWithVarArgsMatchersTest$Collaborator.doSomething(int, Object[]) CORRECTNESS NP_NULL_PARAM_DEREF_NONVIRTUAL 586 High
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.complexOperation(Object, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 164 Medium
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.complexOperation(Object, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 230 Medium
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.complexOperation(Object, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 182 Medium
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.complexOperation(Object, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 563 Medium
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.complexOperation(Object, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 245 Medium
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.complexOperation(Object, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 310 Medium
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.complexOperation(Object, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 299 Medium
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.doSomething(int, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 601 Medium
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.complexOperation(Object, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 112 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationOnMethodWithVarargsArgumentUsingArgumentMatchers() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 157 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationOnVarargsMethodWithMatcherOnlyForRegularFirstParameter() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 224 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithAnyNumberOfVariableArguments() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 173 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithMatchersForAllParametersAndVarargsValuesButReplayWithDifferentVarargValue() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 565 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithMatchersForRegularParametersAndAllVarargsValues() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 238 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithMatchersForSomeRegularParametersAndAllForVarargs() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 324 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithNoVarArgs(ExpectationsWithVarArgsMatchersTest$VarArgs) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 379 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithNonNullRegularArgumentAndAnyVarargsButReplayWithNull() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 312 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithNonPrimitiveVarArgs(ExpectationsWithVarArgsMatchersTest$ReferenceVarArgs) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 423 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithPrimitiveVarArgs(ExpectationsWithVarArgsMatchersTest$PrimitiveVarArgs) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 483 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithPrimitiveVarArgsUsingMatchers(ExpectationsWithVarArgsMatchersTest$MixedVarArgs) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 538 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationsWithMatcherForVarargsParameterOnly() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 196 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationsWithNonNullRegularArgumentAndAnyVarargs() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 292 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectationRecordedWithNotNullMatcherForVarargsParameter() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 577 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.recordExpectationsWithMatchersForSomeRegularParametersAndNoneForVarargs() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 254 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.recordVarargsMethodWithRegularParameterUsingMatcherForVarargsOnly() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 595 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.replayVarargsMethodWithDifferentThanExpectedNonVarargsArgument() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 114 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.replayVarargsMethodWithDifferentThanExpectedNumberOfVarargsArguments() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 127 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.replayVarargsMethodWithDifferentThanExpectedVarargsArgument() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 143 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithNoVarArgs(ExpectationsWithVarArgsMatchersTest$VarArgs) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 389 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithNoVarArgs(ExpectationsWithVarArgsMatchersTest$VarArgs) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 391 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithPrimitiveVarArgs(ExpectationsWithVarArgsMatchersTest$PrimitiveVarArgs) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 499 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithPrimitiveVarArgs(ExpectationsWithVarArgsMatchersTest$PrimitiveVarArgs) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 506 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectInvocationWithPrimitiveVarArgs(ExpectationsWithVarArgsMatchersTest$PrimitiveVarArgs) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 507 Medium
Method mockit.ExpectationsWithVarArgsMatchersTest.expectationRecordedWithNotNullMatcherForVarargsParameter() passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 586 Medium

mockit.ExpectationsWithVarArgsMatchersTest$1

Bug Category Details Line Priority
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.complexOperation(Object, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 116 Medium

mockit.ExpectationsWithVarArgsMatchersTest$10

Bug Category Details Line Priority
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.complexOperation(Object, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 294 Medium
Method new mockit.ExpectationsWithVarArgsMatchersTest$10(ExpectationsWithVarArgsMatchersTest) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 294 Medium

mockit.ExpectationsWithVarArgsMatchersTest$11

Bug Category Details Line Priority
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.complexOperation(Object, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 314 Medium
Method new mockit.ExpectationsWithVarArgsMatchersTest$11(ExpectationsWithVarArgsMatchersTest) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 314 Medium

mockit.ExpectationsWithVarArgsMatchersTest$12

Bug Category Details Line Priority
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.anotherOperation(int, boolean, String, String[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 326 Medium

mockit.ExpectationsWithVarArgsMatchersTest$15

Bug Category Details Line Priority
Method new mockit.ExpectationsWithVarArgsMatchersTest$15(ExpectationsWithVarArgsMatchersTest, ExpectationsWithVarArgsMatchersTest$PrimitiveVarArgs, String[], String[]) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 486 Medium
Method new mockit.ExpectationsWithVarArgsMatchersTest$15(ExpectationsWithVarArgsMatchersTest, ExpectationsWithVarArgsMatchersTest$PrimitiveVarArgs, String[], String[]) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 493 Medium
Method new mockit.ExpectationsWithVarArgsMatchersTest$15(ExpectationsWithVarArgsMatchersTest, ExpectationsWithVarArgsMatchersTest$PrimitiveVarArgs, String[], String[]) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 494 Medium

mockit.ExpectationsWithVarArgsMatchersTest$17

Bug Category Details Line Priority
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.complexOperation(Object, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 567 Medium

mockit.ExpectationsWithVarArgsMatchersTest$18

Bug Category Details Line Priority
Method new mockit.ExpectationsWithVarArgsMatchersTest$18(ExpectationsWithVarArgsMatchersTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 580 Medium
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.doSomething(int, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 579 Medium

mockit.ExpectationsWithVarArgsMatchersTest$19

Bug Category Details Line Priority
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.doSomething(int, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 597 Medium

mockit.ExpectationsWithVarArgsMatchersTest$4

Bug Category Details Line Priority
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.complexOperation(Object, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 159 Medium

mockit.ExpectationsWithVarArgsMatchersTest$5

Bug Category Details Line Priority
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.complexOperation(Object, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 175 Medium
Method new mockit.ExpectationsWithVarArgsMatchersTest$5(ExpectationsWithVarArgsMatchersTest) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 175 Medium

mockit.ExpectationsWithVarArgsMatchersTest$6

Bug Category Details Line Priority
Method new mockit.ExpectationsWithVarArgsMatchersTest$6(ExpectationsWithVarArgsMatchersTest, List) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 203 Medium
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.anotherOperation(int, boolean, String, String[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 200 Medium
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.complexOperation(Object, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 198 Medium
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.doSomething(int, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 202 Medium
Method new mockit.ExpectationsWithVarArgsMatchersTest$6(ExpectationsWithVarArgsMatchersTest, List) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 198 Medium
Method new mockit.ExpectationsWithVarArgsMatchersTest$6(ExpectationsWithVarArgsMatchersTest, List) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 200 Medium
Method new mockit.ExpectationsWithVarArgsMatchersTest$6(ExpectationsWithVarArgsMatchersTest, List) passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 202 Medium

mockit.ExpectationsWithVarArgsMatchersTest$7

Bug Category Details Line Priority
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.complexOperation(Object, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 226 Medium

mockit.ExpectationsWithVarArgsMatchersTest$8

Bug Category Details Line Priority
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.complexOperation(Object, Object[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 240 Medium

mockit.ExpectationsWithVarArgsMatchersTest$9

Bug Category Details Line Priority
Return value of ExpectationsWithVarArgsMatchersTest$Collaborator.anotherOperation(int, boolean, String, String[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 256 Medium

mockit.FakeClassInstantiationPerSetupTest

Bug Category Details Line Priority
Found reliance on default encoding in mockit.FakeClassInstantiationPerSetupTest.reentrantFakeForJREClass(): new java.util.Scanner(InputStream) I18N DM_DEFAULT_ENCODING 429 High
Method mockit.FakeClassInstantiationPerSetupTest.fakeInstancePerSetupInAllScopes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 381 Medium
Method mockit.FakeClassInstantiationPerSetupTest.reentrantFakeForJREClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 425 Medium
Method mockit.FakeClassInstantiationPerSetupTest.setUpAdditionalClassLevelFakes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 321 Medium
Method mockit.FakeClassInstantiationPerSetupTest.setUpClassLevelFakes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 313 Medium
Method mockit.FakeClassInstantiationPerSetupTest.setUpMethodLevelFakes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 330 Medium
Write to static field mockit.FakeClassInstantiationPerSetupTest$FakeClass3.singleInstanceCreated from instance method mockit.FakeClassInstantiationPerSetupTest.setUpMethodLevelFakes() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 329 High

mockit.FakeClassInstantiationPerSetupTest$FakeURL

Bug Category Details Line Priority
Found reliance on default encoding in mockit.FakeClassInstantiationPerSetupTest$FakeURL.openStream(Invocation): String.getBytes() I18N DM_DEFAULT_ENCODING 410 High
Method mockit.FakeClassInstantiationPerSetupTest$FakeURL.openStream(Invocation) encodes String bytes without specifying the character encoding CORRECTNESS MDM_STRING_BYTES_ENCODING 410 Medium
This web server request could be used by an attacker to expose internal services and filesystem. SECURITY URLCONNECTION_SSRF_FD 413 Medium

mockit.FakeForGenericsTest

Bug Category Details Line Priority
Method mockit.FakeForGenericsTest.fakeBothGenericAndNonGenericMethodsInGenericClass() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 178 Medium
Return value of FakeForGenericsTest$GenericBaseClass.find(Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 233 Medium
Method mockit.FakeForGenericsTest.cannotCallGenericMethodWhenSomeFakeMethodExpectsDifferentTypes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 225 Medium
Method mockit.FakeForGenericsTest.fakeBothGenericAndNonGenericMethodsInGenericClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 165 Medium
Method mockit.FakeForGenericsTest.fakeGenericClassWithUnspecifiedTypeArguments() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 130 Medium
Method mockit.FakeForGenericsTest.fakeGenericMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 48 Medium
Method mockit.FakeForGenericsTest.fakeGenericMethodFromInstantiationOfNonGenericSubclass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 257 Medium
Method mockit.FakeForGenericsTest.fakeGenericMethodFromInstantiationOfNonGenericSubclassWhichExtendsAGenericIntermediateSuperclass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 288 Medium
Method mockit.FakeForGenericsTest.fakeGenericMethodWithFakeMethodHavingParameterTypesMatchingTypeArguments() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 209 Medium
Method mockit.FakeForGenericsTest.fakeGenericMethodsOfNonGenericClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 353 Medium

mockit.FakeForGenericsTest$1

Bug Category Details Line Priority
Uncallable method mockit.FakeForGenericsTest$1.genericMethod(Number) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 51 High

mockit.FakeForGenericsTest$2

Bug Category Details Line Priority
Method mockit.FakeForGenericsTest$2.aMethod(Object) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 136 Medium
Uncallable method mockit.FakeForGenericsTest$2.aMethod(Object) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 133-137 High
Uncallable method mockit.FakeForGenericsTest$2.anotherMethod(Object, int, Object) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 141-144 High

mockit.FakeForGenericsTest$3

Bug Category Details Line Priority
Uncallable method mockit.FakeForGenericsTest$3.anotherMethod(Integer, int, String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 168 High
Uncallable method mockit.FakeForGenericsTest$3.anotherMethod(String, int, Boolean) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 173 High

mockit.FakeForGenericsTest$4

Bug Category Details Line Priority
Uncallable method mockit.FakeForGenericsTest$4.find(String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 212 High

mockit.FakeForGenericsTest$5

Bug Category Details Line Priority
Uncallable method mockit.FakeForGenericsTest$5.find(String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 228 High

mockit.FakeForGenericsTest$6

Bug Category Details Line Priority
Uncallable method mockit.FakeForGenericsTest$6.find(Integer) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 260 High

mockit.FakeForGenericsTest$7

Bug Category Details Line Priority
Uncallable method mockit.FakeForGenericsTest$7.find(Integer) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 291 High

mockit.FakeForGenericsTest$8

Bug Category Details Line Priority
Uncallable method mockit.FakeForGenericsTest$8.instanceMethod(Class) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 365 High
Uncallable method mockit.FakeForGenericsTest$8.instanceMethod(Class, String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 361 High
Uncallable method mockit.FakeForGenericsTest$8.staticMethod(Class, String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 356 High

mockit.FakeForGenericsTest$NonGenericClassWithGenericMethods

Bug Category Details Line Priority
Static or private method mockit.FakeForGenericsTest$NonGenericClassWithGenericMethods.staticMethod(Class, String) has unused parameters STYLE UP_UNUSED_PARAMETER 318 Medium
Static or private method mockit.FakeForGenericsTest$NonGenericClassWithGenericMethods.staticMethod(Class, String) has unused parameters STYLE UP_UNUSED_PARAMETER 318 Medium

mockit.FakeInvocationProceedTest

Bug Category Details Line Priority
Method mockit.FakeInvocationProceedTest.proceedFromFakeMethodIntoRealMethodWithModifiedArguments() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 271 Medium
Null passed for non-null parameter of FakeInvocationProceedTest$ClassToBeFaked.anotherMethodToBeFaked(String, boolean, List) in mockit.FakeInvocationProceedTest.proceedConditionallyFromFakeMethod() CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 209 Medium
Method mockit.FakeInvocationProceedTest.cannotProceedFromFakeMethodIntoNativeMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 279 Medium
Method mockit.FakeInvocationProceedTest.proceedConditionallyFromFakeMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 194 Medium
Method mockit.FakeInvocationProceedTest.proceedConditionallyFromFakeMethodIntoConstructor() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 315 Medium
Method mockit.FakeInvocationProceedTest.proceedConditionallyFromFakeMethodIntoJREConstructor() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 335 Medium
Method mockit.FakeInvocationProceedTest.proceedFromFakeMethodIntoConstructor() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 298 Medium
Method mockit.FakeInvocationProceedTest.proceedFromFakeMethodIntoMethodInheritedFromBaseClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 353 Medium
Method mockit.FakeInvocationProceedTest.proceedFromFakeMethodIntoRealMethodWithModifiedArguments() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 261 Medium
Method mockit.FakeInvocationProceedTest.proceedFromFakeMethodWhichThrowsCheckedException() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 227 Medium
Method mockit.FakeInvocationProceedTest.proceedFromFakeMethodWithParameters() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 168 Medium
Method mockit.FakeInvocationProceedTest.proceedFromFakeMethodWithoutParameters() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 153 Medium

mockit.FakeInvocationProceedTest$1

Bug Category Details Line Priority
Uncallable method mockit.FakeInvocationProceedTest$1.methodToBeMocked(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 156 High

mockit.FakeInvocationProceedTest$10

Bug Category Details Line Priority
Uncallable method mockit.FakeInvocationProceedTest$10.baseMethod(Invocation, int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 356 High

mockit.FakeInvocationProceedTest$1FakeWhichModifiesArguments

Bug Category Details Line Priority
Uncallable method mockit.FakeInvocationProceedTest$1FakeWhichModifiesArguments.methodToBeFaked(Invocation, int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 257 High

mockit.FakeInvocationProceedTest$2

Bug Category Details Line Priority
Uncallable method mockit.FakeInvocationProceedTest$2.methodToBeFaked(Invocation, int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 171-172 High
Private method mockit.FakeInvocationProceedTest$2.methodToBeFaked(Invocation, int, Object[]) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 177-178 Medium
Static or private method mockit.FakeInvocationProceedTest$2.methodToBeFaked(Invocation, int, Object[]) has unused parameters STYLE UP_UNUSED_PARAMETER 177-178 Medium

mockit.FakeInvocationProceedTest$3

Bug Category Details Line Priority
mockit.FakeInvocationProceedTest$3.anotherMethodToBeFaked(Invocation, String, boolean, List): 4th parameter 'ints' could be declared as java.util.Collection instead STYLE OCP_OVERLY_CONCRETE_COLLECTION_PARAMETER 197 Medium
Uncallable method mockit.FakeInvocationProceedTest$3.anotherMethodToBeFaked(Invocation, String, boolean, List) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 197-202 High

mockit.FakeInvocationProceedTest$4

Bug Category Details Line Priority
Uncallable method mockit.FakeInvocationProceedTest$4.staticMethodToBeFaked(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 230-234 High

mockit.FakeInvocationProceedTest$5

Bug Category Details Line Priority
Uncallable method mockit.FakeInvocationProceedTest$5.methodToBeFaked(Invocation, int, Object[]) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 264-265 High

mockit.FakeInvocationProceedTest$6

Bug Category Details Line Priority
Uncallable method mockit.FakeInvocationProceedTest$6.nativeMethod(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 282-284 High

mockit.FakeInvocationTest

Bug Category Details Line Priority
Null passed for non-null parameter of FakeInvocationTest$Collaborator.doSomething(boolean, int[], String) in mockit.FakeInvocationTest.fakeMethodsWithInvocationParameter() CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 183 Medium
Return value of new FakeInvocationTest$Collaborator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 342 Medium
Method mockit.FakeInvocationTest.fakeConstructorUsingPublicFakeClassWithPublicFakeMethodHavingInvocationParameter() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 340 Medium
Method mockit.FakeInvocationTest.fakeConstructorUsingPublicFakeClassWithPublicFakeMethodHavingInvocationParameter() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 342 Medium
Method mockit.FakeInvocationTest.fakeMethodByNameOnly_usingAnonymousFake() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 305 Medium
Method mockit.FakeInvocationTest.fakeMethodByNameOnly_usingPublicFake() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 293 Medium
Method mockit.FakeInvocationTest.fakeMethodsForMethodsWithoutParameters() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 133 Medium
Method mockit.FakeInvocationTest.fakeMethodsWithInvocationParameter() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 161 Medium
Method mockit.FakeInvocationTest.instanceFakeMethodForStaticMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 143 Medium
Method mockit.FakeInvocationTest.useOfContextParametersForJREMethods() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 253 Medium

mockit.FakeInvocationTest$1

Bug Category Details Line Priority
Uncallable method mockit.FakeInvocationTest$1.staticMethod(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 146-148 High

mockit.FakeInvocationTest$2

Bug Category Details Line Priority
Uncallable method mockit.FakeInvocationTest$2.doSomething(Invocation, boolean, int[], String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 173-179 High

mockit.FakeInvocationTest$3

Bug Category Details Line Priority
Uncallable method mockit.FakeInvocationTest$3.exec(Invocation, String, String[]) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 256-260 High

mockit.FakeInvocationTest$4

Bug Category Details Line Priority
Uncallable method mockit.FakeInvocationTest$4.doSomething(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 308-310 High

mockit.FakeInvocationTest$Collaborator

Bug Category Details Line Priority
Unread field: mockit.FakeInvocationTest$Collaborator.value PERFORMANCE URF_UNREAD_FIELD 43 Medium

mockit.FakeLoginContextTest

Bug Category Details Line Priority
Method mockit.FakeLoginContextTest.accessFakedInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 161 Medium
Method mockit.FakeLoginContextTest.fakeJREClassWithStubs() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 116 Medium
Method mockit.FakeLoginContextTest.fakeJREMethodAndConstructorUsingFakeClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 41 Medium
Method mockit.FakeLoginContextTest.fakeJREMethodAndConstructorWithFakeClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 91 Medium

mockit.FakeLoginContextTest$1

Bug Category Details Line Priority
Uncallable method mockit.FakeLoginContextTest$1.login() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 99 High

mockit.FakeLoginContextTest$2

Bug Category Details Line Priority
Uncallable method mockit.FakeLoginContextTest$2.getSubject() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 187 High
Uncallable method mockit.FakeLoginContextTest$2.login(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 175-178 High
Uncallable method mockit.FakeLoginContextTest$2.logout() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 182-183 High

mockit.FakeLoginContextTest$ProceedingFakeLoginContext

Bug Category Details Line Priority
Return value of javax.security.auth.login.LoginContext.getSubject() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 263 Medium

mockit.FakedClassWithSuperClassTest

Bug Category Details Line Priority
Method mockit.FakedClassWithSuperClassTest.fakeOnlyInstancesOfTheClassSpecifiedToBeFaked() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 69 Medium
Method mockit.FakedClassWithSuperClassTest.fakeOnlyInstancesOfTheClassSpecifiedToBeFaked_usingFakeMethodBridge() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 88 Medium

mockit.FakedClassWithSuperClassTest$3

Bug Category Details Line Priority
Uncallable method mockit.FakedClassWithSuperClassTest$3.doSomething() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 91 High

mockit.FakingBaseTypesTest

Bug Category Details Line Priority
Method mockit.FakingBaseTypesTest.applyFakeForAllTests() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 62 Medium
Method mockit.FakingBaseTypesTest.applyFakeForEachTest() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 113 Medium
Method mockit.FakingBaseTypesTest.fakeAllClassesImplementingAnInterfaceUsingNamedFakeWithInvocationParameter() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 262 Medium
Method mockit.FakingBaseTypesTest.test3_fakeInterfaceImplementationClassesUsingAnonymousFake() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 196 Medium
Method mockit.FakingBaseTypesTest.test4_fakeConcreteSubclassesUsingAnonymousFake() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 368 Medium
Method mockit.FakingBaseTypesTest.test5_fakeInterfaceImplementationClassesUsingNamedFake() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 441 Medium
Method mockit.FakingBaseTypesTest.test6_fakeConcreteSubclassesUsingNamedFake() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 475 Medium
Method mockit.FakingBaseTypesTest.test7_fakeImplementationsOfGenericInterface() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 530 Medium
Method mockit.FakingBaseTypesTest.test8_excludeJREClassesFromFakingForSafety() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 558 Medium
Method mockit.FakingBaseTypesTest.applyFakeForAllTests() declares unbound method template parameter(s) CORRECTNESS UMTP_UNBOUND_METHOD_TEMPLATE_PARAMETER 62-68 Medium
Method mockit.FakingBaseTypesTest.applyFakeForEachTest() declares unbound method template parameter(s) CORRECTNESS UMTP_UNBOUND_METHOD_TEMPLATE_PARAMETER 113-119 Medium
Method mockit.FakingBaseTypesTest.test3_fakeInterfaceImplementationClassesUsingAnonymousFake() declares unbound method template parameter(s) CORRECTNESS UMTP_UNBOUND_METHOD_TEMPLATE_PARAMETER 194-209 Medium
Method mockit.FakingBaseTypesTest.test4_fakeConcreteSubclassesUsingAnonymousFake() declares unbound method template parameter(s) CORRECTNESS UMTP_UNBOUND_METHOD_TEMPLATE_PARAMETER 366-393 Medium
Method mockit.FakingBaseTypesTest.test7_fakeImplementationsOfGenericInterface() declares unbound method template parameter(s) CORRECTNESS UMTP_UNBOUND_METHOD_TEMPLATE_PARAMETER 509-545 Medium
Method mockit.FakingBaseTypesTest.test8_excludeJREClassesFromFakingForSafety() declares unbound method template parameter(s) CORRECTNESS UMTP_UNBOUND_METHOD_TEMPLATE_PARAMETER 558-576 Medium

mockit.FakingBaseTypesTest$1

Bug Category Details Line Priority
Uncallable method mockit.FakingBaseTypesTest$1.perform() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 65 High

mockit.FakingBaseTypesTest$10

Bug Category Details Line Priority
Uncallable method mockit.FakingBaseTypesTest$10.perform(Number) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 533 High

mockit.FakingBaseTypesTest$11

Bug Category Details Line Priority
Uncallable method mockit.FakingBaseTypesTest$11.read(CharBuffer) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 561 High

mockit.FakingBaseTypesTest$2

Bug Category Details Line Priority
Uncallable method mockit.FakingBaseTypesTest$2.perform() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 116 High

mockit.FakingBaseTypesTest$3

Bug Category Details Line Priority
Uncallable method mockit.FakingBaseTypesTest$3.perform(int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 199 High

mockit.FakingBaseTypesTest$6

Bug Category Details Line Priority
Uncallable method mockit.FakingBaseTypesTest$6.perform(int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 371 High
Uncallable method mockit.FakingBaseTypesTest$6.toBeFakedAsWell() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 376 High

mockit.FakingEverythingTest

Bug Category Details Line Priority
Return value of TargetClass.staticMethod(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 90 Medium
Method mockit.FakingEverythingTest.fakeEveryMethodInClassHierarchy() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 145 Medium
Method mockit.FakingEverythingTest.fakeEveryMethodInSingleClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 71 Medium
Method mockit.FakingEverythingTest.fakeEveryMethodInSingleClassWithAdviceOnly() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 126 Medium
Method mockit.FakingEverythingTest.publicAdviceMethodInPublicFakeClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 229 Medium
Method mockit.FakingEverythingTest.fakeEveryMethodInClassHierarchy() declares unbound method template parameter(s) CORRECTNESS UMTP_UNBOUND_METHOD_TEMPLATE_PARAMETER 145-196 Medium

mockit.FakingEverythingTest$1

Bug Category Details Line Priority
Uncallable method mockit.FakingEverythingTest$1.validateSomething(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 85-87 High

mockit.FakingEverythingTest$2

Bug Category Details Line Priority
Return value of TargetClass.doSomething(String, boolean) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 96 Medium

mockit.FakingTest

Bug Category Details Line Priority
Method mockit.FakingTest.performActionOnFakeTearDown() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 413 Medium
Method mockit.FakingTest.anonymousFakeForJRESubclassHavingFakeMethodForJREMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 382 Medium
Method mockit.FakingTest.callFakeMethodFromAWTEventDispatchingThread() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 347 Medium
Method mockit.FakingTest.fakeAClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 53 Medium
Method mockit.FakingTest.fakeAGivenClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 105 Medium
Method mockit.FakingTest.fakeConstructorOfInnerClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 327 Medium
Method mockit.FakingTest.fakeConstructorOfInnerClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 335 Medium
Method mockit.FakingTest.fakeGivenClassUsingNamedFake() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 168 Medium
Method mockit.FakingTest.fakeSameClassTwiceUsingSeparateFakes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 306 Medium
Method mockit.FakingTest.fakeSameClassTwiceUsingSeparateFakes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 309 Medium
Method mockit.FakingTest.fakeUsingInvocationParameters() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 209 Medium
Method mockit.FakingTest.fakeVarargsMethodWithProceedingFakeMethodWhichPassesReplacementArguments() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 431 Medium
Method mockit.FakingTest.fakingOfAnnotatedClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 277 Medium
Method mockit.FakingTest.lambda$attemptToApplyFakeWithoutTheTargetType$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 39 Medium
Method mockit.FakingTest.lambda$attemptToFakeClassAndInterfaceAtOnce$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 187 Medium
Method mockit.FakingTest.lambda$attemptToFakeGivenClassButPassNull$0(Class) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 133 Medium
Method mockit.FakingTest.performActionOnFakeTearDown() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 414 Medium
Write to static field mockit.FakingTest.fakeTornDown from instance method mockit.FakingTest.performActionOnFakeTearDown() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 413 Medium
Method mockit.FakingTest.attemptToFakeClassAndInterfaceAtOnce() declares unbound method template parameter(s) CORRECTNESS UMTP_UNBOUND_METHOD_TEMPLATE_PARAMETER 186-202 Medium

mockit.FakingTest$10

Bug Category Details Line Priority
Uncallable method mockit.FakingTest$10.getComponentCount() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 350 High

mockit.FakingTest$11

Bug Category Details Line Priority
Uncallable method mockit.FakingTest$11.getBank() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 385 High

mockit.FakingTest$12

Bug Category Details Line Priority
Uncallable method mockit.FakingTest$12.command(Invocation, String[]) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 434-435 High

mockit.FakingTest$1Fake1

Bug Category Details Line Priority
Uncallable method mockit.FakingTest$1Fake1.addNotify() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 304 High

mockit.FakingTest$2

Bug Category Details Line Priority
Uncallable method mockit.FakingTest$2.getComponentCount() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 56 High

mockit.FakingTest$3

Bug Category Details Line Priority
Uncallable method mockit.FakingTest$3.compareAndSet(Object, int, int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 110-119 High

mockit.FakingTest$5

Bug Category Details Line Priority
Uncallable method mockit.FakingTest$5.getName() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 190 High
Uncallable method mockit.FakingTest$5.run() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 195 High

mockit.FakingTest$6

Bug Category Details Line Priority
Uncallable method mockit.FakingTest$6.getBaseline(Invocation, int, int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 218 High

mockit.FakingTest$8

Bug Category Details Line Priority
Uncallable method mockit.FakingTest$8.getAccessibleContext() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 312 High

mockit.FakingTest$FakeWithActionOnTearDown

Bug Category Details Line Priority
Method mockit.FakingTest$FakeWithActionOnTearDown.onTearDown() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 404 Medium

mockit.FinalMockFieldsTest

Bug Category Details Line Priority
Method mockit.FinalMockFieldsTest.recordExpectationsOnConstructorOfFinalMockField() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 145 Medium
Method mockit.FinalMockFieldsTest.recordExpectationsOnConstructorOfFinalMockField() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 152 Medium
Method mockit.FinalMockFieldsTest.recordExpectationsOnFinalMockField() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 125 Medium
Method mockit.FinalMockFieldsTest.recordExpectationsOnInjectableFinalMockField() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 106 Medium
Method mockit.FinalMockFieldsTest.recordExpectationsOnStaticMethodAndConstructorOfFinalLocalMockField() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 206 Medium
Method mockit.FinalMockFieldsTest.recordExpectationsOnStaticMethodAndConstructorOfFinalLocalMockField() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 216 Medium

mockit.FinalMockFieldsTest$1

Bug Category Details Line Priority
Return value of FinalMockFieldsTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 108 Medium

mockit.FinalMockFieldsTest$3

Bug Category Details Line Priority
Method new mockit.FinalMockFieldsTest$3(FinalMockFieldsTest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 147 Medium

mockit.FinalMockFieldsTest$4

Bug Category Details Line Priority
Return value of FinalMockFieldsTest$YetAnotherCollaborator.doSomethingStatic() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 210 Medium
Method new mockit.FinalMockFieldsTest$4(FinalMockFieldsTest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 208 Medium

mockit.FullVerificationsTest

Bug Category Details Line Priority
Method mockit.FullVerificationsTest.verifyAllInvocations() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 97 Medium
Method mockit.FullVerificationsTest.verifyAllInvocationsExceptThoseAlreadyVerifiedInAPreviousVerificationBlock() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 175 Medium
Method mockit.FullVerificationsTest.verifyAllInvocationsExceptThoseAlreadyVerifiedInAPreviousVerificationBlock() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 182 Medium
Method mockit.FullVerificationsTest.verifyAllInvocationsWithExtraVerification() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 350 Medium
Method mockit.FullVerificationsTest.verifyAllInvocationsWithInvocationCountMoreThanActual() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 402 Medium
Method mockit.FullVerificationsTest.verifyAllInvocationsWithInvocationCountOneLessThanActual() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 368 Medium
Method mockit.FullVerificationsTest.verifyAllInvocationsWithInvocationCountTwoLessThanActual() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 386 Medium
Method mockit.FullVerificationsTest.verifyAllInvocationsWithOneMissing() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 201 Medium
Method mockit.FullVerificationsTest.verifyAllInvocationsWithSomeOfThemRecorded() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 119 Medium
Method mockit.FullVerificationsTest.verifyAllInvocationsWithSomeOfThemRecorded() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 129 Medium
Method mockit.FullVerificationsTest.verifyAllInvocationsWithThoseRecordedAsExpectedToOccurVerifiedImplicitly() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 145 Medium
Method mockit.FullVerificationsTest.verifyAllInvocationsWithThoseRecordedAsExpectedToOccurVerifiedImplicitly() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 157 Medium
Method mockit.FullVerificationsTest.verifyInvocationThatIsAllowedToHappenAnyNumberOfTimesAndHappensOnce() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 259 Medium
Method mockit.FullVerificationsTest.verifyNoInvocationsOccurredOnMockedDependencyWithOneHavingOccurred() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 418 Medium
Method mockit.FullVerificationsTest.verifyNoInvocationsOnMockedDependencyBeyondThoseRecordedAsExpected() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 427 Medium
Method mockit.FullVerificationsTest.verifyNoInvocationsOnMockedDependencyBeyondThoseRecordedAsExpected() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 434 Medium
Method mockit.FullVerificationsTest.verifyNoInvocationsOnMockedDependencyBeyondThoseRecordedAsExpected() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 448 Medium
Method mockit.FullVerificationsTest.verifyNoInvocationsOnMockedDependencyBeyondThoseRecordedAsExpectedWithOneHavingOccurred() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 458 Medium
Method mockit.FullVerificationsTest.verifyNoInvocationsOnMockedDependencyBeyondThoseRecordedAsExpectedWithOneHavingOccurred() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 471 Medium
Method mockit.FullVerificationsTest.verifyNoUnverifiedInvocationsWhenFirstInvocationOfMethodIsButSecondOneIsNot() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 486 Medium
Method mockit.FullVerificationsTest.verifyNoUnverifiedInvocationsWhenFirstInvocationOfMethodIsButSecondOneIsNot() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 497 Medium
Method mockit.FullVerificationsTest.verifyNoUnverifiedInvocationsWhenSecondInvocationOfMethodIsButFirstOneIsNot() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 511 Medium
Method mockit.FullVerificationsTest.verifyNoUnverifiedInvocationsWhenSecondInvocationOfMethodIsButFirstOneIsNot() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 518 Medium
Method mockit.FullVerificationsTest.verifyRecordedInvocationThatIsAllowedToHappenAnyNoOfTimesAndDoesNotHappen() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 277 Medium
Method mockit.FullVerificationsTest.verifyRecordedInvocationThatShouldHappenButDoesNot() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 326 Medium
Method mockit.FullVerificationsTest.verifyRecordedInvocationThatShouldHappenButDoesNot() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 334 Medium
Method mockit.FullVerificationsTest.verifyUnrecordedInvocationThatIsAllowedToHappenAnyNoOfTimesAndDoesNotHappen() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 295 Medium
Method mockit.FullVerificationsTest.verifyUnrecordedInvocationThatShouldHappenButDoesNot() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 313 Medium
Method mockit.FullVerificationsTest.verifyUnrecordedInvocationThatShouldNotHappenButDoes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 241 Medium
Method mockit.FullVerificationsTest.verifyUnrecordedInvocationThatWasExpectedToNotHappen() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 221 Medium

mockit.FullVerificationsTest$2

Bug Category Details Line Priority
Method new mockit.FullVerificationsTest$2(FullVerificationsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 122 Medium

mockit.FullVerificationsTest$4

Bug Category Details Line Priority
Method new mockit.FullVerificationsTest$4(FullVerificationsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 150 Medium

mockit.GenericMockedTypesTest

Bug Category Details Line Priority
Method mockit.GenericMockedTypesTest.cascadingClassWithNameStartingWithAnotherMockedClass(GenericMockedTypesTest$Collaborator, GenericMockedTypesTest$Collaborator2) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 346 Medium
Method mockit.GenericMockedTypesTest.invokeGenericBaseInterfaceMethodThatIsOverriddenInMockedSubInterface(GenericMockedTypesTest$SubInterface) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 647 Medium
Method mockit.GenericMockedTypesTest.mockGenericAbstractClass(Dictionary) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 85 Medium
Method mockit.GenericMockedTypesTest.mockGenericInterfaces(Callable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 48 Medium
Method mockit.GenericMockedTypesTest.mockRawMapInterface(Map) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 97 Medium
Method mockit.GenericMockedTypesTest.recordGenericInterfaceMethodWithReturnTypeGivenByTypeParameterDependentOnAnotherTypeParameterOfSameName(GenericMockedTypesTest$DerivedGenericInterface) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 574 Medium
Method mockit.GenericMockedTypesTest.resultFromGenericMethodsOfNonGenericInterface(GenericMockedTypesTest$NonGenericInterfaceWithGenericMethods) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 196 Medium

mockit.GenericMockedTypesTest$1

Bug Category Details Line Priority
Exception thrown in class mockit.GenericMockedTypesTest$1 at new mockit.GenericMockedTypesTest$1(GenericMockedTypesTest, Callable) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 50 Medium

mockit.GenericMockedTypesTest$3

Bug Category Details Line Priority
Return value of java.util.Map.get(Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 99 Medium

mockit.GenericMockedTypesTest$5

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

mockit.InjectableFieldTest

Bug Category Details Line Priority
Method mockit.InjectableFieldTest.cascadeOneLevel() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 129 Medium
Method mockit.InjectableFieldTest.overrideExpectationRecordedInBeforeMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 148 Medium
Method mockit.InjectableFieldTest.partiallyMockInstanceWithoutAffectingInjectableInstances() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 166 Medium
Method mockit.InjectableFieldTest.recordCommonExpectations() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 103 Medium

mockit.InjectableFieldTest$1

Bug Category Details Line Priority
Return value of InjectableFieldTest$Base.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 105 Medium
Return value of InjectableFieldTest$Foo.getAnotherValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 107 Medium

mockit.InjectableFieldTest$3

Bug Category Details Line Priority
Return value of InjectableFieldTest$Foo.getAnotherValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 150 Medium

mockit.InjectableFieldTest$4

Bug Category Details Line Priority
Return value of InjectableFieldTest$Foo.doSomethingElse() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 170 Medium
Return value of InjectableFieldTest$Foo.getAnotherValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 168 Medium

mockit.InjectableFieldTest$Foo

Bug Category Details Line Priority
Method mockit.InjectableFieldTest$Foo.getBooleanValue() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 72 Medium

mockit.InjectableParameterTest

Bug Category Details Line Priority

mockit.InstanceSpecificMockingTest

Bug Category Details Line Priority
Found reliance on default encoding in mockit.InstanceSpecificMockingTest.mockByteBufferAsInjectable(ByteBuffer): String.getBytes() I18N DM_DEFAULT_ENCODING 267 High
Method mockit.InstanceSpecificMockingTest.mockByteBufferAsInjectable(ByteBuffer) encodes String bytes without specifying the character encoding CORRECTNESS MDM_STRING_BYTES_ENCODING 267 Medium
mockit.InstanceSpecificMockingTest.concatenateInputStreams(InputStream, InputStream) ignores result of java.io.InputStream.read(byte[]) BAD_PRACTICE RR_NOT_CHECKED 407 Medium
Method mockit.InstanceSpecificMockingTest.allowInjectableMockOfAnnotationType(RunWith) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 229 Medium
Method mockit.InstanceSpecificMockingTest.allowInjectableMockOfInterfaceType(Runnable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 212 Medium
Method mockit.InstanceSpecificMockingTest.concatenateInputStreams(InputStream, InputStream) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 396 Medium
Method mockit.InstanceSpecificMockingTest.mockByteBufferAsInjectable(ByteBuffer) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 255 Medium
Method mockit.InstanceSpecificMockingTest.mockByteBufferRegularly(ByteBuffer) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 284 Medium
Method mockit.InstanceSpecificMockingTest.mockSpecificInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 148 Medium
Method mockit.InstanceSpecificMockingTest.useASecondMockInstanceOfTheSameType(InstanceSpecificMockingTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 180 Medium

mockit.InstanceSpecificMockingTest$1

Bug Category Details Line Priority
Method new mockit.InstanceSpecificMockingTest$1(InstanceSpecificMockingTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 151 Medium
Return value of InstanceSpecificMockingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 152 Medium
Return value of InstanceSpecificMockingTest$Collaborator.simpleOperation(int, String, Date) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 150 Medium

mockit.InstanceSpecificMockingTest$2

Bug Category Details Line Priority
Return value of InstanceSpecificMockingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 182 Medium

mockit.InstanceSpecificMockingTest$5

Bug Category Details Line Priority
Found reliance on default encoding in new mockit.InstanceSpecificMockingTest$5(InstanceSpecificMockingTest, ByteBuffer): String.getBytes() I18N DM_DEFAULT_ENCODING 261 High
Method new mockit.InstanceSpecificMockingTest$5(InstanceSpecificMockingTest, ByteBuffer) encodes String bytes without specifying the character encoding CORRECTNESS MDM_STRING_BYTES_ENCODING 261 Medium
Method new mockit.InstanceSpecificMockingTest$5(InstanceSpecificMockingTest, ByteBuffer) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 258 Medium

mockit.InstanceSpecificMockingTest$7

Bug Category Details Line Priority
Exception thrown in class mockit.InstanceSpecificMockingTest$7 at new mockit.InstanceSpecificMockingTest$7(InstanceSpecificMockingTest, InputStream, InputStream) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 398 Medium

mockit.InstanceSpecificMockingTest$Collaborator

Bug Category Details Line Priority
Static or private method mockit.InstanceSpecificMockingTest$Collaborator.doSomething(boolean, String) has unused parameters STYLE UP_UNUSED_PARAMETER 99 Medium
Static or private method mockit.InstanceSpecificMockingTest$Collaborator.doSomething(boolean, String) has unused parameters STYLE UP_UNUSED_PARAMETER 99 Medium

mockit.Invocation

Bug Category Details Line Priority
mockit.Invocation.getInvokedArguments() may expose internal representation by returning Invocation.invokedArguments MALICIOUS_CODE EI_EXPOSE_REP 100 Medium
Class mockit.Invocation has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 57-155 Medium

mockit.InvocationBlocksWithTimesFieldsTest

Bug Category Details Line Priority
Method mockit.InvocationBlocksWithTimesFieldsTest.expectAtLeastOnceAndReplayTwice(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 144 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.expectAtMostTwiceAndReplayOnce(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 185 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.expectAtMostZero(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 229 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.expectAtMostZeroButReplayOnce(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 246 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.expectSameMethodOnceOrTwiceThenOnceButReplayEachExpectationOnlyOnce(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 284 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.expectTwiceByUsingInvocationCount(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 102 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.expectTwiceByUsingInvocationCountButReplayOnlyOnce(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 124 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.expectTwoOrThreeTimes(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 304 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.lambda$expectAtMostOnceButReplayTwice$0(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 207 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.lambda$unordered_verifyTwiceByUsingInvocationCountButReplayOnlyOnce$0(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 622 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.maxTimesDoesNotOverwriteMinTimes(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 265 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.minTimesAndMaxTimesOutOfOrder(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 164 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.ordered_maxTimesDoesNotOverwriteMinTimes(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 492 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.ordered_minTimesAndMaxTimesOutOfOrder(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 395 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.ordered_verifyAtLeastOnceAndReplayTwice(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 374 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.ordered_verifyAtMostOnceButReplayTwice(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 437 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.ordered_verifyAtMostTwiceAndReplayOnce(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 415 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.ordered_verifyAtMostZero(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 454 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.ordered_verifyAtMostZeroButReplayOnce(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 473 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.ordered_verifySameMethodOnceOrTwiceThenOnceButReplayEachExpectationOnlyOnce(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 512 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.ordered_verifyTwiceByUsingInvocationCount(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 332 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.ordered_verifyTwiceByUsingInvocationCountButReplayOnlyOnce(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 353 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.ordered_verifyTwoOrThreeTimes(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 533 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.ordered_verifyZeroOrMoreTimesAndReplayNone(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 576 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.ordered_verifyZeroOrMoreTimesAndReplayTwice(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 558 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.unordered_maxTimesDoesNotOverwriteMinTimes(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 762 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.unordered_minTimesAndMaxTimesOutOfOrder(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 665 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.unordered_verifyAtLeastOnceAndReplayTwice(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 644 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.unordered_verifyAtMostOnceButReplayTwice(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 707 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.unordered_verifyAtMostTwiceAndReplayOnce(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 685 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.unordered_verifyAtMostZero(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 724 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.unordered_verifyAtMostZeroButReplayOnce(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 743 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.unordered_verifyOneOrMoreTimesAndReplayTwice(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 828 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.unordered_verifySameMethodOnceOrTwiceThenOnceButReplayEachExpectationOnlyOnce(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 783 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.unordered_verifyTwiceByUsingInvocationCount(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 600 Medium
Method mockit.InvocationBlocksWithTimesFieldsTest.unordered_verifyTwoOrThreeTimes(InvocationBlocksWithTimesFieldsTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 804 Medium

mockit.InvocationBlocksWithTimesFieldsTest$15

Bug Category Details Line Priority

mockit.InvocationBlocksWithTimesFieldsTest$19

Bug Category Details Line Priority

mockit.InvocationConstraintsTest

Bug Category Details Line Priority
Method mockit.InvocationConstraintsTest.lambda$testInvocationsWith0Calls$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 52 Medium
Method mockit.InvocationConstraintsTest.lambda$testMinInvocationsWith0Calls$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 94 Medium
Method mockit.InvocationConstraintsTest.testInvocationsWith1Call() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 62 Medium
Method mockit.InvocationConstraintsTest.testInvocationsWith2Calls() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 74 Medium
Method mockit.InvocationConstraintsTest.testMaxInvocationsWith0Calls() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 131 Medium
Method mockit.InvocationConstraintsTest.testMaxInvocationsWith1Call() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 142 Medium
Method mockit.InvocationConstraintsTest.testMaxInvocationsWith2Calls() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 153 Medium
Method mockit.InvocationConstraintsTest.testMinInvocationsWith1Call() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 104 Medium
Method mockit.InvocationConstraintsTest.testMinInvocationsWith2Calls() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 116 Medium

mockit.InvocationConstraintsTest$1

Bug Category Details Line Priority
Uncallable method mockit.InvocationConstraintsTest$1.provideSomeService() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 55 High

mockit.InvocationConstraintsTest$2

Bug Category Details Line Priority
Uncallable method mockit.InvocationConstraintsTest$2.provideSomeService() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 65 High

mockit.InvocationConstraintsTest$3

Bug Category Details Line Priority
Uncallable method mockit.InvocationConstraintsTest$3.provideSomeService() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 77 High

mockit.InvocationConstraintsTest$4

Bug Category Details Line Priority
Uncallable method mockit.InvocationConstraintsTest$4.provideSomeService() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 97 High

mockit.InvocationConstraintsTest$5

Bug Category Details Line Priority
Uncallable method mockit.InvocationConstraintsTest$5.provideSomeService() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 107 High

mockit.InvocationConstraintsTest$6

Bug Category Details Line Priority
Uncallable method mockit.InvocationConstraintsTest$6.provideSomeService() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 119 High

mockit.InvocationConstraintsTest$7

Bug Category Details Line Priority
Uncallable method mockit.InvocationConstraintsTest$7.provideSomeService() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 134 High

mockit.InvocationConstraintsTest$8

Bug Category Details Line Priority
Uncallable method mockit.InvocationConstraintsTest$8.provideSomeService() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 145 High

mockit.InvocationConstraintsTest$9

Bug Category Details Line Priority
Uncallable method mockit.InvocationConstraintsTest$9.provideSomeService() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 156 High

mockit.Invocations

Bug Category Details Line Priority
new mockit.Invocations() invokes inefficient new String() constructor PERFORMANCE DM_STRING_VOID_CTOR 110 Medium
Method new mockit.Invocations() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 246 Medium
Non-null field currentPhase is not initialized by new mockit.Invocations() CORRECTNESS NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR 45-326 Medium
Unread public/protected field: mockit.Invocations.maxTimes STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD 476 Medium
Unread public/protected field: mockit.Invocations.minTimes STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD 399 Medium
Unread public/protected field: mockit.Invocations.times STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD 263 Medium
Method mockit.Invocations.withArgThat(Matcher) stores return result in local before immediately returning it STYLE USBR_UNNECESSARY_STORE_BEFORE_RETURN 403 Medium

mockit.IterableDITest

Bug Category Details Line Priority

mockit.JREMockingTest

Bug Category Details Line Priority
Found reliance on default encoding in mockit.JREMockingTest.dynamicMockingOfFileOutputStreamThroughMockField(): String.getBytes() I18N DM_DEFAULT_ENCODING 183 High
Method mockit.JREMockingTest.dynamicMockingOfFileOutputStreamThroughMockField() encodes String bytes without specifying the character encoding CORRECTNESS MDM_STRING_BYTES_ENCODING 183 Medium
Method mockit.JREMockingTest.dynamicMockingOfAnnotatedJREMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 146 Medium
Method mockit.JREMockingTest.dynamicMockingOfFileOutputStreamThroughMockField() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 176 Medium
Method mockit.JREMockingTest.dynamicMockingOfFileOutputStreamThroughMockField() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 186 Medium
Method mockit.JREMockingTest.fakingOfCalendar() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 102 Medium
Method mockit.JREMockingTest.mockingFileAndRecordingExpectationToMatchOnSpecificConstructorCall(File) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 77 Medium
Method mockit.JREMockingTest.mockingOfFile(File) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 58 Medium

mockit.JREMockingTest$1

Bug Category Details Line Priority
Method new mockit.JREMockingTest$1(JREMockingTest, File) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 61 Medium

mockit.JREMockingTest$2

Bug Category Details Line Priority
Method new mockit.JREMockingTest$2(JREMockingTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 80 Medium

mockit.JREMockingTest$3

Bug Category Details Line Priority
Uncallable method mockit.JREMockingTest$3.getInstance(Invocation, TimeZone) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 105 High

mockit.JREMockingTest$5

Bug Category Details Line Priority
Exception thrown in class mockit.JREMockingTest$5 at new mockit.JREMockingTest$5(JREMockingTest) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 179 Medium

mockit.JREMockingTest$6

Bug Category Details Line Priority
Exception thrown in class mockit.JREMockingTest$6 at new mockit.JREMockingTest$6(JREMockingTest) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 188 Medium

mockit.JUnit4ParametersTest

Bug Category Details Line Priority
Method mockit.JUnit4ParametersTest.useParameters(Runnable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 75 Medium
Method mockit.JUnit4ParametersTest.useParameters(Runnable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 90 Medium

mockit.JUnit4ParametersTest$1

Bug Category Details Line Priority
Method new mockit.JUnit4ParametersTest$1(JUnit4ParametersTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 78 Medium
Return value of mockit.integration.MockedClass.doSomething(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 77 Medium

mockit.MisusedFakingAPITest

Bug Category Details Line Priority
Method mockit.MisusedFakingAPITest.applyTheSameFakeForAClassTwice() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 92 Medium
Method mockit.MisusedFakingAPITest.applyTheSameFakeForAClassTwice() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 93 Medium
Method mockit.MisusedFakingAPITest.fakeAPrivateConstructor() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 118 Medium
Method mockit.MisusedFakingAPITest.fakeAPrivateMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 104 Medium
Method mockit.MisusedFakingAPITest.fakeSameMethodTwiceWithReentrantFakesFromTwoDifferentFakeClasses() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 31 Medium
Method mockit.MisusedFakingAPITest.fakeSameMethodTwiceWithReentrantFakesFromTwoDifferentFakeClasses() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 42 Medium

mockit.MisusedFakingAPITest$1

Bug Category Details Line Priority
Uncallable method mockit.MisusedFakingAPITest$1.getComponentCount(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 34-35 High

mockit.MisusedFakingAPITest$2

Bug Category Details Line Priority
Uncallable method mockit.MisusedFakingAPITest$2.getComponentCount(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 45-46 High

mockit.MisusedFakingAPITest$3

Bug Category Details Line Priority
Uncallable method mockit.MisusedFakingAPITest$3.checkCoalescing() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 107 High

mockit.MisusedMockingAPITest

Bug Category Details Line Priority
Return value of new MisusedMockingAPITest$Blah() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 172 Medium
Return value of new MisusedMockingAPITest$Blah() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 204 Medium
Return value of new MisusedMockingAPITest$Blah() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 215 Medium
Return value of MisusedMockingAPITest$Blah.doSomething(boolean) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 216 Medium
Return value of new MisusedMockingAPITest$Blah() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 236 Medium
Return value of MisusedMockingAPITest$Blah.doSomething(boolean) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 234 Medium
Method mockit.MisusedMockingAPITest.lambda$recordMockInstanceForConstructorExpectation$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 165 Medium
Method mockit.MisusedMockingAPITest.lambda$recordMockInstanceForConstructorExpectation$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 172 Medium
Method mockit.MisusedMockingAPITest.recordDuplicateInvocationInSeparateExpectationBlocks() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 142 Medium
Method mockit.MisusedMockingAPITest.recordDuplicateInvocationInSeparateExpectationBlocks() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 148 Medium
Method mockit.MisusedMockingAPITest.recordDuplicateInvocationWithArgumentMatcher() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 126 Medium
Method mockit.MisusedMockingAPITest.recordDuplicateInvocationWithNoArguments() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 108 Medium
Method mockit.MisusedMockingAPITest.recordExpectationAfterInvokingSameMethodInReplayPhase() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 90 Medium
Method mockit.MisusedMockingAPITest.recordUnorderedInstantiationOfClassMockedTwice(MisusedMockingAPITest$Blah) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 191 Medium
Method mockit.MisusedMockingAPITest.recordUnorderedInstantiationOfClassMockedTwice(MisusedMockingAPITest$Blah) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 204 Medium
Method mockit.MisusedMockingAPITest.verifyOrderedInstantiationOfClassMockedTwice(MisusedMockingAPITest$Blah) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 215 Medium
Method mockit.MisusedMockingAPITest.verifyOrderedInstantiationOfClassMockedTwice(MisusedMockingAPITest$Blah) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 218 Medium
Method mockit.MisusedMockingAPITest.verifyUnorderedInstantiationOfClassMockedTwice(MisusedMockingAPITest$Blah) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 236 Medium
Method mockit.MisusedMockingAPITest.verifyUnorderedInstantiationOfClassMockedTwice(MisusedMockingAPITest$Blah) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 238 Medium

mockit.MisusedMockingAPITest$1

Bug Category Details Line Priority
Return value of MisusedMockingAPITest$Blah.value() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 92 Medium

mockit.MisusedMockingAPITest$2

Bug Category Details Line Priority
Return value of MisusedMockingAPITest$Blah.value() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 110 Medium

mockit.MisusedMockingAPITest$4

Bug Category Details Line Priority
Return value of MisusedMockingAPITest$Blah.value() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 144 Medium

mockit.MisusedMockingAPITest$5

Bug Category Details Line Priority
Return value of MisusedMockingAPITest$Blah.value() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 150 Medium

mockit.MisusedMockingAPITest$6

Bug Category Details Line Priority
Return value of new MisusedMockingAPITest$Blah() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 167 Medium
Method new mockit.MisusedMockingAPITest$6(MisusedMockingAPITest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 167 Medium

mockit.MisusedMockingAPITest$7

Bug Category Details Line Priority
Return value of new MisusedMockingAPITest$Blah() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 193 Medium
Return value of MisusedMockingAPITest$Blah.value() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 195 Medium
Method new mockit.MisusedMockingAPITest$7(MisusedMockingAPITest, MisusedMockingAPITest$Blah) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 193 Medium

mockit.MisusedMockingAPITest$8

Bug Category Details Line Priority
Return value of new MisusedMockingAPITest$Blah() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 220 Medium
Return value of MisusedMockingAPITest$Blah.doSomething(boolean) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 221 Medium
Method new mockit.MisusedMockingAPITest$8(MisusedMockingAPITest, MisusedMockingAPITest$Blah) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 220 Medium

mockit.MisusedMockingAPITest$9

Bug Category Details Line Priority
Return value of new MisusedMockingAPITest$Blah() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 241 Medium
Return value of MisusedMockingAPITest$Blah.doSomething(boolean) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 240 Medium
Method new mockit.MisusedMockingAPITest$9(MisusedMockingAPITest, MisusedMockingAPITest$Blah) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 241 Medium

mockit.MisusedMockingAPITest$Blah

Bug Category Details Line Priority
Unread field: mockit.MisusedMockingAPITest$Blah.name; should this field be static? PERFORMANCE SS_SHOULD_BE_STATIC 33 Medium

mockit.MockAnnotationsTest

Bug Category Details Line Priority
Non derivable method mockit.MockAnnotationsTest.mockNativeMethodInClassWithoutRegisterNatives() declares throwing an exception that isn't thrown CORRECTNESS BED_BOGUS_EXCEPTION_DECLARATION 415 Medium
Return value of new MockAnnotationsTest$Collaborator(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 308 Medium
Return value of MockAnnotationsTest$Collaborator.doInternal() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 323 Medium
Method mockit.MockAnnotationsTest.concurrentMock() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 697 Medium
Method mockit.MockAnnotationsTest.lambda$attemptToSetUpMockForClassLackingAMatchingRealMethod$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 123 Medium
Method mockit.MockAnnotationsTest.lambda$setUpMockWithMinInvocationsExpectationButFailIt$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 237 Medium
Method mockit.MockAnnotationsTest.mockAbstractClassWithMockForAbstractMethodHavingInvocationParameter() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 595 Medium
Method mockit.MockAnnotationsTest.mockGenericClassWithMockUpHavingInvocationParameter() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 666 Medium
Method mockit.MockAnnotationsTest.mockStaticInitializer() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 474 Medium
Method mockit.MockAnnotationsTest.mockUpAffectsInstancesOfSpecifiedSubclassAndNotOfBaseClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 727 Medium
Method mockit.MockAnnotationsTest.mockWithNoExpectationsPassingMockInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 114 Medium
Method mockit.MockAnnotationsTest.setUpMockForConstructor() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 306 Medium
Method mockit.MockAnnotationsTest.setUpMockForConstructor() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 308 Medium
Method mockit.MockAnnotationsTest.setUpMockForStaticMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 320 Medium
Method mockit.MockAnnotationsTest.setUpMockForSubclassConstructor() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 335 Medium
Method mockit.MockAnnotationsTest.setUpMockForSubclassConstructor() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 337 Medium
Method mockit.MockAnnotationsTest.setUpMockWithInvocationsExpectationButFailIt() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 267 Medium
Method mockit.MockAnnotationsTest.setUpMockWithMaxInvocationsExpectationButFailIt() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 251 Medium
Method mockit.MockAnnotationsTest.setUpMocksContainingExpectations() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 200 Medium
Method mockit.MockAnnotationsTest.setUpMocksForClassHierarchy() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 363 Medium
Method mockit.MockAnnotationsTest.setUpMocksFromInnerMockClassWithMockConstructor() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 177 Medium
Method mockit.MockAnnotationsTest.setUpReentrantMock() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 285 Medium
Method mockit.MockAnnotationsTest.stubOutStaticInitializer() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 498 Medium
Method mockit.MockAnnotationsTest.stubOutStaticInitializerWithEmptyMockClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 532 Medium
Method mockit.MockAnnotationsTest.stubbedOutAnnotatedMethodInMockedClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 679 Medium
Useless object created in method mockit.MockAnnotationsTest.lambda$setUpMockWithMaxInvocationsExpectationButFailIt$0() STYLE UC_USELESS_OBJECT_STACK 253 Medium
Method mockit.MockAnnotationsTest.mockAbstractClassWithMockForAbstractMethodHavingInvocationParameter() declares unbound method template parameter(s) CORRECTNESS UMTP_UNBOUND_METHOD_TEMPLATE_PARAMETER 588-606 Medium

mockit.MockAnnotationsTest$1

Bug Category Details Line Priority
Uncallable method mockit.MockAnnotationsTest$1.method(int[], Long, String[][], Long[]) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 167-168 High

mockit.MockAnnotationsTest$10

Bug Category Details Line Priority
Uncallable method mockit.MockAnnotationsTest$10.call(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 651 High

mockit.MockAnnotationsTest$11

Bug Category Details Line Priority
Uncallable method mockit.MockAnnotationsTest$11.doSomething(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 669 High

mockit.MockAnnotationsTest$12

Bug Category Details Line Priority
Uncallable method mockit.MockAnnotationsTest$12.getThreadSpecificValue(int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 700 High

mockit.MockAnnotationsTest$2

Bug Category Details Line Priority
Uncallable method mockit.MockAnnotationsTest$2.getValue(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 378-383 High
Uncallable method mockit.MockAnnotationsTest$2.provideSomeService(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 372-374 High

mockit.MockAnnotationsTest$4

Bug Category Details Line Priority
Uncallable method mockit.MockAnnotationsTest$4.handle(Callback[]) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 557-559 High

mockit.MockAnnotationsTest$5

Bug Category Details Line Priority
Uncallable method mockit.MockAnnotationsTest$5.doSomething(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 574-575 High

mockit.MockAnnotationsTest$7

Bug Category Details Line Priority
Uncallable method mockit.MockAnnotationsTest$7.doSomething(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 598-601 High

mockit.MockAnnotationsTest$8

Bug Category Details Line Priority
Uncallable method mockit.MockAnnotationsTest$8.doSomething(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 619 High

mockit.MockAnnotationsTest$9

Bug Category Details Line Priority
Uncallable method mockit.MockAnnotationsTest$9.doSomething(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 633-639 High

mockit.MockAnnotationsTest$ClassWithStaticInitializers

Bug Category Details Line Priority
Method mockit.MockAnnotationsTest$ClassWithStaticInitializers.<static initializer for ClassWithStaticInitializers>() prints the stack trace to the console STYLE IMC_IMMATURE_CLASS_PRINTSTACKTRACE 467 Medium

mockit.MockAnnotationsTest$Collaborator

Bug Category Details Line Priority
Private or static method mockit.MockAnnotationsTest$Collaborator.doInternal() only returns one constant value STYLE MRC_METHOD_RETURNS_CONSTANT 77 Medium

mockit.MockAnnotationsTest$MockFloat

Bug Category Details Line Priority
Static or private method mockit.MockAnnotationsTest$MockFloat.intBitsToFloat(int) has unused parameters STYLE UP_UNUSED_PARAMETER 428 Medium

mockit.MockAnnotationsTest$SubCollaborator

Bug Category Details Line Priority
Exception thrown in class mockit.MockAnnotationsTest$SubCollaborator at new mockit.MockAnnotationsTest$SubCollaborator(int) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 342 Medium

mockit.MockInstanceMatchingTest

Bug Category Details Line Priority
Null passed for non-null parameter of java.util.concurrent.AbstractExecutorService.execute(Runnable) in mockit.MockInstanceMatchingTest.verifyExpectationsMatchingOnMultipleMockParametersButReplayedOutOfOrder(AbstractExecutorService, AbstractExecutorService) CORRECTNESS NP_NONNULL_PARAM_VIOLATION 339 High
Return value of MockInstanceMatchingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 305 Medium
Return value of MockInstanceMatchingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 130 Medium
Method mockit.MockInstanceMatchingTest.lambda$verifyOnSpecificMockInstancesButReplayOnDifferentOnes$0(MockInstanceMatchingTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 242 Medium
Method mockit.MockInstanceMatchingTest.matchOnMockInstance(MockInstanceMatchingTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 68 Medium
Method mockit.MockInstanceMatchingTest.matchOnTwoMockInstances(MockInstanceMatchingTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 259 Medium
Method mockit.MockInstanceMatchingTest.matchOnTwoMockInstancesAndReplayInDifferentOrder(MockInstanceMatchingTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 282 Medium
Method mockit.MockInstanceMatchingTest.matchOnTwoMockInstancesForOtherwiseIdenticalExpectations(MockInstanceMatchingTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 310 Medium
Method mockit.MockInstanceMatchingTest.matchOnTwoMockInstancesForOtherwiseIdenticalExpectations(MockInstanceMatchingTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 319 Medium
Method mockit.MockInstanceMatchingTest.recordExpectationMatchingOnInstanceCreatedInsideCodeUnderTest() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 355 Medium
Method mockit.MockInstanceMatchingTest.recordExpectationsMatchingOnMultipleMockInstances(MockInstanceMatchingTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 173 Medium
Method mockit.MockInstanceMatchingTest.recordExpectationsOnTwoInstancesOfSameMockedInterface(DataSource, DataSource, Attr) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 381 Medium
Method mockit.MockInstanceMatchingTest.recordExpectationsOnTwoInstancesOfSameMockedInterface(DataSource, DataSource, Attr) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 395 Medium
Method mockit.MockInstanceMatchingTest.recordOnMockInstanceButReplayOnDifferentInstance(MockInstanceMatchingTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 91 Medium
Method mockit.MockInstanceMatchingTest.recordOnSpecificMockInstancesButReplayOnDifferentOnes(MockInstanceMatchingTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 197 Medium
Method mockit.MockInstanceMatchingTest.verifyExpectationMatchingOnMockInstance(MockInstanceMatchingTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 113 Medium
Method mockit.MockInstanceMatchingTest.verifyExpectationsMatchingOnMultipleMockInstances(MockInstanceMatchingTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 220 Medium
Method mockit.MockInstanceMatchingTest.verifyExpectationsMatchingOnMultipleMockParametersButReplayedOutOfOrder(AbstractExecutorService, AbstractExecutorService) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 342 Medium
Method mockit.MockInstanceMatchingTest.verifyExpectationsOnSameMethodCallForDifferentMockedInstances(MockInstanceMatchingTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 135 Medium
Method mockit.MockInstanceMatchingTest.verifyOnMockInstanceButReplayOnDifferentInstance(MockInstanceMatchingTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 158 Medium
Method mockit.MockInstanceMatchingTest.verifyingCallsOnSpecificInstancesOfDifferentSubclasses(MockInstanceMatchingTest$SubclassA, MockInstanceMatchingTest$SubclassA, MockInstanceMatchingTest$SubclassB) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 455 Medium
Useless object created in method mockit.MockInstanceMatchingTest.verifyExpectationMatchingOnMockInstance(MockInstanceMatchingTest$Collaborator) STYLE UC_USELESS_OBJECT_STACK 110 Medium
Useless object created in method mockit.MockInstanceMatchingTest.verifyOnMockInstanceButReplayOnDifferentInstance(MockInstanceMatchingTest$Collaborator) STYLE UC_USELESS_OBJECT_STACK 156 Medium

mockit.MockInstanceMatchingTest$1

Bug Category Details Line Priority
Return value of MockInstanceMatchingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 70 Medium

mockit.MockInstanceMatchingTest$10

Bug Category Details Line Priority
Return value of MockInstanceMatchingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 261 Medium

mockit.MockInstanceMatchingTest$11

Bug Category Details Line Priority
Return value of MockInstanceMatchingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 284 Medium

mockit.MockInstanceMatchingTest$12

Bug Category Details Line Priority
Return value of MockInstanceMatchingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 312 Medium

mockit.MockInstanceMatchingTest$15

Bug Category Details Line Priority
Return value of MockInstanceMatchingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 357 Medium

mockit.MockInstanceMatchingTest$16

Bug Category Details Line Priority
Exception thrown in class mockit.MockInstanceMatchingTest$16 at new mockit.MockInstanceMatchingTest$16(MockInstanceMatchingTest, DataSource, DataSource) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 383 Medium

mockit.MockInstanceMatchingTest$17

Bug Category Details Line Priority
Exception thrown in class mockit.MockInstanceMatchingTest$17 at new mockit.MockInstanceMatchingTest$17(MockInstanceMatchingTest, DataSource) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 397 Medium

mockit.MockInstanceMatchingTest$2

Bug Category Details Line Priority
Return value of MockInstanceMatchingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 93 Medium

mockit.MockInstanceMatchingTest$4

Bug Category Details Line Priority
Return value of MockInstanceMatchingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 137 Medium

mockit.MockInstanceMatchingTest$6

Bug Category Details Line Priority
Return value of MockInstanceMatchingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 175 Medium

mockit.MockInvocationProceedTest

Bug Category Details Line Priority
Null passed for non-null parameter of MockInvocationProceedTest$ClassToBeMocked.anotherMethodToBeMocked(String, boolean, List) in mockit.MockInvocationProceedTest.proceedConditionallyFromMockMethod() CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 125 Medium
Method mockit.MockInvocationProceedTest.cannotProceedFromMockMethodIntoNativeMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 161 Medium
Method mockit.MockInvocationProceedTest.proceedConditionallyFromMockMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 110 Medium
Method mockit.MockInvocationProceedTest.proceedConditionallyFromMockMethodIntoConstructor() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 191 Medium
Method mockit.MockInvocationProceedTest.proceedConditionallyFromMockMethodIntoJREConstructor() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 208 Medium
Method mockit.MockInvocationProceedTest.proceedFromMockMethodIntoConstructor() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 177 Medium
Method mockit.MockInvocationProceedTest.proceedFromMockMethodIntoMethodInheritedFromBaseClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 223 Medium
Method mockit.MockInvocationProceedTest.proceedFromMockMethodWhichThrowsCheckedException() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 137 Medium
Method mockit.MockInvocationProceedTest.proceedFromMockMethodWithParameters() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 87 Medium
Method mockit.MockInvocationProceedTest.proceedFromMockMethodWithoutParameters() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 75 Medium

mockit.MockInvocationProceedTest$1

Bug Category Details Line Priority
Uncallable method mockit.MockInvocationProceedTest$1.methodToBeMocked(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 78 High

mockit.MockInvocationProceedTest$2

Bug Category Details Line Priority
Uncallable method mockit.MockInvocationProceedTest$2.methodToBeMocked(Invocation, int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 90-91 High
Private method mockit.MockInvocationProceedTest$2.methodToBeMocked(Invocation, int, Object[]) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 96-97 Medium
Static or private method mockit.MockInvocationProceedTest$2.methodToBeMocked(Invocation, int, Object[]) has unused parameters STYLE UP_UNUSED_PARAMETER 96-97 Medium

mockit.MockInvocationProceedTest$3

Bug Category Details Line Priority
mockit.MockInvocationProceedTest$3.anotherMethodToBeMocked(Invocation, String, boolean, List): 4th parameter 'ints' could be declared as java.util.Collection instead STYLE OCP_OVERLY_CONCRETE_COLLECTION_PARAMETER 113 Medium
Uncallable method mockit.MockInvocationProceedTest$3.anotherMethodToBeMocked(Invocation, String, boolean, List) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 113-118 High

mockit.MockInvocationProceedTest$4

Bug Category Details Line Priority
Uncallable method mockit.MockInvocationProceedTest$4.staticMethodToBeMocked(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 140-144 High

mockit.MockInvocationProceedTest$5

Bug Category Details Line Priority
Uncallable method mockit.MockInvocationProceedTest$5.nativeMethod(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 164-166 High

mockit.MockInvocationProceedTest$9

Bug Category Details Line Priority
Uncallable method mockit.MockInvocationProceedTest$9.baseMethod(Invocation, int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 226 High

mockit.MockInvocationTest

Bug Category Details Line Priority
Null passed for non-null parameter of MockInvocationTest$Collaborator.doSomething(boolean, int[], String) in mockit.MockInvocationTest.mockMethodsWithInvocationParameter() CORRECTNESS NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS 113 Medium
Method mockit.MockInvocationTest.instanceMockMethodForStaticMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 76 Medium
Method mockit.MockInvocationTest.mockMethodsForMethodsWithoutParameters() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 69 Medium
Method mockit.MockInvocationTest.mockMethodsWithInvocationParameter() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 91 Medium
Method mockit.MockInvocationTest.useOfContextParametersForJREMethods() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 151 Medium

mockit.MockInvocationTest$1

Bug Category Details Line Priority
Uncallable method mockit.MockInvocationTest$1.staticMethod(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 79-81 High

mockit.MockInvocationTest$2

Bug Category Details Line Priority
Uncallable method mockit.MockInvocationTest$2.doSomething(Invocation, boolean, int[], String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 103-109 High

mockit.MockInvocationTest$3

Bug Category Details Line Priority
Uncallable method mockit.MockInvocationTest$3.exec(Invocation, String, String[]) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 161-165 High
Uncallable method mockit.MockInvocationTest$3.runFinalizersOnExit(Invocation, boolean) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 154-157 High

mockit.MockInvocationTest$Collaborator

Bug Category Details Line Priority
Unread field: mockit.MockInvocationTest$Collaborator.value PERFORMANCE URF_UNREAD_FIELD 30 Medium

mockit.MockLoginContextTest

Bug Category Details Line Priority
Method mockit.MockLoginContextTest.mockJREClassWithStubs() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 75 Medium
Method mockit.MockLoginContextTest.mockJREMethodAndConstructorUsingAnnotatedMockClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 32 Medium
Method mockit.MockLoginContextTest.mockJREMethodAndConstructorWithMockUpClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 56 Medium

mockit.MockLoginContextTest$1

Bug Category Details Line Priority
Uncallable method mockit.MockLoginContextTest$1.login() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 64 High

mockit.MockLoginContextTest$MockLoginContextWithStubs

Bug Category Details Line Priority
Should mockit.MockLoginContextTest$MockLoginContextWithStubs be a _static_ inner class? PERFORMANCE SIC_INNER_SHOULD_BE_STATIC 82-93 Medium

mockit.MockLoginContextTest$ProceedingMockLoginContext

Bug Category Details Line Priority
Non derivable method mockit.MockLoginContextTest$ProceedingMockLoginContext.logout(Invocation) declares throwing an exception that isn't thrown CORRECTNESS BED_BOGUS_EXCEPTION_DECLARATION 145 Medium
Return value of javax.security.auth.login.LoginContext.getSubject() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 139 Medium

mockit.MockUp

Bug Category Details Line Priority
Empty method mockit.MockUp.onTearDown() could be declared abstract STYLE ACEM_ABSTRACT_CLASS_EMPTY_METHODS 331 Medium
Method mockit.MockUp.getTypeToFake() accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 162 Medium
Exception thrown in class mockit.MockUp at new mockit.MockUp() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 107 Medium

mockit.MockUpForGenericsTest

Bug Category Details Line Priority
Method mockit.MockUpForGenericsTest.mockBothGenericAndNonGenericMethodsInGenericClass() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 118 Medium
Method mockit.MockUpForGenericsTest.mockGenericInterfaceMethodWithMockMethodHavingParameterOfTypeObject() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 248 Medium
Return value of MockUpForGenericsTest$GenericBaseClass.find(Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 151 Medium
Method mockit.MockUpForGenericsTest.cannotCallGenericMethodWhenSomeMockMethodExpectsDifferentTypes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 143 Medium
Method mockit.MockUpForGenericsTest.mockBothGenericAndNonGenericMethodsInGenericClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 105 Medium
Method mockit.MockUpForGenericsTest.mockGenericClassWithUnspecifiedTypeArguments() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 73 Medium
Method mockit.MockUpForGenericsTest.mockGenericMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 33 Medium
Method mockit.MockUpForGenericsTest.mockGenericMethodFromInstantiationOfNonGenericSubclass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 166 Medium
Method mockit.MockUpForGenericsTest.mockGenericMethodFromInstantiationOfNonGenericSubclassWhichExtendsAGenericIntermediateSuperclass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 185 Medium
Method mockit.MockUpForGenericsTest.mockGenericMethodWithMockMethodHavingParameterTypesMatchingTypeArguments() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 130 Medium
Method mockit.MockUpForGenericsTest.mockGenericMethodsOfNonGenericClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 213 Medium

mockit.MockUpForGenericsTest$1

Bug Category Details Line Priority
Uncallable method mockit.MockUpForGenericsTest$1.genericMethod(Number) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 36 High

mockit.MockUpForGenericsTest$10

Bug Category Details Line Priority
Uncallable method mockit.MockUpForGenericsTest$10.method(Long) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 259-260 High

mockit.MockUpForGenericsTest$11

Bug Category Details Line Priority
Uncallable method mockit.MockUpForGenericsTest$11.compareTo(Integer) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 271-272 High

mockit.MockUpForGenericsTest$2

Bug Category Details Line Priority
Method mockit.MockUpForGenericsTest$2.aMethod(Object) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 79 Medium
Uncallable method mockit.MockUpForGenericsTest$2.aMethod(Object) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 76-80 High
Uncallable method mockit.MockUpForGenericsTest$2.anotherMethod(Object, int, Object) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 84-87 High

mockit.MockUpForGenericsTest$3

Bug Category Details Line Priority
Uncallable method mockit.MockUpForGenericsTest$3.anotherMethod(Integer, int, String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 108 High
Uncallable method mockit.MockUpForGenericsTest$3.anotherMethod(String, int, Boolean) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 113 High

mockit.MockUpForGenericsTest$4

Bug Category Details Line Priority
Uncallable method mockit.MockUpForGenericsTest$4.find(String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 133 High

mockit.MockUpForGenericsTest$5

Bug Category Details Line Priority
Uncallable method mockit.MockUpForGenericsTest$5.find(String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 146 High

mockit.MockUpForGenericsTest$6

Bug Category Details Line Priority
Uncallable method mockit.MockUpForGenericsTest$6.find(Integer) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 169 High

mockit.MockUpForGenericsTest$7

Bug Category Details Line Priority
Uncallable method mockit.MockUpForGenericsTest$7.find(Integer) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 188 High

mockit.MockUpForGenericsTest$8

Bug Category Details Line Priority
Uncallable method mockit.MockUpForGenericsTest$8.instanceMethod(Class) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 225 High
Uncallable method mockit.MockUpForGenericsTest$8.instanceMethod(Class, String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 221 High
Uncallable method mockit.MockUpForGenericsTest$8.staticMethod(Class, String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 216 High

mockit.MockUpForGenericsTest$9

Bug Category Details Line Priority
Uncallable method mockit.MockUpForGenericsTest$9.method(Object) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 244-245 High

mockit.MockUpForGenericsTest$NonGenericClassWithGenericMethods

Bug Category Details Line Priority
Static or private method mockit.MockUpForGenericsTest$NonGenericClassWithGenericMethods.staticMethod(Class, String) has unused parameters STYLE UP_UNUSED_PARAMETER 199 Medium
Static or private method mockit.MockUpForGenericsTest$NonGenericClassWithGenericMethods.staticMethod(Class, String) has unused parameters STYLE UP_UNUSED_PARAMETER 199 Medium

mockit.MockUpForSingleClassInstanceTest

Bug Category Details Line Priority
Method mockit.MockUpForSingleClassInstanceTest.sameAnonymousMockupAppliedMultipleTimesWithDifferentTargetInstances() does not presize the allocation of a collection PERFORMANCE PSC_PRESIZE_COLLECTIONS 128 Medium
Method mockit.MockUpForSingleClassInstanceTest.sameAnonymousMockupAppliedMultipleTimesWithoutTargetInstanceButWithMockInstanceCreatedFromMockup() does not presize the allocation of a collection PERFORMANCE PSC_PRESIZE_COLLECTIONS 147 Medium
Method mockit.MockUpForSingleClassInstanceTest.getMockInstanceFromInsideMockMethodForNonStaticMockedMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 156 Medium
Method mockit.MockUpForSingleClassInstanceTest.sameAnonymousMockupAppliedMultipleTimesWithDifferentTargetInstances() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 122 Medium

mockit.MockUpForSingleClassInstanceTest$1

Bug Category Details Line Priority
Uncallable method mockit.MockUpForSingleClassInstanceTest$1.getLineWidth() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 125 High

mockit.MockUpForSingleClassInstanceTest$1AClassMockUp

Bug Category Details Line Priority
Uncallable method mockit.MockUpForSingleClassInstanceTest$1AClassMockUp.getNumericValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 67 High
Uncallable method mockit.MockUpForSingleClassInstanceTest$1AClassMockUp.getTextValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 72 High

mockit.MockUpForSingleClassInstanceTest$2

Bug Category Details Line Priority
Uncallable method mockit.MockUpForSingleClassInstanceTest$2.getLineWidth() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 144 High

mockit.MockUpForSingleClassInstanceTest$3

Bug Category Details Line Priority
Uncallable method mockit.MockUpForSingleClassInstanceTest$3.getTextValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 159-160 High

mockit.MockUpForSingleClassInstanceTest$4

Bug Category Details Line Priority
Uncallable method mockit.MockUpForSingleClassInstanceTest$4.getNumericValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 175 High

mockit.MockUpForSingleClassInstanceTest$5

Bug Category Details Line Priority
Uncallable method mockit.MockUpForSingleClassInstanceTest$5.getTextValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 193-194 High

mockit.MockUpForSingleClassInstanceTest$6

Bug Category Details Line Priority
Unread field: mockit.MockUpForSingleClassInstanceTest$6.numericValue; should this field be static? PERFORMANCE SS_SHOULD_BE_STATIC 211 Medium
Uncallable method mockit.MockUpForSingleClassInstanceTest$6.getNumericValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 221 High
Uncallable method mockit.MockUpForSingleClassInstanceTest$6.getTextValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 215-216 High

mockit.MockUpForSingleClassInstanceTest$7

Bug Category Details Line Priority
Uncallable method mockit.MockUpForSingleClassInstanceTest$7.getSomeOtherValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 256 High
Uncallable method mockit.MockUpForSingleClassInstanceTest$7.getTextValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 251 High

mockit.MockUpForSingleClassInstanceTest$8

Bug Category Details Line Priority
Uncallable method mockit.MockUpForSingleClassInstanceTest$8.doSomethingElse() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 290 High
Uncallable method mockit.MockUpForSingleClassInstanceTest$8.getValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 283-285 High

mockit.MockUpForSingleClassInstanceTest$9

Bug Category Details Line Priority
Uncallable method mockit.MockUpForSingleClassInstanceTest$9.read(char[], int, int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 312-314 High
Uncallable method mockit.MockUpForSingleClassInstanceTest$9.ready() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 319 High

mockit.MockUpForSingleInterfaceInstanceTest$1

Bug Category Details Line Priority
Uncallable method mockit.MockUpForSingleInterfaceInstanceTest$1.getTextValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 187 High

mockit.MockUpForSingleInterfaceInstanceTest$1AnInterfaceMockUp

Bug Category Details Line Priority
Uncallable method mockit.MockUpForSingleInterfaceInstanceTest$1AnInterfaceMockUp.getNumericValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 46 High
Uncallable method mockit.MockUpForSingleInterfaceInstanceTest$1AnInterfaceMockUp.getTextValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 51 High

mockit.MockUpForSingleInterfaceInstanceTest$1InterfaceMockUp

Bug Category Details Line Priority
Uncallable method mockit.MockUpForSingleInterfaceInstanceTest$1InterfaceMockUp.getNumericValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 113 High

mockit.MockUpForSingleInterfaceInstanceTest$2

Bug Category Details Line Priority
Uncallable method mockit.MockUpForSingleInterfaceInstanceTest$2.getNumericValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 194 High

mockit.MockUpForSingleInterfaceInstanceTest$2AnInterfaceMockUp

Bug Category Details Line Priority
Uncallable method mockit.MockUpForSingleInterfaceInstanceTest$2AnInterfaceMockUp.getNumericValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 84 High

mockit.MockUpForSingleInterfaceInstanceTest$4

Bug Category Details Line Priority
Uncallable method mockit.MockUpForSingleInterfaceInstanceTest$4.getNumericValue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 227 High

mockit.MockedAnnotationsTest

Bug Category Details Line Priority
Method mockit.MockedAnnotationsTest.mockClassWithNullabilityAnnotations(MockedAnnotationsTest$ClassWithNullabilityAnnotations) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 168 Medium
Method mockit.MockedAnnotationsTest.specifyValuesForAnnotationAttributes(MockedAnnotationsTest$MyAnnotation) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 69 Medium
Method mockit.MockedAnnotationsTest.verifyUsesOfAnnotationAttributes(MockedAnnotationsTest$MyAnnotation) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 93 Medium
Method mockit.MockedAnnotationsTest.verifyUsesOfAnnotationAttributes(MockedAnnotationsTest$MyAnnotation) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 111 Medium

mockit.MockedAnnotationsTest$1

Bug Category Details Line Priority
Method new mockit.MockedAnnotationsTest$1(MockedAnnotationsTest, MockedAnnotationsTest$MyAnnotation) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 72 Medium

mockit.MockedAnnotationsTest$4

Bug Category Details Line Priority
Return value of MockedAnnotationsTest$ClassWithNullabilityAnnotations.doSomething(int, Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 170 Medium

mockit.MockedClassWithSuperClassTest

Bug Category Details Line Priority
Return value of new MockedClassWithSuperClassTest$DerivedClass() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 236 Medium
Method mockit.MockedClassWithSuperClassTest.mockSubclassWithConstructorContainingTryCatch(MockedClassWithSuperClassTest$DerivedClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 236 Medium
Method mockit.MockedClassWithSuperClassTest.mockedClassExtendingNonJREClass(MockedClassWithSuperClassTest$Subclass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 130 Medium
Method mockit.MockedClassWithSuperClassTest.recordExpectationOnStaticMethodFromBaseClass(MockedClassWithSuperClassTest$Subclass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 180 Medium
Method mockit.MockedClassWithSuperClassTest.recordMethodOnMockedBaseClassButReplayOnSubclassInstance(MockedClassWithSuperClassTest$BaseClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 276 Medium
Method mockit.MockedClassWithSuperClassTest.recordSameMethodOnDifferentMockedSubclasses(MockedClassWithSuperClassTest$Subclass, MockedClassWithSuperClassTest$Subclass2) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 255 Medium

mockit.MockedClassWithSuperClassTest$3

Bug Category Details Line Priority
Return value of MockedClassWithSuperClassTest$BaseClass.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 132 Medium

mockit.MockedClassWithSuperClassTest$6

Bug Category Details Line Priority
Return value of MockedClassWithSuperClassTest$BaseClass.staticMethod() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 182 Medium

mockit.MockedClassWithSuperClassTest$7

Bug Category Details Line Priority
Return value of MockedClassWithSuperClassTest$BaseClass.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 257 Medium

mockit.MockedClassWithSuperClassTest$8

Bug Category Details Line Priority
Return value of MockedClassWithSuperClassTest$BaseClass.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 278 Medium

mockit.MockedEnumsTest

Bug Category Details Line Priority
Method mockit.MockedEnumsTest.cascadedEnum(MockedEnumsTest$InterfaceWhichReturnsAnEnum) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 351 Medium
Method mockit.MockedEnumsTest.mockEnumValues(MockedEnumsTest$MyEnum) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 104 Medium
Method mockit.MockedEnumsTest.mockEnumWithValueSpecificMethods(MockedEnumsTest$EnumWithValueSpecificMethods) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 292 Medium
Method mockit.MockedEnumsTest.mockInstanceMethodOnAnyEnumElement(MockedEnumsTest$MyEnum) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 130 Medium
Method mockit.MockedEnumsTest.mockNonAbstractMethodsInEnumWithAbstractMethod(TimeUnit) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 223 Medium
Method mockit.MockedEnumsTest.mockSpecificEnumElementsByUsingTwoMockInstances(MockedEnumsTest$MyEnum, MockedEnumsTest$MyEnum) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 171 Medium
Method mockit.MockedEnumsTest.mockSpecificEnumElementsEvenWhenUsingASingleMockInstance(MockedEnumsTest$MyEnum) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 192 Medium
Method mockit.MockedEnumsTest.mockSpecificEnumElementsEvenWhenUsingASingleMockInstance(MockedEnumsTest$MyEnum) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 204 Medium
Method mockit.MockedEnumsTest.verifyInstanceMethodInvocationOnAnyEnumElement(MockedEnumsTest$MyEnum) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 153 Medium
JUnit test method mockit.MockedEnumsTest.oneEnumBeingMockedMustNotAffectOtherEnums(MockedEnumsTest$MyEnum) asserts that an autoboxed value is not null CORRECTNESS UTAO_JUNIT_ASSERTION_ODDITIES_IMPOSSIBLE_NULL 93 Medium

mockit.MockedEnumsTest$1

Bug Category Details Line Priority
Return value of MockedEnumsTest$MyEnum.getValue(double) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 108 Medium
Return value of MockedEnumsTest$MyEnum.values() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 106 Medium

mockit.MockedEnumsTest$2

Bug Category Details Line Priority
Return value of MockedEnumsTest$MyEnum.getValue(double) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 132 Medium

mockit.MockedEnumsTest$4

Bug Category Details Line Priority
Return value of MockedEnumsTest$MyEnum.getValue(double) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 173 Medium

mockit.MockedEnumsTest$5

Bug Category Details Line Priority
Return value of MockedEnumsTest$MyEnum.getValue(double) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 194 Medium

mockit.MockedEnumsTest$6

Bug Category Details Line Priority
Return value of MockedEnumsTest$MyEnum.getValue(double) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 206 Medium

mockit.MockedEnumsTest$7

Bug Category Details Line Priority
Exception thrown in class mockit.MockedEnumsTest$7 at new mockit.MockedEnumsTest$7(MockedEnumsTest, TimeUnit) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 227 Medium
Return value of java.util.concurrent.TimeUnit.convert(long, TimeUnit) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 225 Medium

mockit.MockedEnumsTest$Foo

Bug Category Details Line Priority
Enum class mockit.MockedEnumsTest$Foo only declares one enum value CORRECTNESS ENMI_ONE_ENUM_VALUE 315 Medium

mockit.MockedParametersWithCapturingTest

Bug Category Details Line Priority
Method mockit.MockedParametersWithCapturingTest.recordCallToBaseInterfaceMethodOnCaptureSubInterfaceImplementation(MockedParametersWithCapturingTest$ISub) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 271 Medium

mockit.MockingMultipleInterfacesTest

Bug Category Details Line Priority
Method mockit.MockingMultipleInterfacesTest.mockAbstractMethodInheritedFromInterfaceImplementedBySuperClass(MockingMultipleInterfacesTest$ToBeMocked) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 125 Medium
Method mockit.MockingMultipleInterfacesTest.mockFieldWithTwoInterfaces() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 51 Medium
Method mockit.MockingMultipleInterfacesTest.mockFieldWithTwoInterfaces() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 61 Medium
Method mockit.MockingMultipleInterfacesTest.mockParameterWithTwoInterfaces(MockingMultipleInterfacesTest$Dependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 78 Medium

mockit.MockingNewInstancesWithVaryingBehaviorTest

Bug Category Details Line Priority
Method mockit.MockingNewInstancesWithVaryingBehaviorTest.matchMethodCallsOnInstancesCreatedWithSpecificConstructorCalls(MockingNewInstancesWithVaryingBehaviorTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 184 Medium
Method mockit.MockingNewInstancesWithVaryingBehaviorTest.matchMethodCallsOnInstancesCreatedWithSpecificConstructorCalls(MockingNewInstancesWithVaryingBehaviorTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 210 Medium
Method mockit.MockingNewInstancesWithVaryingBehaviorTest.recordDifferentResultsForInstancesCreatedWithDifferentConstructors(MockingNewInstancesWithVaryingBehaviorTest$Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 234 Medium
Method mockit.MockingNewInstancesWithVaryingBehaviorTest.usingFakesWithInvocationParameter() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 66 Medium
Method mockit.MockingNewInstancesWithVaryingBehaviorTest.usingFakesWithInvocationParameter() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 78 Medium
Method mockit.MockingNewInstancesWithVaryingBehaviorTest.usingInstantiationRecording(SimpleDateFormat) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 108 Medium

mockit.MockingNewInstancesWithVaryingBehaviorTest$2

Bug Category Details Line Priority
Uncallable method mockit.MockingNewInstancesWithVaryingBehaviorTest$2.format(Invocation, Date) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 81-89 High

mockit.MockingNewInstancesWithVaryingBehaviorTest$4

Bug Category Details Line Priority
Return value of MockingNewInstancesWithVaryingBehaviorTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 187 Medium

mockit.MockingNewInstancesWithVaryingBehaviorTest$5

Bug Category Details Line Priority
Return value of new MockingNewInstancesWithVaryingBehaviorTest$Collaborator(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 212 Medium
Return value of MockingNewInstancesWithVaryingBehaviorTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 214 Medium
Return value of MockingNewInstancesWithVaryingBehaviorTest$Collaborator.isPositive() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 218 Medium
Method new mockit.MockingNewInstancesWithVaryingBehaviorTest$5(MockingNewInstancesWithVaryingBehaviorTest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 212 Medium

mockit.MockingNewInstancesWithVaryingBehaviorTest$6

Bug Category Details Line Priority
Return value of MockingNewInstancesWithVaryingBehaviorTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 236 Medium

mockit.MoreFakingTest

Bug Category Details Line Priority
Method mockit.MoreFakingTest.applyFakeForClassHierarchy() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 292 Medium
Method mockit.MoreFakingTest.applyFakeForConstructor() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 244 Medium
Method mockit.MoreFakingTest.applyFakeForConstructor() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 246 Medium
Method mockit.MoreFakingTest.applyFakesFromInnerFakeClassWithFakeConstructor() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 171 Medium
Method mockit.MoreFakingTest.applyReentrantFake() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 205 Medium
Method mockit.MoreFakingTest.concurrentFake() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 444 Medium
Method mockit.MoreFakingTest.fakeAClassHavingANestedClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 549 Medium
Method mockit.MoreFakingTest.fakeAbstractClassWithFakeForAbstractMethodHavingInvocationParameter() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 389 Medium
Method mockit.MoreFakingTest.fakeAffectsInstancesOfSpecifiedSubclassAndNotOfBaseClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 477 Medium
Method mockit.MoreFakingTest.fakeDoingNothing() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 161 Medium
Method mockit.MoreFakingTest.fakeGenericClassWithFakeHavingInvocationParameter() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 424 Medium
Method mockit.MoreFakingTest.fakeStaticInitializer() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 353 Medium
Method mockit.MoreFakingTest.fakeAbstractClassWithFakeForAbstractMethodHavingInvocationParameter() declares unbound method template parameter(s) CORRECTNESS UMTP_UNBOUND_METHOD_TEMPLATE_PARAMETER 382-400 Medium

mockit.MoreFakingTest$1

Bug Category Details Line Priority
Uncallable method mockit.MoreFakingTest$1.getValue(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 307-309 High
Uncallable method mockit.MoreFakingTest$1.provideSomeService(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 301-303 High

mockit.MoreFakingTest$4

Bug Category Details Line Priority
Uncallable method mockit.MoreFakingTest$4.doSomething(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 392-395 High

mockit.MoreFakingTest$5

Bug Category Details Line Priority
Uncallable method mockit.MoreFakingTest$5.doSomething(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 427 High

mockit.MoreFakingTest$6

Bug Category Details Line Priority
Uncallable method mockit.MoreFakingTest$6.getThreadSpecificValue(int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 447 High

mockit.MoreFakingTest$8

Bug Category Details Line Priority
Uncallable method mockit.MoreFakingTest$8.doSomething() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 552 High

mockit.MoreFakingTest$Collaborator

Bug Category Details Line Priority
Unused field: mockit.MoreFakingTest$Collaborator.xyz PERFORMANCE UUF_UNUSED_FIELD Not available Medium

mockit.MoreFakingTest$SubCollaborator

Bug Category Details Line Priority
Exception thrown in class mockit.MoreFakingTest$SubCollaborator at new mockit.MoreFakingTest$SubCollaborator(int) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 278 Medium

mockit.MultiThreadedExpectationsTest

Bug Category Details Line Priority
Return value of MultiThreadedExpectationsTest$Collaborator.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 77 Medium
Method mockit.MultiThreadedExpectationsTest.invokeMethodOnMockedAbstractClassFromEDT(MultiThreadedExpectationsTest$AnAbstractClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 238 Medium
Method mockit.MultiThreadedExpectationsTest.invokeMethodOnMockedGenericInterfaceFromEDT(Callable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 261 Medium
Method mockit.MultiThreadedExpectationsTest.invokeMethodOnMockedPublicInterfaceFromEDT(MultiThreadedExpectationsTest$APublicInterface) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 203 Medium
Method mockit.MultiThreadedExpectationsTest.replayRecordedExpectationFromAnotherThread() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 122 Medium
Method mockit.MultiThreadedExpectationsTest.useMockedObjectFromWorkerThreadWhileRecordingAndVerifyingExpectation() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 94 Medium
Method mockit.MultiThreadedExpectationsTest.useMockedObjectFromWorkerThreadWhileRecordingAndVerifyingExpectation() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 105 Medium
Method mockit.MultiThreadedExpectationsTest.useMockedObjectFromWorkerThreadWhileVerifyingExpectation() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 80 Medium

mockit.MultiThreadedExpectationsTest$10

Bug Category Details Line Priority
Exception thrown in class mockit.MultiThreadedExpectationsTest$10 at new mockit.MultiThreadedExpectationsTest$10(MultiThreadedExpectationsTest, Callable) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 263 Medium
Method new mockit.MultiThreadedExpectationsTest$10(MultiThreadedExpectationsTest, Callable) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 264 Medium

mockit.MultiThreadedExpectationsTest$2

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

mockit.MultiThreadedExpectationsTest$3

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

mockit.MultiThreadedExpectationsTest$4

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

mockit.MultiThreadedExpectationsTest$5

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

mockit.MultiThreadedExpectationsTest$6

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

mockit.MultiThreadedExpectationsTest$8

Bug Category Details Line Priority
Method new mockit.MultiThreadedExpectationsTest$8(MultiThreadedExpectationsTest, MultiThreadedExpectationsTest$APublicInterface) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 206 Medium

mockit.MultiThreadedExpectationsTest$9

Bug Category Details Line Priority
Method new mockit.MultiThreadedExpectationsTest$9(MultiThreadedExpectationsTest, MultiThreadedExpectationsTest$AnAbstractClass) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 241 Medium

mockit.MultipleMockedTypesTest

Bug Category Details Line Priority
Method mockit.MultipleMockedTypesTest.invocationOnBaseTypeWithCapturingOfSubtypeThatInheritsTheInvokedMethod(MultipleMockedTypesTest$SecondDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 231 Medium
Method mockit.MultipleMockedTypesTest.invocationOnBaseTypeWithCapturingOfSubtypeThatOverridesTheInvokedMethod(MultipleMockedTypesTest$SecondDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 252 Medium
Method mockit.MultipleMockedTypesTest.invocationOnBaseTypeWithCapturingOfSubtypeThatOverridesTheInvokedMethod(MultipleMockedTypesTest$SecondDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 263 Medium
Method mockit.MultipleMockedTypesTest.invocationOnBaseTypeWithReplayOnSubtypeThatOverridesTheInvokedMethod(MultipleMockedTypesTest$SecondDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 204 Medium
Method mockit.MultipleMockedTypesTest.invocationOnBaseTypeWithReplayOnSubtypeThatOverridesTheInvokedMethod(MultipleMockedTypesTest$SecondDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 214 Medium
Method mockit.MultipleMockedTypesTest.invocationsOnCapturedImplementationsOfInterfaces(Callable, Observer) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 285 Medium
Method mockit.MultipleMockedTypesTest.invocationsOnCapturedImplementationsOfInterfaces(Callable, Observer) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 294 Medium
Method mockit.MultipleMockedTypesTest.invocationsOnMethodsOfDifferentClassesButSameSignature(MultipleMockedTypesTest$SecondDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 161 Medium
Method mockit.MultipleMockedTypesTest.invocationsOnMethodsOfDifferentClassesButSameSignature(MultipleMockedTypesTest$SecondDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 172 Medium
Method mockit.MultipleMockedTypesTest.invocationsOnMethodsOfDifferentClassesWithDifferentSignatures(MultipleMockedTypesTest$SecondDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 141 Medium

mockit.MultipleMockedTypesTest$1

Bug Category Details Line Priority
Return value of MultipleMockedTypesTest$SecondDependency.getDifferentValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 145 Medium

mockit.MultipleMockedTypesTest$10

Bug Category Details Line Priority
Exception thrown in class mockit.MultipleMockedTypesTest$10 at new mockit.MultipleMockedTypesTest$10(MultipleMockedTypesTest, Callable) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 296 Medium

mockit.MultipleMockedTypesTest$2

Bug Category Details Line Priority
Return value of MultipleMockedTypesTest$SecondDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 165 Medium

mockit.MultipleMockedTypesTest$3

Bug Category Details Line Priority
Return value of MultipleMockedTypesTest$SecondDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 175 Medium

mockit.MultipleMockedTypesTest$5

Bug Category Details Line Priority
Return value of MultipleMockedTypesTest$SecondDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 216 Medium

mockit.MultipleMockedTypesTest$6

Bug Category Details Line Priority
Return value of MultipleMockedTypesTest$SecondDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 235 Medium

mockit.MultipleMockedTypesTest$7

Bug Category Details Line Priority
Return value of MultipleMockedTypesTest$SecondDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 256 Medium

mockit.MultipleMockedTypesTest$8

Bug Category Details Line Priority
Return value of MultipleMockedTypesTest$SecondDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 266 Medium

mockit.MultipleMockedTypesTest$TestedUnit

Bug Category Details Line Priority
Return value of MultipleMockedTypesTest$TestedUnit$2.call() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 125 Medium

mockit.NaturalOrderingTest

Bug Category Details Line Priority
Null passed for non-null parameter of NaturalOrderingTest$ComparableClass.compareTo(String) in mockit.NaturalOrderingTest.mockOverrideOfCompareToMethod(NaturalOrderingTest$ComparableClass, NaturalOrderingTest$ComparableClass) CORRECTNESS NP_NONNULL_PARAM_VIOLATION 101 High
mockit.NaturalOrderingTest.verifyStandardComparableBehaviorInMockedClass(Date, Date) negates the return value of java.util.Date.compareTo(Date) BAD_PRACTICE RV_NEGATING_RESULT_OF_COMPARETO 47 Medium
Method mockit.NaturalOrderingTest.mockOverrideOfCompareToMethod(NaturalOrderingTest$ComparableClass, NaturalOrderingTest$ComparableClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 85 Medium
Method mockit.NaturalOrderingTest.mockOverrideOfCompareToMethod(NaturalOrderingTest$ComparableClass, NaturalOrderingTest$ComparableClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 94 Medium
Method mockit.NaturalOrderingTest.mockOverrideOfCompareToMethodInJREClass(Date, Date) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 116 Medium
Method mockit.NaturalOrderingTest.mockOverrideOfCompareToMethodInJREClass(Date, Date) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 126 Medium

mockit.NaturalOrderingTest$1

Bug Category Details Line Priority
Null passed for non-null parameter of NaturalOrderingTest$ComparableClass.compareTo(String) in new mockit.NaturalOrderingTest$1(NaturalOrderingTest, NaturalOrderingTest$ComparableClass) CORRECTNESS NP_NONNULL_PARAM_VIOLATION 87 High
Return value of NaturalOrderingTest$ComparableClass.compareTo(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 87 Medium

mockit.NaturalOrderingTest$2

Bug Category Details Line Priority
Return value of NaturalOrderingTest$ComparableClass.compareTo(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 96 Medium

mockit.NaturalOrderingTest$ComparableClass

Bug Category Details Line Priority
mockit.NaturalOrderingTest$ComparableClass defines compareTo(Object) and uses Object.equals() BAD_PRACTICE EQ_COMPARETO_USE_OBJECT_EQUALS 53 Medium

mockit.ObjectOverridesAndInjectableMocksTest

Bug Category Details Line Priority
Method mockit.ObjectOverridesAndInjectableMocksTest.allowAnyInvocationsOnOverriddenObjectMethodsForStrictMocks() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 62 Medium
JUnit test method mockit.ObjectOverridesAndInjectableMocksTest.allowAnyInvocationsOnOverriddenObjectMethodsForStrictMocks() passes null to Assert.assertNotEquals CORRECTNESS UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_NULL 69 Medium
JUnit test method mockit.ObjectOverridesAndInjectableMocksTest.allowAnyInvocationsOnOverriddenObjectMethodsForStrictMocks() passes null to Assert.assertNotEquals CORRECTNESS UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_NULL 73 Medium
JUnit test method mockit.ObjectOverridesAndInjectableMocksTest.allowAnyInvocationsOnOverriddenObjectMethodsForStrictMocks() passes null to Assert.assertNotEquals CORRECTNESS UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_NULL 74 Medium
JUnit test method mockit.ObjectOverridesAndInjectableMocksTest.allowAnyInvocationsOnOverriddenObjectMethodsForStrictMocks() passes null to Assert.assertEquals CORRECTNESS UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NULL 71 Medium

mockit.ObjectOverridesAndInjectableMocksTest$1

Bug Category Details Line Priority
Return value of ClassWithObjectOverrides.getIntValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 64 Medium

mockit.ObjectOverridesAndInjectableMocksTest$BaseClass

Bug Category Details Line Priority
Equals method for mockit.ObjectOverridesAndInjectableMocksTest$BaseClass assumes the argument is of type ObjectOverridesAndInjectableMocksTest$BaseClass BAD_PRACTICE BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS 97 Medium
mockit.ObjectOverridesAndInjectableMocksTest$BaseClass defines equals and uses Object.hashCode() BAD_PRACTICE HE_EQUALS_USE_HASHCODE 97 Medium
mockit.ObjectOverridesAndInjectableMocksTest$BaseClass.equals(Object) does not check for null argument BAD_PRACTICE NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT 97 Medium

mockit.ObjectOverridesTest

Bug Category Details Line Priority
Call to mockit.ClassWithObjectOverrides.equals(String) in mockit.ObjectOverridesTest.mockOverrideOfEqualsMethod() CORRECTNESS EC_UNRELATED_TYPES 167 Medium
Explicit invocation of mockit.ClassWithObjectOverrides.finalize() in mockit.ObjectOverridesTest.verifyStandardBehaviorOfOverriddenObjectMethodsInMockedClass() BAD_PRACTICE FI_EXPLICIT_INVOCATION 140 Medium
Return value of ClassWithObjectOverrides.doSomething(Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 291 Medium
Return value of ClassWithObjectOverrides.doSomething(Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 308 Medium
Method mockit.ObjectOverridesTest.mockOverrideOfCloneMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 224 Medium
Method mockit.ObjectOverridesTest.mockOverrideOfEqualsMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 150 Medium
Method mockit.ObjectOverridesTest.mockOverrideOfEqualsMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 159 Medium
Method mockit.ObjectOverridesTest.mockOverrideOfHashCodeMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 178 Medium
Method mockit.ObjectOverridesTest.mockOverrideOfToStringMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 200 Medium
Method mockit.ObjectOverridesTest.mockOverrideOfToStringMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 210 Medium
Method mockit.ObjectOverridesTest.partiallyMockInstancesOfClassWithEqualsOverrideWhoseInstanceGetsPassedInRecordedExpectation() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 285 Medium
Method mockit.ObjectOverridesTest.partiallyMockInstancesOfJREClassWithEqualsOverrideWhoseInstanceGetsPassedInRecordedExpectation() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 302 Medium
Method mockit.ObjectOverridesTest.recordExpectationsOnOverriddenObjectMethodAsAlwaysNonStrict() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 239 Medium
JUnit test method mockit.ObjectOverridesTest.mockOverrideOfEqualsMethod() passes boolean expression to Assert.assertFalse / Assert.assertTrue CORRECTNESS UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_EQUALS 166 Medium
JUnit test method mockit.ObjectOverridesTest.mockOverrideOfEqualsMethod() passes boolean expression to Assert.assertFalse / Assert.assertTrue CORRECTNESS UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_EQUALS 167 Medium
JUnit test method mockit.ObjectOverridesTest.mockOverrideOfEqualsMethod() passes boolean expression to Assert.assertFalse / Assert.assertTrue CORRECTNESS UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_EQUALS 168 Medium
JUnit test method mockit.ObjectOverridesTest.mockOverrideOfToStringMethod() passes boolean expression to Assert.assertFalse / Assert.assertTrue CORRECTNESS UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_EQUALS 208 Medium
JUnit test method mockit.ObjectOverridesTest.mockOverrideOfHashCodeMethod() passes boolean expression to Assert.assertFalse / Assert.assertTrue CORRECTNESS UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_EQUALS 176 Medium
JUnit test method mockit.ObjectOverridesTest.mockOverrideOfToStringMethod() passes boolean expression to Assert.assertFalse / Assert.assertTrue CORRECTNESS UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_EQUALS 198 Medium

mockit.ObjectOverridesTest$1

Bug Category Details Line Priority
Call to equals(null) in new mockit.ObjectOverridesTest$1(ObjectOverridesTest) CORRECTNESS EC_NULL_ARG 152 Medium
Call to mockit.ClassWithObjectOverrides.equals(String) in new mockit.ObjectOverridesTest$1(ObjectOverridesTest) CORRECTNESS EC_UNRELATED_TYPES 154 High
Method new mockit.ObjectOverridesTest$1(ObjectOverridesTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 153 Medium
Method new mockit.ObjectOverridesTest$1(ObjectOverridesTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 155 Medium
Method new mockit.ObjectOverridesTest$1(ObjectOverridesTest) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 152 Medium
Method new mockit.ObjectOverridesTest$1(ObjectOverridesTest) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 154 Medium

mockit.ObjectOverridesTest$2

Bug Category Details Line Priority
Method new mockit.ObjectOverridesTest$2(ObjectOverridesTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 162 Medium
Method new mockit.ObjectOverridesTest$2(ObjectOverridesTest) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 161 Medium

mockit.ObjectOverridesTest$3

Bug Category Details Line Priority
Method new mockit.ObjectOverridesTest$3(ObjectOverridesTest) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 180 Medium
Method new mockit.ObjectOverridesTest$3(ObjectOverridesTest) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 182 Medium
Return value of ClassWithObjectOverrides.hashCode() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 180 Medium

mockit.ObjectOverridesTest$4

Bug Category Details Line Priority
Method new mockit.ObjectOverridesTest$4(ObjectOverridesTest) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 202 Medium
Return value of ClassWithObjectOverrides.toString() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 202 Medium

mockit.ObjectOverridesTest$5

Bug Category Details Line Priority
Method new mockit.ObjectOverridesTest$5(ObjectOverridesTest) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 212 Medium
Method new mockit.ObjectOverridesTest$5(ObjectOverridesTest) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 213 Medium
Return value of ClassWithObjectOverrides.toString() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 212 Medium

mockit.ObjectOverridesTest$6

Bug Category Details Line Priority
Method new mockit.ObjectOverridesTest$6(ObjectOverridesTest) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 226 Medium

mockit.ObjectOverridesTest$7

Bug Category Details Line Priority
Method new mockit.ObjectOverridesTest$7(ObjectOverridesTest) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 242 Medium
Method new mockit.ObjectOverridesTest$7(ObjectOverridesTest) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 244 Medium
Method new mockit.ObjectOverridesTest$7(ObjectOverridesTest) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 245 Medium
Return value of ClassWithObjectOverrides.hashCode() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 242 Medium
Return value of ClassWithObjectOverrides.toString() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 245 Medium

mockit.ObjectOverridesTest$8

Bug Category Details Line Priority
Return value of ClassWithObjectOverrides.doSomething(Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 287 Medium

mockit.ObjectOverridesTest$9

Bug Category Details Line Priority
Return value of ClassWithObjectOverrides.doSomething(Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 304 Medium

mockit.ObjectOverridesTest$ClassWithEqualsOverride

Bug Category Details Line Priority
Equals method for mockit.ObjectOverridesTest$ClassWithEqualsOverride assumes the argument is of type ObjectOverridesTest$ClassWithEqualsOverride BAD_PRACTICE BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS 273 Medium
mockit.ObjectOverridesTest$ClassWithEqualsOverride defines equals and uses Object.hashCode() BAD_PRACTICE HE_EQUALS_USE_HASHCODE 273 Medium
mockit.ObjectOverridesTest$ClassWithEqualsOverride.equals(Object) does not check for null argument BAD_PRACTICE NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT 273 Medium

mockit.PartialMockingTest

Bug Category Details Line Priority
Method mockit.PartialMockingTest.attemptToUseDynamicMockingForInvalidTypes(PartialMockingTest$AnotherInterface, PartialMockingTest$NonPublicInterface) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 463 Medium
Method mockit.PartialMockingTest.assertInvalidTypeForDynamicPartialMocking(Object) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 477 Medium
Method mockit.PartialMockingTest.attemptToPartiallyMockAClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 140 Medium
Method mockit.PartialMockingTest.attemptToPartiallyMockNativeMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 639 Medium
Method mockit.PartialMockingTest.dynamicMockFullyVerifiedInOrder_verifyAllRecordedExpectationsButNotAllOfTheReplayedOnes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 174 Medium
Method mockit.PartialMockingTest.dynamicMockFullyVerifiedInOrder_verifyAllRecordedExpectationsButNotAllOfTheReplayedOnes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 186 Medium
Method mockit.PartialMockingTest.dynamicMockFullyVerifiedInOrder_verifyAllRecordedExpectationsButNotAllOfTheReplayedOnes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 193 Medium
Method mockit.PartialMockingTest.dynamicMockFullyVerified_verifyAllRecordedExpectationsButNotAllOfTheReplayedOnes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 151 Medium
Method mockit.PartialMockingTest.dynamicMockFullyVerified_verifyAllRecordedExpectationsButNotAllOfTheReplayedOnes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 161 Medium
Method mockit.PartialMockingTest.dynamicPartialMockingWithExactArgumentMatching() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 492 Medium
Method mockit.PartialMockingTest.dynamicPartialMockingWithExactArgumentMatching() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 506 Medium
Method mockit.PartialMockingTest.dynamicPartialMockingWithFlexibleArgumentMatching() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 520 Medium
Method mockit.PartialMockingTest.dynamicPartialMockingWithInstanceSpecificMatching() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 547 Medium
Method mockit.PartialMockingTest.dynamicPartialMockingWithInstanceSpecificMatching() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 557 Medium
Method mockit.PartialMockingTest.dynamicPartialMockingWithInstanceSpecificMatchingOnTwoInstancesOfSameClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 575 Medium
Method mockit.PartialMockingTest.dynamicallyMockASubCollaboratorInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 345 Medium
Method mockit.PartialMockingTest.dynamicallyMockAnAnonymousClassInstanceThroughTheImplementedInterface() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 413 Medium
Method mockit.PartialMockingTest.dynamicallyMockAnAnonymousClassInstanceThroughTheImplementedInterface() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 430 Medium
Method mockit.PartialMockingTest.dynamicallyMockAnInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 243 Medium
Method mockit.PartialMockingTest.dynamicallyMockAnInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 266 Medium
Method mockit.PartialMockingTest.expectOneInvocationOnDynamicMockButReplayTwice() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 222 Medium
Method mockit.PartialMockingTest.expectTwoInvocationsOnDynamicMockButReplayOnce() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 205 Medium
Method mockit.PartialMockingTest.methodWithNoRecordedExpectationCalledTwiceDuringReplay() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 595 Medium
Method mockit.PartialMockingTest.methodWithNoRecordedExpectationCalledTwiceDuringReplay() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 601 Medium
Method mockit.PartialMockingTest.mockClassIndirectlyExtendingBaseWhoseFirstConstructorHasMoreParametersThanTheSecondOne(PartialMockingTest$SubSubClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 740 Medium
Method mockit.PartialMockingTest.mockMethodInSameClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 281 Medium

mockit.PartialMockingTest$10

Bug Category Details Line Priority
Return value of PartialMockingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 268 Medium

mockit.PartialMockingTest$11

Bug Category Details Line Priority
Method new mockit.PartialMockingTest$11(PartialMockingTest, Object[], PartialMockingTest$Collaborator) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 284 Medium
Return value of PartialMockingTest$Collaborator.simpleOperation(int, String, Date) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 283 Medium

mockit.PartialMockingTest$12

Bug Category Details Line Priority
Return value of PartialMockingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 347 Medium
Return value of PartialMockingTest$SubCollaborator.format() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 349 Medium

mockit.PartialMockingTest$14

Bug Category Details Line Priority
Method new mockit.PartialMockingTest$14(PartialMockingTest, Object[], PartialMockingTest$Collaborator, PartialMockingTest$Dependency) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 418 Medium
Return value of PartialMockingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 415 Medium
Return value of PartialMockingTest$Dependency.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 417 Medium

mockit.PartialMockingTest$15

Bug Category Details Line Priority
Return value of PartialMockingTest$Collaborator.simpleOperation(int, String, Date) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 433 Medium
Return value of PartialMockingTest$Dependency.doSomethingElse(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 432 Medium

mockit.PartialMockingTest$17

Bug Category Details Line Priority
Method new mockit.PartialMockingTest$17(PartialMockingTest, Object[], PartialMockingTest$Collaborator) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 495 Medium
Return value of PartialMockingTest$Collaborator.simpleOperation(int, String, Date) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 494 Medium

mockit.PartialMockingTest$18

Bug Category Details Line Priority
Return value of PartialMockingTest$Collaborator.simpleOperation(int, String, Date) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 508 Medium

mockit.PartialMockingTest$19

Bug Category Details Line Priority
Method new mockit.PartialMockingTest$19(PartialMockingTest, Object[], PartialMockingTest$Collaborator) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 523 Medium
Return value of PartialMockingTest$Collaborator.simpleOperation(int, String, Date) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 522 Medium

mockit.PartialMockingTest$20

Bug Category Details Line Priority
Return value of PartialMockingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 549 Medium

mockit.PartialMockingTest$21

Bug Category Details Line Priority
Return value of PartialMockingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 559 Medium

mockit.PartialMockingTest$22

Bug Category Details Line Priority
Return value of PartialMockingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 577 Medium

mockit.PartialMockingTest$24

Bug Category Details Line Priority
Return value of PartialMockingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 603 Medium

mockit.PartialMockingTest$7

Bug Category Details Line Priority
Return value of PartialMockingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 207 Medium

mockit.PartialMockingTest$8

Bug Category Details Line Priority
Return value of PartialMockingTest$Collaborator.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 224 Medium

mockit.PartialMockingTest$9

Bug Category Details Line Priority
Method new mockit.PartialMockingTest$9(PartialMockingTest, Object[], PartialMockingTest$Collaborator) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 246 Medium
Return value of PartialMockingTest$Collaborator.simpleOperation(int, String, Date) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 245 Medium

mockit.PartialMockingTest$BaseClass

Bug Category Details Line Priority
Exception thrown in class mockit.PartialMockingTest$BaseClass at new mockit.PartialMockingTest$BaseClass(Object) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 709 Medium

mockit.PartialMockingTest$Collaborator

Bug Category Details Line Priority
Static or private method mockit.PartialMockingTest$Collaborator.doSomething(boolean, String) has unused parameters STYLE UP_UNUSED_PARAMETER 110 Medium
Static or private method mockit.PartialMockingTest$Collaborator.doSomething(boolean, String) has unused parameters STYLE UP_UNUSED_PARAMETER 110 Medium

mockit.PartialMockingTest$TestedClass

Bug Category Details Line Priority
Static or private method mockit.PartialMockingTest$TestedClass.initialize(boolean) has unused parameters STYLE UP_UNUSED_PARAMETER 694 Medium

mockit.ReentrantDelegateTest

Bug Category Details Line Priority
Method mockit.ReentrantDelegateTest.nonRecursiveDelegateMethodWithInvocationParameterUsedForProceeding(ReentrantDelegateTest$RealClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 114 Medium
Method mockit.ReentrantDelegateTest.recursiveDelegateMethodWithInvocationParameterNotUsedForProceeding(ReentrantDelegateTest$RealClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 86 Medium
Method mockit.ReentrantDelegateTest.recursiveDelegateMethodWithoutInvocationParameter(ReentrantDelegateTest$RealClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 59 Medium

mockit.ReentrantDelegateTest$1

Bug Category Details Line Priority
Return value of ReentrantDelegateTest$RealClass.nonRecursiveStaticMethod(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 61 Medium

mockit.ReentrantDelegateTest$1$1

Bug Category Details Line Priority
Uncallable method mockit.ReentrantDelegateTest$1$1.delegate(int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 65-68 Medium

mockit.ReentrantDelegateTest$2

Bug Category Details Line Priority
Return value of ReentrantDelegateTest$RealClass.nonRecursiveMethod(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 88 Medium

mockit.ReentrantDelegateTest$2$1

Bug Category Details Line Priority
Uncallable method mockit.ReentrantDelegateTest$2$1.delegate(Invocation, int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 92-96 Medium

mockit.ReentrantDelegateTest$3

Bug Category Details Line Priority
Return value of ReentrantDelegateTest$RealClass.nonRecursiveMethod(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 116 Medium

mockit.ReentrantDelegateTest$3$1

Bug Category Details Line Priority
Uncallable method mockit.ReentrantDelegateTest$3$1.nonRecursiveMethod(Invocation, int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 120-123 Medium

mockit.ReentrantFakeTest

Bug Category Details Line Priority
Method mockit.ReentrantFakeTest.callFakeMethodForJREClass() triggers finalization when calling Runtime.runFinalization() CORRECTNESS MDM_RUNFINALIZATION 208 Medium
Method mockit.ReentrantFakeTest.callFakeMethodForJREClass() triggers finalization when calling Runtime.runFinalization() CORRECTNESS MDM_RUNFINALIZATION 209 Medium
Method mockit.ReentrantFakeTest.callFakeMethodForJREClass() triggers finalization when calling Runtime.runFinalization() CORRECTNESS MDM_RUNFINALIZATION 210 Medium
Method mockit.ReentrantFakeTest.callFakeMethod() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 123 Medium
Method mockit.ReentrantFakeTest.callOriginalMethod() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 136 Medium
Return value of new ReentrantFakeTest$4(ReentrantFakeTest) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 416 Medium
Return value of ReentrantFakeTest$RealClass.foo() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 152 Medium
Method mockit.ReentrantFakeTest.applyReentrantFakeForNativeJREMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 240 Medium
Method mockit.ReentrantFakeTest.callFakeMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 122 Medium
Method mockit.ReentrantFakeTest.callFakeMethodForJREClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 206 Medium
Method mockit.ReentrantFakeTest.callOriginalMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 135 Medium
Method mockit.ReentrantFakeTest.fakeFileAndForceJREToCallReentrantFakedMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 407 Medium
Method mockit.ReentrantFakeTest.fakeFileAndForceJREToCallReentrantFakedMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 416 Medium
Method mockit.ReentrantFakeTest.fakeThatProceedsIntoRecursiveMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 522 Medium
Method mockit.ReentrantFakeTest.lambda$calledFakeThrowsException$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 149 Medium
Method mockit.ReentrantFakeTest.nonRecursiveFakeMethodWithInvocationParameterUsedForProceeding() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 578 Medium
Method mockit.ReentrantFakeTest.recursiveFakeMethodWithInvocationParameterNotUsedForProceeding() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 558 Medium
Method mockit.ReentrantFakeTest.recursiveFakeMethodWithoutInvocationParameter() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 539 Medium
Method mockit.ReentrantFakeTest.reentrantFakeForJREClassWhichCallsAnotherFromADifferentThread() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 376 Medium
Method mockit.ReentrantFakeTest.reentrantFakeForMethodWhichInstantiatesAndReturnsNewInstanceOfTheFakedClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 445 Medium
Method mockit.ReentrantFakeTest.reentrantFakeForNonJREClassWhichCallsAnotherFromADifferentThread() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 339 Medium
Method mockit.ReentrantFakeTest.reentrantFakeMethodForRecursiveMethods() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 505 Medium
Method mockit.ReentrantFakeTest.twoConcurrentThreadsCallingTheSameReentrantFake() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 292 Medium
Write to static field mockit.ReentrantFakeTest$AnnotatedFakeClass.fakeIt from instance method mockit.ReentrantFakeTest.callFakeMethod() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 123 Medium
Write to static field mockit.ReentrantFakeTest$AnnotatedFakeClass.fakeIt from instance method mockit.ReentrantFakeTest.callOriginalMethod() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 136 Medium

mockit.ReentrantFakeTest$1

Bug Category Details Line Priority
Uncallable method mockit.ReentrantFakeTest$1.firstMethod(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 344 High
Uncallable method mockit.ReentrantFakeTest$1.secondMethod(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 349-359 High

mockit.ReentrantFakeTest$2

Bug Category Details Line Priority
Uncallable method mockit.ReentrantFakeTest$2.clearProperty(String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 386-394 High
Uncallable method mockit.ReentrantFakeTest$2.getProperty(Invocation, String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 381 High

mockit.ReentrantFakeTest$3

Bug Category Details Line Priority
Uncallable method mockit.ReentrantFakeTest$3.exists(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 410-411 High

mockit.ReentrantFakeTest$5

Bug Category Details Line Priority
Uncallable method mockit.ReentrantFakeTest$5.newInstance(Invocation) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 448 High

mockit.ReentrantFakeTest$6

Bug Category Details Line Priority
Uncallable method mockit.ReentrantFakeTest$6.recursiveMethod(Invocation, int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 525-526 High

mockit.ReentrantFakeTest$7

Bug Category Details Line Priority
Uncallable method mockit.ReentrantFakeTest$7.nonRecursiveStaticMethod(int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 542-545 High

mockit.ReentrantFakeTest$8

Bug Category Details Line Priority
Uncallable method mockit.ReentrantFakeTest$8.nonRecursiveMethod(Invocation, int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 561-565 High

mockit.ReentrantFakeTest$9

Bug Category Details Line Priority
Uncallable method mockit.ReentrantFakeTest$9.nonRecursiveMethod(Invocation, int) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 581-584 High

mockit.ReentrantFakeTest$FakeClassWithReentrantFakeForRecursiveMethod

Bug Category Details Line Priority
Static or private method mockit.ReentrantFakeTest$FakeClassWithReentrantFakeForRecursiveMethod.staticRecursiveMethod(Invocation, int) has unused parameters STYLE UP_UNUSED_PARAMETER 488-489 Medium

mockit.ReentrantFakeTest$RealClass

Bug Category Details Line Priority
Method mockit.ReentrantFakeTest$RealClass.recursiveMethod(int) employs tail recursion PERFORMANCE TR_TAIL_RECURSION 61 Medium

mockit.RestrictedFullVerificationsTest

Bug Category Details Line Priority
Return value of RestrictedFullVerificationsTest$Dependency.editABunchMoreStuff() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 133 Medium
Return value of RestrictedFullVerificationsTest$Dependency.prepare() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 131 Medium
Return value of RestrictedFullVerificationsTest$AnotherDependency.staticMethod() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 464 Medium
Return value of RestrictedFullVerificationsTest$SubDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 483 Medium
Return value of RestrictedFullVerificationsTest$Dependency.prepare() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 249 Medium
Return value of RestrictedFullVerificationsTest$SubDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 250 Medium
Return value of RestrictedFullVerificationsTest$Dependency.prepare() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 327 Medium
Return value of RestrictedFullVerificationsTest$SubDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 328 Medium
Return value of RestrictedFullVerificationsTest$Dependency.prepare() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 348 Medium
Return value of RestrictedFullVerificationsTest$SubDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 349 Medium
Return value of RestrictedFullVerificationsTest$Dependency.prepare() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 287 Medium
Return value of RestrictedFullVerificationsTest$SubDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 288 Medium
Return value of RestrictedFullVerificationsTest$Dependency.editABunchMoreStuff() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 400 Medium
Return value of RestrictedFullVerificationsTest$Dependency.editABunchMoreStuff() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 419 Medium
Return value of RestrictedFullVerificationsTest$Dependency.prepare() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 225 Medium
Return value of RestrictedFullVerificationsTest$SubDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 226 Medium
Return value of RestrictedFullVerificationsTest$Dependency.prepare() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 306 Medium
Return value of RestrictedFullVerificationsTest$SubDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 307 Medium
Return value of RestrictedFullVerificationsTest$Dependency.prepare() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 268 Medium
Return value of RestrictedFullVerificationsTest$SubDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 269 Medium
Return value of RestrictedFullVerificationsTest$Dependency.editABunchMoreStuff() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 382 Medium
Return value of RestrictedFullVerificationsTest$Dependency.editABunchMoreStuff() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 517 Medium
Return value of RestrictedFullVerificationsTest$Dependency.prepare() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 545 Medium
Return value of RestrictedFullVerificationsTest$AnotherDependency.doSomethingElse(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 440 Medium
Return value of RestrictedFullVerificationsTest$AnotherDependency.staticMethod() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 439 Medium
Return value of RestrictedFullVerificationsTest$Dependency.editABunchMoreStuff() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 441 Medium
Method mockit.RestrictedFullVerificationsTest.lambda$unverifiedStaticInvocationForSpecifiedMockInstance$0(RestrictedFullVerificationsTest$AnotherDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 466 Medium
Method mockit.RestrictedFullVerificationsTest.lambda$unverifiedStaticInvocationForSpecifiedSubclassInstance$0(RestrictedFullVerificationsTest$SubDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 486 Medium
Method mockit.RestrictedFullVerificationsTest.lambda$verifyAllInvocationsToInheritedMethods_whenNotVerified$0(RestrictedFullVerificationsTest$SubDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 252 Medium
Method mockit.RestrictedFullVerificationsTest.lambda$verifyAllInvocationsToMethodsOfBaseClassAndOfSubclass_whenInheritedMethodNotVerified$0(RestrictedFullVerificationsTest$SubDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 330 Medium
Method mockit.RestrictedFullVerificationsTest.lambda$verifyAllInvocationsToMethodsOfBaseClassAndOfSubclass_whenSubclassMethodNotVerified$0(RestrictedFullVerificationsTest$SubDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 351 Medium
Method mockit.RestrictedFullVerificationsTest.lambda$verifyAllInvocationsToSubclassMethods_whenNotVerified$0(RestrictedFullVerificationsTest$SubDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 290 Medium
Method mockit.RestrictedFullVerificationsTest.lambda$verifyAllInvocationsWithSomeMissing$0(RestrictedFullVerificationsTest$AnotherDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 185 Medium
Method mockit.RestrictedFullVerificationsTest.lambda$verifyAllWithReplayOnDifferentInstanceWhenShouldBeSame$0(RestrictedFullVerificationsTest$Dependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 402 Medium
Method mockit.RestrictedFullVerificationsTest.lambda$verifyAllWithUnverifiedReplayOnSameInstance$0(RestrictedFullVerificationsTest$Dependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 422 Medium
Method mockit.RestrictedFullVerificationsTest.verifyAllInvocationsToInheritedMethods(RestrictedFullVerificationsTest$SubDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 228 Medium
Method mockit.RestrictedFullVerificationsTest.verifyAllInvocationsToInheritedMethods(RestrictedFullVerificationsTest$SubDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 233 Medium
Method mockit.RestrictedFullVerificationsTest.verifyAllInvocationsToMethodsOfBaseClassAndOfSubclass(RestrictedFullVerificationsTest$SubDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 309 Medium
Method mockit.RestrictedFullVerificationsTest.verifyAllInvocationsToOnlyOneOfTwoMockedTypes(RestrictedFullVerificationsTest$AnotherDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 148 Medium
Method mockit.RestrictedFullVerificationsTest.verifyAllInvocationsToOnlyOneOfTwoMockedTypes(RestrictedFullVerificationsTest$AnotherDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 160 Medium
Method mockit.RestrictedFullVerificationsTest.verifyAllInvocationsToSubclassMethods(RestrictedFullVerificationsTest$SubDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 271 Medium
Method mockit.RestrictedFullVerificationsTest.verifyAllInvocationsWithReplayOnDifferentInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 366 Medium
Method mockit.RestrictedFullVerificationsTest.verifyAllInvocationsWithReplayOnSameInstance(RestrictedFullVerificationsTest$Dependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 384 Medium
Method mockit.RestrictedFullVerificationsTest.verifyNoInvocationsOccurredOnMockedDependencyWithOneHavingOccurred(RestrictedFullVerificationsTest$AnotherDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 520 Medium
Method mockit.RestrictedFullVerificationsTest.verifyNoInvocationsOccurredOnOneOfTwoMockedDependencies(RestrictedFullVerificationsTest$AnotherDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 504 Medium
Method mockit.RestrictedFullVerificationsTest.verifyNoInvocationsOnOneOfTwoMockedDependenciesBeyondThoseRecordedAsExpected(RestrictedFullVerificationsTest$AnotherDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 537 Medium
Method mockit.RestrictedFullVerificationsTest.verifyNoInvocationsOnOneOfTwoMockedDependenciesBeyondThoseRecordedAsExpected(RestrictedFullVerificationsTest$AnotherDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 551 Medium
Method mockit.RestrictedFullVerificationsTest.verifyOnlyInvocationsToGenericType(Callable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 210 Medium
Method mockit.RestrictedFullVerificationsTest.verifyStaticInvocationForSpecifiedMockInstance(RestrictedFullVerificationsTest$AnotherDependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 444 Medium

mockit.RestrictedFullVerificationsTest$1

Bug Category Details Line Priority
Return value of RestrictedFullVerificationsTest$Dependency.editABunchMoreStuff() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 154 Medium
Return value of RestrictedFullVerificationsTest$Dependency.prepare() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 150 Medium

mockit.RestrictedFullVerificationsTest$10

Bug Category Details Line Priority
Return value of RestrictedFullVerificationsTest$Dependency.prepare() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 311 Medium
Return value of RestrictedFullVerificationsTest$SubDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 312 Medium

mockit.RestrictedFullVerificationsTest$11

Bug Category Details Line Priority
Return value of RestrictedFullVerificationsTest$SubDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 332 Medium

mockit.RestrictedFullVerificationsTest$12

Bug Category Details Line Priority
Return value of RestrictedFullVerificationsTest$Dependency.prepare() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 353 Medium

mockit.RestrictedFullVerificationsTest$13

Bug Category Details Line Priority
Return value of new RestrictedFullVerificationsTest$Dependency() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 368 Medium
Method new mockit.RestrictedFullVerificationsTest$13(RestrictedFullVerificationsTest, Object[]) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 368 Medium

mockit.RestrictedFullVerificationsTest$14

Bug Category Details Line Priority
Return value of RestrictedFullVerificationsTest$Dependency.editABunchMoreStuff() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 386 Medium

mockit.RestrictedFullVerificationsTest$15

Bug Category Details Line Priority
Return value of RestrictedFullVerificationsTest$Dependency.editABunchMoreStuff() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 404 Medium

mockit.RestrictedFullVerificationsTest$16

Bug Category Details Line Priority
Return value of RestrictedFullVerificationsTest$Dependency.editABunchMoreStuff() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 424 Medium

mockit.RestrictedFullVerificationsTest$17

Bug Category Details Line Priority
Return value of RestrictedFullVerificationsTest$AnotherDependency.doSomethingElse(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 448 Medium
Return value of RestrictedFullVerificationsTest$AnotherDependency.staticMethod() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 447 Medium

mockit.RestrictedFullVerificationsTest$19

Bug Category Details Line Priority
Return value of RestrictedFullVerificationsTest$SubDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 488 Medium

mockit.RestrictedFullVerificationsTest$2

Bug Category Details Line Priority
Return value of RestrictedFullVerificationsTest$Dependency.editABunchMoreStuff() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 166 Medium
Return value of RestrictedFullVerificationsTest$Dependency.prepare() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 162 Medium

mockit.RestrictedFullVerificationsTest$3

Bug Category Details Line Priority
Return value of RestrictedFullVerificationsTest$Dependency.prepare() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 187 Medium

mockit.RestrictedFullVerificationsTest$4

Bug Category Details Line Priority
Exception thrown in class mockit.RestrictedFullVerificationsTest$4 at new mockit.RestrictedFullVerificationsTest$4(RestrictedFullVerificationsTest, Object[], Callable) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 212 Medium

mockit.RestrictedFullVerificationsTest$5

Bug Category Details Line Priority
Return value of RestrictedFullVerificationsTest$Dependency.prepare() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 230 Medium

mockit.RestrictedFullVerificationsTest$6

Bug Category Details Line Priority
Return value of RestrictedFullVerificationsTest$Dependency.prepare() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 235 Medium

mockit.RestrictedFullVerificationsTest$7

Bug Category Details Line Priority
Return value of RestrictedFullVerificationsTest$SubDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 254 Medium

mockit.RestrictedFullVerificationsTest$8

Bug Category Details Line Priority
Return value of RestrictedFullVerificationsTest$SubDependency.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 273 Medium

mockit.RestrictedFullVerificationsTest$9

Bug Category Details Line Priority
Return value of RestrictedFullVerificationsTest$Dependency.prepare() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 292 Medium

mockit.RestrictedFullVerificationsTest$Dependency

Bug Category Details Line Priority
Static or private method mockit.RestrictedFullVerificationsTest$Dependency.staticMethod(String) has unused parameters STYLE UP_UNUSED_PARAMETER 73 Medium

mockit.StandardDI2Test$TestedClass

Bug Category Details Line Priority
Exception thrown in class mockit.StandardDI2Test$TestedClass at new mockit.StandardDI2Test$TestedClass() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 33 Medium

mockit.StandardDITest

Bug Category Details Line Priority
Method mockit.StandardDITest.supportVarargsParameterWithProviders(Provider) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 394 Medium
Method mockit.StandardDITest.configureProviderUsedByConstructorOfTestedClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 363 Medium
Method mockit.StandardDITest.supportVarargsParameterWithProviders(Provider) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 381 Medium

mockit.StandardDITest$Collaborator

Bug Category Details Line Priority
Unread field: mockit.StandardDITest$Collaborator.b PERFORMANCE URF_UNREAD_FIELD 100 Medium

mockit.StandardDITest$TestedClass

Bug Category Details Line Priority
Exception thrown in class mockit.StandardDITest$TestedClass at new mockit.StandardDITest$TestedClass(StandardDITest$Collaborator, int) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 91 Medium
Unwritten field: mockit.StandardDITest$TestedClass.collaborator2 CORRECTNESS UWF_UNWRITTEN_FIELD 179 Medium
Unwritten field: mockit.StandardDITest$TestedClass.nonAnnotatedField CORRECTNESS UWF_UNWRITTEN_FIELD 402 Medium
Unwritten field: mockit.StandardDITest$TestedClass.nonAnnotatedGenericField CORRECTNESS UWF_UNWRITTEN_FIELD 403 Medium

mockit.StandardDITest$TestedClassWithVarargsParameterForProviders

Bug Category Details Line Priority
Method new mockit.StandardDITest$TestedClassWithVarargsParameterForProviders(Provider[]) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 336 Medium
Method new mockit.StandardDITest$TestedClassWithVarargsParameterForProviders(Provider[]) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 337 Medium
Method new mockit.StandardDITest$TestedClassWithVarargsParameterForProviders(Provider[]) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 340 Medium

mockit.TargetSubclass

Bug Category Details Line Priority
Return value of additionalMethod(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 284 Medium

mockit.TestedAbstractClassTest

Bug Category Details Line Priority
Method mockit.TestedAbstractClassTest.exerciseDynamicallyMockedTestedObject() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 119 Medium
Method mockit.TestedAbstractClassTest.exerciseDynamicallyMockedTestedObject() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 131 Medium
Method mockit.TestedAbstractClassTest.exerciseTestedObject(String) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 94 Medium
Method mockit.TestedAbstractClassTest.exerciseTestedObject(String) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 104 Medium
Method mockit.TestedAbstractClassTest.exerciseTestedObjectAgain(String) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 153 Medium

mockit.TestedAbstractClassTest$3

Bug Category Details Line Priority
Return value of TestedAbstractClassTest$AbstractClass.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 121 Medium

mockit.TestedAndMockedTest

Bug Category Details Line Priority
Method mockit.TestedAndMockedTest.exercisePublicMethodWhileHavingHelperMethodsMocked() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 142 Medium
Method mockit.TestedAndMockedTest.exercisePublicMethodWhileHavingHelperMethodsMocked() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 148 Medium
Method mockit.TestedAndMockedTest.exercisePublicMethodWhileHavingHelperMethodsMocked() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 159 Medium
Method mockit.TestedAndMockedTest.mockTestedClass(TestedAndMockedTest$ClassToBeTested) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 185 Medium

mockit.TestedAndMockedTest$1

Bug Category Details Line Priority
Return value of TestedAndMockedTest$ClassToBeTested.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 144 Medium

mockit.TestedAndMockedTest$ClassToBeTested

Bug Category Details Line Priority
Read of unwritten field collaborator in mockit.TestedAndMockedTest$ClassToBeTested.doAnotherOperation() CORRECTNESS NP_UNWRITTEN_FIELD 104 Medium
Unwritten field: mockit.TestedAndMockedTest$ClassToBeTested.collaborator CORRECTNESS UWF_UNWRITTEN_FIELD 104 Medium

mockit.TestedClassInjectedFromMockParametersTest

Bug Category Details Line Priority

mockit.TestedClassWithConstructorAndFieldDI2Test$ClassWithConstructorHavingReferenceTypeParameterAndDoubleSizedLocalVar

Bug Category Details Line Priority
Class mockit.TestedClassWithConstructorAndFieldDI2Test$ClassWithConstructorHavingReferenceTypeParameterAndDoubleSizedLocalVar defines a field or local variable named 'var' CORRECTNESS IMC_IMMATURE_CLASS_VAR_NAME 235 Medium

mockit.TestedClassWithConstructorAndFieldDITest

Bug Category Details Line Priority
Method mockit.TestedClassWithConstructorAndFieldDITest.exerciseTestedSubclassObjectWithFieldsInjectedByTypeAndName() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 136 Medium

mockit.TestedClassWithConstructorAndFieldDITest$1

Bug Category Details Line Priority
Return value of BaseTest$Dependency.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 140 Medium

mockit.TestedClassWithConstructorAndFieldDITest$AnotherTestedClass

Bug Category Details Line Priority
Read of unwritten field dependency2 in mockit.TestedClassWithConstructorAndFieldDITest$AnotherTestedClass.doSomeOperation() CORRECTNESS NP_UNWRITTEN_FIELD 105 Medium
Unwritten field: mockit.TestedClassWithConstructorAndFieldDITest$AnotherTestedClass.anotherAction CORRECTNESS UWF_UNWRITTEN_FIELD 130 Medium
Unwritten field: mockit.TestedClassWithConstructorAndFieldDITest$AnotherTestedClass.dependency2 CORRECTNESS UWF_UNWRITTEN_FIELD 105 Medium
Unwritten field: mockit.TestedClassWithConstructorAndFieldDITest$AnotherTestedClass.dependency3 CORRECTNESS UWF_UNWRITTEN_FIELD 133 Medium

mockit.TestedClassWithConstructorDI1Test

Bug Category Details Line Priority
Method mockit.TestedClassWithConstructorDI1Test.exerciseTestedObjectWithAllDependenciesInjectedThroughConstructor(Runnable, Observable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 261 Medium
Method mockit.TestedClassWithConstructorDI1Test.exerciseTestedObjectWithAllDependenciesInjectedThroughConstructor(Runnable, Observable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 270 Medium
Method mockit.TestedClassWithConstructorDI1Test.exerciseTestedObjectWithSingleDependencyInjectedThroughConstructor() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 186 Medium
Method mockit.TestedClassWithConstructorDI1Test.exerciseTestedObjectWithTwoDependenciesInjectedThroughConstructor(Runnable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 206 Medium
Method mockit.TestedClassWithConstructorDI1Test.exerciseTestedObjectWithTwoDependenciesInjectedThroughConstructor(Runnable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 215 Medium
Method mockit.TestedClassWithConstructorDI1Test.exerciseTestedObjectWithTwoOtherDependenciesInjectedThroughConstructor(Observable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 232 Medium
Method mockit.TestedClassWithConstructorDI1Test.exerciseTestedObjectWithTwoOtherDependenciesInjectedThroughConstructor(Observable) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 241 Medium
Write to static field mockit.TestedClassWithConstructorDI1Test$BaseTestedClass.baseCounter from instance method mockit.TestedClassWithConstructorDI1Test.resetCounter() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 283 High
Write to static field mockit.TestedClassWithConstructorDI1Test$TestedClass.counter from instance method mockit.TestedClassWithConstructorDI1Test.resetCounter() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 284 High

mockit.TestedClassWithConstructorDI1Test$1

Bug Category Details Line Priority
Return value of TestedClassWithConstructorDI1Test$Dependency.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 188 Medium

mockit.TestedClassWithConstructorDI1Test$2

Bug Category Details Line Priority
Return value of TestedClassWithConstructorDI1Test$Dependency.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 208 Medium

mockit.TestedClassWithConstructorDI1Test$4

Bug Category Details Line Priority
Return value of TestedClassWithConstructorDI1Test$Dependency.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 234 Medium

mockit.TestedClassWithConstructorDI1Test$6

Bug Category Details Line Priority
Return value of TestedClassWithConstructorDI1Test$Dependency.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 263 Medium

mockit.TestedClassWithConstructorDI1Test$TestedClass

Bug Category Details Line Priority
new mockit.TestedClassWithConstructorDI1Test$TestedClass(TestedClassWithConstructorDI1Test$Dependency, Runnable, Observable) may expose internal representation by storing an externally mutable object into TestedClassWithConstructorDI1Test$TestedClass.observable MALICIOUS_CODE EI_EXPOSE_REP2 118 Medium

mockit.TestedClassWithConstructorDI2Test

Bug Category Details Line Priority
Method mockit.TestedClassWithConstructorDI2Test.exerciseTestedObjectWithDependenciesOfSameTypeInjectedThroughConstructor(TestedClassWithConstructorDI2Test$Dependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 200 Medium
Method mockit.TestedClassWithConstructorDI2Test.resetCounter() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 181 Medium
Write to static field mockit.TestedClassWithConstructorDI2Test$TestedClass.counter from instance method mockit.TestedClassWithConstructorDI2Test.resetCounter() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 180 High

mockit.TestedClassWithConstructorDI2Test$1

Bug Category Details Line Priority
Return value of TestedClassWithConstructorDI2Test$Dependency.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 183 Medium

mockit.TestedClassWithConstructorDI2Test$2

Bug Category Details Line Priority
Return value of TestedClassWithConstructorDI2Test$Dependency.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 202 Medium

mockit.TestedClassWithConstructorDI2Test$TestedClass

Bug Category Details Line Priority
Unconstrained method new mockit.TestedClassWithConstructorDI2Test$TestedClass(TestedClassWithConstructorDI2Test$Dependency, Runnable, TestedClassWithConstructorDI2Test$Dependency, TestedClassWithConstructorDI2Test$Dependency) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 80 High
Method new mockit.TestedClassWithConstructorDI2Test$TestedClass(TestedClassWithConstructorDI2Test$Dependency, Runnable, TestedClassWithConstructorDI2Test$Dependency, TestedClassWithConstructorDI2Test$Dependency) calls InetAddress.getLocalHost(), which may be a security risk CORRECTNESS MDM_INETADDRESS_GETLOCALHOST 77 Medium

mockit.TestedClassWithConstructorDI3Test

Bug Category Details Line Priority
Method mockit.TestedClassWithConstructorDI3Test.exerciseTestedObjectWithDependenciesOfSameTypeInjectedThroughVarargsConstructorParameter() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 101 Medium
Method mockit.TestedClassWithConstructorDI3Test.exerciseTestedObjectWithDependenciesProvidedByMockFieldsAndMockParameter(TestedClassWithConstructorDI3Test$Dependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 123 Medium

mockit.TestedClassWithConstructorDI3Test$1

Bug Category Details Line Priority
Return value of TestedClassWithConstructorDI3Test$Dependency.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 103 Medium

mockit.TestedClassWithConstructorDI3Test$2

Bug Category Details Line Priority
Return value of TestedClassWithConstructorDI3Test$Dependency.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 125 Medium

mockit.TestedClassWithConstructorDI4Test

Bug Category Details Line Priority
Return value of TestedClassWithConstructorDI4Test$GenericClass.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 196 Medium
Method mockit.TestedClassWithConstructorDI4Test.recordCommonExpectations() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 140 Medium
Method mockit.TestedClassWithConstructorDI4Test.recordCommonExpectations() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 147 Medium

mockit.TestedClassWithConstructorDI4Test$1

Bug Category Details Line Priority
Return value of TestedClassWithConstructorDI4Test$GenericClass.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 142 Medium

mockit.TestedClassWithConstructorDI4Test$2

Bug Category Details Line Priority
Exception thrown in class mockit.TestedClassWithConstructorDI4Test$2 at new mockit.TestedClassWithConstructorDI4Test$2(TestedClassWithConstructorDI4Test) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 149 Medium

mockit.TestedClassWithConstructorDI4Test$TestedClass

Bug Category Details Line Priority
Method new mockit.TestedClassWithConstructorDI4Test$TestedClass(TestedClassWithConstructorDI4Test$GenericClass, List, Callable[]) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 92 Medium
Method new mockit.TestedClassWithConstructorDI4Test$TestedClass(TestedClassWithConstructorDI4Test$GenericClass, List, Callable[]) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 95 Medium
new mockit.TestedClassWithConstructorDI4Test$TestedClass(TestedClassWithConstructorDI4Test$GenericClass, List, Callable[]) may expose internal representation by storing an externally mutable object into TestedClassWithConstructorDI4Test$TestedClass.values MALICIOUS_CODE EI_EXPOSE_REP2 89 Medium
Unconstrained method new mockit.TestedClassWithConstructorDI4Test$TestedClass(TestedClassWithConstructorDI4Test$GenericClass, List, Callable[]) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 104 High

mockit.TestedClassWithFieldDITest

Bug Category Details Line Priority
Method mockit.TestedClassWithFieldDITest.exerciseTestedObjectWithFieldInjectedByType() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 175 Medium

mockit.TestedClassWithFieldDITest$1

Bug Category Details Line Priority
Return value of TestedClassWithFieldDITest$Dependency.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 177 Medium

mockit.TestedClassWithFullConstructorAndFieldDITest

Bug Category Details Line Priority
Read of unwritten field dependency1 in mockit.TestedClassWithFullConstructorAndFieldDITest.verifyEachTargetFieldGetsInjectedWithFirstUnusedInjectableWhetherThroughFieldOrConstructorInjection() CORRECTNESS NP_UNWRITTEN_FIELD 80 Medium
Read of unwritten field dependency2 in mockit.TestedClassWithFullConstructorAndFieldDITest.verifyEachTargetFieldGetsInjectedWithFirstUnusedInjectableWhetherThroughFieldOrConstructorInjection() CORRECTNESS NP_UNWRITTEN_FIELD 81 Medium

mockit.TestedClassWithFullConstructorAndFieldDITest$ClassWithMultipleConstructors

Bug Category Details Line Priority
Exception thrown in class mockit.TestedClassWithFullConstructorAndFieldDITest$ClassWithMultipleConstructors at new mockit.TestedClassWithFullConstructorAndFieldDITest$ClassWithMultipleConstructors(int) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 107 Medium

mockit.TestedClassWithFullConstructorDITest

Bug Category Details Line Priority

mockit.TestedClassWithFullDITest

Bug Category Details Line Priority

mockit.TestedClassWithFullMixedFieldDITest

Bug Category Details Line Priority

mockit.TestedClassWithFullStandardDITest

Bug Category Details Line Priority
Exceptional return value of java.io.File.delete() ignored in mockit.TestedClassWithFullStandardDITest.deleteDefaultPersistenceXmlFile() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 735 Medium
Method mockit.TestedClassWithFullStandardDITest.setUpPersistence() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 689 Medium
Write to static field mockit.TestedClassWithFullStandardDITest.defaultEM from instance method mockit.TestedClassWithFullStandardDITest.clearEntityManagers() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 893 High
Write to static field mockit.TestedClassWithFullStandardDITest.namedEM from instance method mockit.TestedClassWithFullStandardDITest.clearEntityManagers() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 892 High

mockit.TestedClassWithFullStandardDITest$1

Bug Category Details Line Priority
Uncallable method mockit.TestedClassWithFullStandardDITest$1.createEntityManagerFactory(String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 692-701 High

mockit.TestedClassWithGenericSubtypesTest

Bug Category Details Line Priority

mockit.TestedClassWithGenericsTest

Bug Category Details Line Priority

mockit.TestedClassWithGenericsTest$ClassWithFieldOfGenericTypeContainingGenericArray

Bug Category Details Line Priority
Unused field: mockit.TestedClassWithGenericsTest$ClassWithFieldOfGenericTypeContainingGenericArray.list PERFORMANCE UUF_UNUSED_FIELD Not available Medium
Unused field: mockit.TestedClassWithGenericsTest$ClassWithFieldOfGenericTypeContainingGenericArray.n PERFORMANCE UUF_UNUSED_FIELD Not available Medium

mockit.TestedClassWithGenericsTest$GenericClass

Bug Category Details Line Priority
Unused field: mockit.TestedClassWithGenericsTest$GenericClass.value PERFORMANCE UUF_UNUSED_FIELD Not available Medium

mockit.TestedClassWithNoDITest

Bug Category Details Line Priority
Method mockit.TestedClassWithNoDITest.exerciseAnotherManuallyInstantiatedTestedObject() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 154 Medium
Method mockit.TestedClassWithNoDITest.exerciseAutomaticallyInstantiatedTestedObject() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 119 Medium
Method mockit.TestedClassWithNoDITest.exerciseManuallyInstantiatedTestedObject() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 134 Medium
Method mockit.TestedClassWithNoDITest.exerciseManuallyInstantiatedTestedObject() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 143 Medium

mockit.TestedClassWithNoDITest$1

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

mockit.TestedClassWithNoDITest$2

Bug Category Details Line Priority
Return value of TestedClassWithNoDITest$Dependency.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 136 Medium

mockit.TestedClassWithNoDITest$4

Bug Category Details Line Priority
Return value of TestedClassWithNoDITest$Dependency.doSomething() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 156 Medium

mockit.TestedClassWithNoPublicConstructorTest$TestedClassWithPrivateConstructor

Bug Category Details Line Priority
Exception thrown in class mockit.TestedClassWithNoPublicConstructorTest$TestedClassWithPrivateConstructor at new mockit.TestedClassWithNoPublicConstructorTest$TestedClassWithPrivateConstructor() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 76 Medium

mockit.TestedFieldExtractionTest

Bug Category Details Line Priority

mockit.TestedFieldExtractionTest$TestedClassWithInitializedFieldsOfVariousTypes

Bug Category Details Line Priority
Unread field: mockit.TestedFieldExtractionTest$TestedClassWithInitializedFieldsOfVariousTypes.name; should this field be static? PERFORMANCE SS_SHOULD_BE_STATIC 115 Medium

mockit.TestedFieldWithFailedConstructorDITest$ClassWithOneParameter

Bug Category Details Line Priority
Unread field: mockit.TestedFieldWithFailedConstructorDITest$ClassWithOneParameter.value PERFORMANCE URF_UNREAD_FIELD 37 Medium

mockit.TestedMethodsTest

Bug Category Details Line Priority
Read of unwritten field service1 in mockit.TestedMethodsTest.createComplexObjectsWithGenericDependencies(TestedMethodsTest$ConcreteService2) CORRECTNESS NP_UNWRITTEN_FIELD 222 Medium

mockit.TestedParametersTest

Bug Category Details Line Priority

mockit.VerificationsInOrderTest

Bug Category Details Line Priority
Dead store to e in mockit.VerificationsInOrderTest.verifyRecordedInvocationThatShouldHappenButDoesNot() STYLE DLS_DEAD_LOCAL_STORE 178 Medium
Method mockit.VerificationsInOrderTest.lambda$verifyInvocationNotExpectedToOccurButWhichDoes$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 338 Medium
Method mockit.VerificationsInOrderTest.lambda$verifyRecordedInvocationThatShouldHappenButDoesNot$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 179 Medium
Method mockit.VerificationsInOrderTest.lambda$verifyRepeatingInvocationThatOccursOneTimeMoreThanExpected$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 304 Medium
Method mockit.VerificationsInOrderTest.lambda$verifySimpleInvocationsWhenOutOfOrder$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 269 Medium
Method mockit.VerificationsInOrderTest.lambda$verifyUnrecordedInvocationThatShouldHappenButDoesNot$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 136 Medium
Method mockit.VerificationsInOrderTest.lambda$verifyUnrecordedInvocationThatShouldHappenExactlyOnceButDoesNot$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 152 Medium
Method mockit.VerificationsInOrderTest.lambda$verifyWithArgumentMatcherAndIndividualInvocationCountWhenOutOfOrder$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 433 Medium
Method mockit.VerificationsInOrderTest.lambda$verifyWithArgumentMatchersWhenOutOfOrder$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 412 Medium
Method mockit.VerificationsInOrderTest.verifyAllInvocationsWithSomeOfThemRecorded() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 193 Medium
Method mockit.VerificationsInOrderTest.verifyAllInvocationsWithSomeOfThemRecorded() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 202 Medium
Method mockit.VerificationsInOrderTest.verifyInvocationThatIsAllowedToHappenAnyNumberOfTimesAndHappensOnce() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 252 Medium
Method mockit.VerificationsInOrderTest.verifyInvocationsWithExactInvocationCountsHavingRecordedMatchingExpectationWithArgumentMatcher() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 224 Medium
Method mockit.VerificationsInOrderTest.verifyInvocationsWithExactInvocationCountsHavingRecordedMatchingExpectationWithArgumentMatcher() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 233 Medium
Method mockit.VerificationsInOrderTest.verifyRecordedInvocationThatShouldHappenButDoesNot() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 167 Medium
Method mockit.VerificationsInOrderTest.verifyRepeatingInvocation() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 287 Medium
Method mockit.VerificationsInOrderTest.verifyRepeatingInvocationUsingMatcher() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 321 Medium
Method mockit.VerificationsInOrderTest.verifySecondSequenceOfInvocationsWithTimesConstraintAfterVerifyingLastInvocationOfFirstSequence() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 512 Medium
Method mockit.VerificationsInOrderTest.verifySecondSequenceOfInvocationsWithTimesConstraintAfterVerifyingLastInvocationOfFirstSequence() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 519 Medium
Method mockit.VerificationsInOrderTest.verifySimpleInvocations() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 119 Medium
Method mockit.VerificationsInOrderTest.verifyTwoIndependentSequencesOfInvocationsWhichAreMixedTogether() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 486 Medium
Method mockit.VerificationsInOrderTest.verifyTwoIndependentSequencesOfInvocationsWhichAreMixedTogether() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 494 Medium
Method mockit.VerificationsInOrderTest.verifyTwoIndependentSequencesOfInvocationsWhichOccurSeparately() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 459 Medium
Method mockit.VerificationsInOrderTest.verifyTwoIndependentSequencesOfInvocationsWhichOccurSeparately() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 467 Medium
Method mockit.VerificationsInOrderTest.verifyUsingInvocationCountConstraintAndArgumentMatcherOnObjectWithMockedHashCode(VerificationsInOrderTest$ClassWithHashCode) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 393 Medium
Method mockit.VerificationsInOrderTest.verifyWithArgumentMatcher() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 356 Medium
Method mockit.VerificationsInOrderTest.verifyWithIndividualInvocationCountsForNonConsecutiveInvocations() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 371 Medium

mockit.VerificationsTest

Bug Category Details Line Priority
Dead store to e in mockit.VerificationsTest.verifyRecordedInvocationThatNeverHappens() STYLE DLS_DEAD_LOCAL_STORE 142 Medium
Method mockit.VerificationsTest.lambda$verifyInvocationThatMatchesExpectationRecordedWithAnyMatcherButWithArgumentValueWhichDidNotOccur$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 368 Medium
Method mockit.VerificationsTest.lambda$verifyInvocationThatMatchesExpectationRecordedWithAnyMatcherButWithArgumentValueWhichDidNotOccur$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 376 Medium
Method mockit.VerificationsTest.lambda$verifyInvocationThatShouldNotOccurButDid$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 254 Medium
Method mockit.VerificationsTest.lambda$verifyInvocationsWithInvocationCountLargerThanOccurred$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 212 Medium
Method mockit.VerificationsTest.lambda$verifyInvocationsWithInvocationCountSmallerThanOccurred$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 234 Medium
Method mockit.VerificationsTest.lambda$verifyRecordedInvocationThatNeverHappens$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 143 Medium
Method mockit.VerificationsTest.lambda$verifyThroughCapturedArguments$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 327 Medium
Method mockit.VerificationsTest.lambda$verifyUnrecordedInvocationThatNeverHappens$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 117 Medium
Method mockit.VerificationsTest.lambda$verifyUnrecordedInvocationThatShouldHappenButDoesNot$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 176 Medium
Method mockit.VerificationsTest.lambda$verifyWithCustomArgumentMatcher$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 348 Medium
Method mockit.VerificationsTest.verifyInvocationThatIsAllowedToHappenOnceOrMoreAndHappensOnce() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 160 Medium
Method mockit.VerificationsTest.verifyInvocationsWithInvocationCount() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 194 Medium
Method mockit.VerificationsTest.verifyRecordedInvocationThatNeverHappens() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 131 Medium
Method mockit.VerificationsTest.verifySimpleInvocations() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 98 Medium
Method mockit.VerificationsTest.verifyWithArgumentMatcher() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 272 Medium
Method mockit.VerificationsTest.verifyWithArgumentMatcherAndIndividualInvocationCounts() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 286 Medium
Method mockit.VerificationsTest.verifyWithCustomArgumentMatcherWithoutArgumentValue() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 307 Medium
Method mockit.VerificationsTest.verityTwoInvocationsToMethodMatchedOnSpecificInstanceWithNoArgumentMatchers(VerificationsTest$Dependency) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 396 Medium

mockit.VerificationsTest$13$1

Bug Category Details Line Priority
Uncallable method mockit.VerificationsTest$13$1.isNotEmpty(String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 312 Medium

mockit.VerificationsTest$15$1

Bug Category Details Line Priority
Uncallable method mockit.VerificationsTest$15$1.isEmpty(String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 353 Medium

mockit.VerificationsWithSomeArgumentMatchersTest

Bug Category Details Line Priority
Return value of VerificationsWithSomeArgumentMatchersTest$Collaborator.anotherOperation(byte, long) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 194 Medium
Return value of VerificationsWithSomeArgumentMatchersTest$Collaborator.staticBooleanMethod(boolean, String, int[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 198 Medium
Return value of VerificationsWithSomeArgumentMatchersTest$Collaborator.booleanValues(long, byte, double, short) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 273 Medium
Return value of VerificationsWithSomeArgumentMatchersTest$Collaborator.staticLongValues(long, byte, double, char) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 275 Medium
Return value of VerificationsWithSomeArgumentMatchersTest$Collaborator.staticLongValues(long, byte, double, char) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 314 Medium
Method mockit.VerificationsWithSomeArgumentMatchersTest.lambda$useMatcherOnlyForFirstArgumentWithUnexpectedReplayValue$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 225 Medium
Method mockit.VerificationsWithSomeArgumentMatchersTest.lambda$useMatcherOnlyForLastArgumentWithUnexpectedReplayValue$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 259 Medium
Method mockit.VerificationsWithSomeArgumentMatchersTest.lambda$useMatcherOnlyForSecondArgumentWithUnexpectedReplayValue$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 242 Medium
Method mockit.VerificationsWithSomeArgumentMatchersTest.useAnyIntField() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 294 Medium
Method mockit.VerificationsWithSomeArgumentMatchersTest.useMatcherOnlyForOneArgument() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 200 Medium
Method mockit.VerificationsWithSomeArgumentMatchersTest.useMatchersForParametersOfAllSizes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 277 Medium
Method mockit.VerificationsWithSomeArgumentMatchersTest.useMatchersInInvocationsToInterfaceMethods(VerificationsWithSomeArgumentMatchersTest$Scheduler) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 385 Medium
Method mockit.VerificationsWithSomeArgumentMatchersTest.useMatchersInInvocationsToInterfaceMethods(VerificationsWithSomeArgumentMatchersTest$Scheduler) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 392 Medium
Method mockit.VerificationsWithSomeArgumentMatchersTest.useSeveralAnyFields() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 317 Medium
Method mockit.VerificationsWithSomeArgumentMatchersTest.useWithMethodsMixedWithAnyFields() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 344 Medium

mockit.VerificationsWithSomeArgumentMatchersTest$1

Bug Category Details Line Priority
Return value of VerificationsWithSomeArgumentMatchersTest$Collaborator.anotherOperation(byte, long) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 207 Medium
Return value of VerificationsWithSomeArgumentMatchersTest$Collaborator.staticBooleanMethod(boolean, String, int[]) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 211 Medium

mockit.VerificationsWithSomeArgumentMatchersTest$5

Bug Category Details Line Priority
Return value of VerificationsWithSomeArgumentMatchersTest$Collaborator.booleanValues(long, byte, double, short) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 280 Medium
Return value of VerificationsWithSomeArgumentMatchersTest$Collaborator.staticLongValues(long, byte, double, char) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 282 Medium

mockit.VerificationsWithSomeArgumentMatchersTest$7

Bug Category Details Line Priority
Return value of VerificationsWithSomeArgumentMatchersTest$Collaborator.staticLongValues(long, byte, double, char) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 326 Medium

mockit.VerificationsWithSomeArgumentMatchersTest$Collaborator

Bug Category Details Line Priority
Static or private method mockit.VerificationsWithSomeArgumentMatchersTest$Collaborator.staticBooleanMethod(boolean, String, int[]) has unused parameters STYLE UP_UNUSED_PARAMETER 176 Medium
Static or private method mockit.VerificationsWithSomeArgumentMatchersTest$Collaborator.staticBooleanMethod(boolean, String, int[]) has unused parameters STYLE UP_UNUSED_PARAMETER 176 Medium
Static or private method mockit.VerificationsWithSomeArgumentMatchersTest$Collaborator.staticBooleanMethod(boolean, String, int[]) has unused parameters STYLE UP_UNUSED_PARAMETER 176 Medium
Static or private method mockit.VerificationsWithSomeArgumentMatchersTest$Collaborator.staticLongValues(long, byte, double, char) has unused parameters STYLE UP_UNUSED_PARAMETER 120 Medium
Static or private method mockit.VerificationsWithSomeArgumentMatchersTest$Collaborator.staticLongValues(long, byte, double, char) has unused parameters STYLE UP_UNUSED_PARAMETER 120 Medium
Static or private method mockit.VerificationsWithSomeArgumentMatchersTest$Collaborator.staticLongValues(long, byte, double, char) has unused parameters STYLE UP_UNUSED_PARAMETER 120 Medium
Static or private method mockit.VerificationsWithSomeArgumentMatchersTest$Collaborator.staticLongValues(long, byte, double, char) has unused parameters STYLE UP_UNUSED_PARAMETER 120 Medium
Static or private method mockit.VerificationsWithSomeArgumentMatchersTest$Collaborator.staticSetValues(long, byte, double, short) has unused parameters STYLE UP_UNUSED_PARAMETER 103 Medium
Static or private method mockit.VerificationsWithSomeArgumentMatchersTest$Collaborator.staticSetValues(long, byte, double, short) has unused parameters STYLE UP_UNUSED_PARAMETER 103 Medium
Static or private method mockit.VerificationsWithSomeArgumentMatchersTest$Collaborator.staticSetValues(long, byte, double, short) has unused parameters STYLE UP_UNUSED_PARAMETER 103 Medium
Static or private method mockit.VerificationsWithSomeArgumentMatchersTest$Collaborator.staticSetValues(long, byte, double, short) has unused parameters STYLE UP_UNUSED_PARAMETER 103 Medium
Static or private method mockit.VerificationsWithSomeArgumentMatchersTest$Collaborator.staticVoidMethod(long, char, float) has unused parameters STYLE UP_UNUSED_PARAMETER 161 Medium
Static or private method mockit.VerificationsWithSomeArgumentMatchersTest$Collaborator.staticVoidMethod(long, char, float) has unused parameters STYLE UP_UNUSED_PARAMETER 161 Medium
Static or private method mockit.VerificationsWithSomeArgumentMatchersTest$Collaborator.staticVoidMethod(long, char, float) has unused parameters STYLE UP_UNUSED_PARAMETER 161 Medium

mockit.WithCaptureTest

Bug Category Details Line Priority
Private or static method mockit.WithCaptureTest.getData() only returns one constant value STYLE MRC_METHOD_RETURNS_CONSTANT 680 Medium
Return value of WithCaptureTest$PersonDAO.create(String, int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 253 Medium
Return value of WithCaptureTest$PersonDAO.create(String, int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 711 Medium
Return value of WithCaptureTest$PersonDAO.create(String, int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 724 Medium
Return value of WithCaptureTest$PersonDAO.create(String, int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 436 Medium
Return value of new WithCaptureTest$PersonDAO() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 863 Medium
Return value of WithCaptureTest$PersonDAO.create(String, int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 814 Medium
Method mockit.WithCaptureTest.attemptToCaptureArgumentsIntoFields() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 484 Medium
Method mockit.WithCaptureTest.captureArgumentFromLastMatchingInvocationToLocalVariable() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 256 Medium
Method mockit.WithCaptureTest.captureArgumentOfPrimitiveTypeToLocalVariableOfPrimitiveType() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 404 Medium
Method mockit.WithCaptureTest.captureArgumentOfPrimitiveTypeToLocalVariableOfReferenceType() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 420 Medium
Method mockit.WithCaptureTest.captureArgumentOfReferenceTypeToLocalVariableOfPrimitiveType() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 304 Medium
Method mockit.WithCaptureTest.captureArgumentOfWrapperTypeToLocalVariableOfPrimitiveType() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 272 Medium
Method mockit.WithCaptureTest.captureArgumentToVariableOfSpecificSubtypeForSeparateInvocations() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 341 Medium
Method mockit.WithCaptureTest.captureArgumentsForInvocationAlreadyMatchedByRecordedExpectation() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 524 Medium
Method mockit.WithCaptureTest.captureArgumentsForInvocationAlreadyMatchedByRecordedExpectation() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 532 Medium
Method mockit.WithCaptureTest.captureArgumentsFromConsecutiveMatchingInvocations() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 562 Medium
Method mockit.WithCaptureTest.captureArgumentsIntoAListOfASubtypeOfTheCapturedParameterType() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 970 Medium
Method mockit.WithCaptureTest.captureArgumentsIntoListInExpectationBlock() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 692 Medium
Method mockit.WithCaptureTest.captureArgumentsIntoListInVerificationBlock() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 729 Medium
Method mockit.WithCaptureTest.captureArgumentsToLocalVariables() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 439 Medium
Method mockit.WithCaptureTest.captureArgumentsWhileMixingAnyFieldsAndLiteralValuesAndCallsToOtherMethods() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 657 Medium
Method mockit.WithCaptureTest.captureArrayArguments() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 606 Medium
Method mockit.WithCaptureTest.captureArrayArgumentsToVariablesWithSpecificElementSubtypes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 380 Medium
Method mockit.WithCaptureTest.captureFirstArgumentInTwoParameterMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 506 Medium
Method mockit.WithCaptureTest.captureListArgumentsFromMultipleInvocations() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 991 Medium
Method mockit.WithCaptureTest.captureMultipleNewInstances(WithCaptureTest$Person) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 791 Medium
Method mockit.WithCaptureTest.captureNewInstancesAfterVerifyingNewInstanceOfDifferentType(WithCaptureTest$Person) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 863 Medium
Method mockit.WithCaptureTest.captureNewInstancesAfterVerifyingNewInstanceOfDifferentType(WithCaptureTest$Person) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 867 Medium
Method mockit.WithCaptureTest.captureNewedInstance(WithCaptureTest$Person) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 767 Medium
Method mockit.WithCaptureTest.captureNullArgumentOfWrapperTypeToLocalVariableOfSameWrapperType() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 288 Medium
Method mockit.WithCaptureTest.captureNullIntoAListDuringVerification() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 320 Medium
Method mockit.WithCaptureTest.captureTwoSetsOfNewInstancesOfTheSameType(WithCaptureTest$Person) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 844 Medium
Method mockit.WithCaptureTest.captureVarargsParameter() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 627 Medium
Method mockit.WithCaptureTest.captureVarargsValuesFromAllInvocations(WithCaptureTest$ClassWithVarargsMethod) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 945 Medium
Method mockit.WithCaptureTest.lambda$attemptToCaptureArgumentForInvocationThatNeverOccurred_ordered$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 903 Medium
Method mockit.WithCaptureTest.lambda$attemptToCaptureArgumentForInvocationThatNeverOccurred_unordered$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 884 Medium
Method mockit.WithCaptureTest.lambda$attemptToCaptureNewInstanceWhenThereWasNone$0() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 816 Medium

mockit.WithCaptureTest$1

Bug Category Details Line Priority
Return value of WithCaptureTest$PersonDAO.create(String, int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 259 Medium

mockit.WithCaptureTest$10

Bug Category Details Line Priority
Return value of WithCaptureTest$PersonDAO.create(String, int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 448 Medium

mockit.WithCaptureTest$18

Bug Category Details Line Priority
Exception thrown in class mockit.WithCaptureTest$18 at new mockit.WithCaptureTest$18(WithCaptureTest) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 664 Medium

mockit.WithCaptureTest$19

Bug Category Details Line Priority
Return value of WithCaptureTest$PersonDAO.create(String, int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 695 Medium

mockit.WithCaptureTest$20

Bug Category Details Line Priority
Return value of WithCaptureTest$PersonDAO.create(String, int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 734 Medium

mockit.WithCaptureTest$23

Bug Category Details Line Priority
Return value of Verifications.withCapture(Object) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 822 Medium

mockit.WithCaptureTest$25

Bug Category Details Line Priority
Return value of new WithCaptureTest$PersonDAO() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 869 Medium
Method new mockit.WithCaptureTest$25(WithCaptureTest, WithCaptureTest$Person, WithCaptureTest$Person) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 869 Medium

mockit.asm.AnnotatedReader

Bug Category Details Line Priority
Suspicious comparison of Boolean references in mockit.asm.AnnotatedReader.readAttributes() BAD_PRACTICE RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN 62 Medium
Switch statement found in mockit.asm.AnnotatedReader.readAttributes() where default case is missing STYLE SF_SWITCH_NO_DEFAULT 68-76 Medium

mockit.asm.BaseWriter

Bug Category Details Line Priority
mockit.asm.BaseWriter.getConstantPoolGeneration() may expose internal representation by returning BaseWriter.cp MALICIOUS_CODE EI_EXPOSE_REP 57 Medium
Class mockit.asm.BaseWriter 'overloads' a method with both instance and static versions STYLE MOM_MISLEADING_OVERLOAD_MODEL 152-157 Medium

mockit.asm.annotations.AnnotationReader

Bug Category Details Line Priority
Switch statement found in mockit.asm.annotations.AnnotationReader.readAnnotationValue(String, AnnotationVisitor) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 71-82 Medium
Method mockit.asm.annotations.AnnotationReader.getArrayElementValue(int, int) returns more specific type of object than declared STYLE URV_CHANGE_RETURN_TYPE 201 Medium

mockit.asm.annotations.AnnotationVisitor

Bug Category Details Line Priority
new mockit.asm.annotations.AnnotationVisitor(ConstantPoolGeneration, String) may expose internal representation by storing an externally mutable object into AnnotationVisitor.cp MALICIOUS_CODE EI_EXPOSE_REP2 69 Medium
mockit.asm.annotations.AnnotationVisitor.setNext(AnnotationVisitor) may expose internal representation by storing an externally mutable object into AnnotationVisitor.next MALICIOUS_CODE EI_EXPOSE_REP2 93 Medium
Class mockit.asm.annotations.AnnotationVisitor 'overloads' a method with both instance and static versions STYLE MOM_MISLEADING_OVERLOAD_MODEL 373-379 Medium

mockit.asm.classes.ClassReader

Bug Category Details Line Priority
mockit.asm.classes.ClassReader.accept(ClassVisitor) may expose internal representation by storing an externally mutable object into ClassReader.cv MALICIOUS_CODE EI_EXPOSE_REP2 98 Medium
Method mockit.asm.classes.ClassReader.readAttribute(String) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 140 Medium
Method mockit.asm.classes.ClassReader.readAttribute(String) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 144 Medium
Method mockit.asm.classes.ClassReader.readAttribute(String) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 149 Medium
Method mockit.asm.classes.ClassReader.readAttribute(String) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 154 Medium
Method mockit.asm.classes.ClassReader.readAttribute(String) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 159 Medium
Method mockit.asm.classes.ClassReader.readAttribute(String) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 164 Medium
Method mockit.asm.classes.ClassReader.readAttribute(String) returns null for Boolean type STYLE TBP_TRISTATE_BOOLEAN_PATTERN 167 Medium

mockit.asm.classes.ClassWriter

Bug Category Details Line Priority
Class mockit.asm.classes.ClassWriter has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 35-303 Medium
Class mockit.asm.classes.ClassWriter has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 35-303 Medium

mockit.asm.classes.ConstantPoolCopying

Bug Category Details Line Priority
Method mockit.asm.classes.ConstantPoolCopying.copyPool(BootstrapMethodsWriter) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 80 Medium

mockit.asm.constantPool.ConstantPoolGeneration

Bug Category Details Line Priority
mockit.asm.constantPool.ConstantPoolGeneration.copy(byte[], int, int, Item[]) may expose internal representation by storing an externally mutable object into ConstantPoolGeneration.items MALICIOUS_CODE EI_EXPOSE_REP2 736 Medium
Class mockit.asm.constantPool.ConstantPoolGeneration 'overloads' a method with both instance and static versions STYLE MOM_MISLEADING_OVERLOAD_MODEL 704-710 Medium

mockit.asm.constantPool.Item

Bug Category Details Line Priority
mockit.asm.constantPool.Item.getNext() may expose internal representation by returning Item.next MALICIOUS_CODE EI_EXPOSE_REP 99 Medium

mockit.asm.constantPool.ModuleItem

Bug Category Details Line Priority
Non-null field strVal is not initialized by new mockit.asm.constantPool.ModuleItem(int, int, String) CORRECTNESS NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR 23-25 Medium

mockit.asm.constantPool.PackageItem

Bug Category Details Line Priority
Non-null field strVal is not initialized by new mockit.asm.constantPool.PackageItem(int, int, String) CORRECTNESS NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR 23-25 Medium

mockit.asm.constantPool.StringItem

Bug Category Details Line Priority
Non-null field strVal is not initialized by new mockit.asm.constantPool.StringItem(int, int, String) CORRECTNESS NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR 23-25 Medium

mockit.asm.controlFlow.CFGAnalysis

Bug Category Details Line Priority
mockit.asm.controlFlow.CFGAnalysis.getLabelForCurrentBasicBlock() may expose internal representation by returning CFGAnalysis.currentBlock MALICIOUS_CODE EI_EXPOSE_REP 115 Medium
mockit.asm.controlFlow.CFGAnalysis.getLabelForFirstBasicBlock() may expose internal representation by returning CFGAnalysis.labels MALICIOUS_CODE EI_EXPOSE_REP 106 Medium
new mockit.asm.controlFlow.CFGAnalysis(ConstantPoolGeneration, String, ByteVector, boolean) may expose internal representation by storing an externally mutable object into CFGAnalysis.code MALICIOUS_CODE EI_EXPOSE_REP2 96 Medium
new mockit.asm.controlFlow.CFGAnalysis(ConstantPoolGeneration, String, ByteVector, boolean) may expose internal representation by storing an externally mutable object into CFGAnalysis.cp MALICIOUS_CODE EI_EXPOSE_REP2 94 Medium
mockit.asm.controlFlow.CFGAnalysis.updateCurrentBlockForLabelBeforeNextInstruction(Label) may expose internal representation by storing an externally mutable object into CFGAnalysis.currentBlock MALICIOUS_CODE EI_EXPOSE_REP2 328 Medium
mockit.asm.controlFlow.CFGAnalysis.updateCurrentBlockForLabelBeforeNextInstruction(Label) may expose internal representation by storing an externally mutable object into CFGAnalysis.previousBlock MALICIOUS_CODE EI_EXPOSE_REP2 365 Medium

mockit.asm.controlFlow.Edge

Bug Category Details Line Priority
new mockit.asm.controlFlow.Edge(int, Label) may expose internal representation by storing an externally mutable object into Edge.successor MALICIOUS_CODE EI_EXPOSE_REP2 47 Medium
mockit.asm.controlFlow.Edge.setNext(Edge) may expose internal representation by storing an externally mutable object into Edge.next MALICIOUS_CODE EI_EXPOSE_REP2 54 Medium

mockit.asm.controlFlow.Frame

Bug Category Details Line Priority
Method mockit.asm.controlFlow.Frame.execute(int) is excessively complex, with a cyclomatic complexity of 126 STYLE CC_CYCLOMATIC_COMPLEXITY 641 High
Method mockit.asm.controlFlow.Frame.executeLDC(Item) is excessively complex, with a cyclomatic complexity of 61 STYLE CC_CYCLOMATIC_COMPLEXITY 915 Medium
Class mockit.asm.controlFlow.Frame defines a field or local variable named 'var' CORRECTNESS IMC_IMMATURE_CLASS_VAR_NAME 1136 Medium
Class mockit.asm.controlFlow.Frame defines a field or local variable named 'var' CORRECTNESS IMC_IMMATURE_CLASS_VAR_NAME 462 Medium
Switch statement found in mockit.asm.controlFlow.Frame.execute(int) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 641-834 Medium
Switch statement found in mockit.asm.controlFlow.Frame.execute(int, TypeOrMemberItem) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 1105-1124 Medium
Switch statement found in mockit.asm.controlFlow.Frame.executeJUMP(int) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 612-631 Medium
Switch statement found in mockit.asm.controlFlow.Frame.executeNewArray(int) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 347-370 Medium
Switch statement found in mockit.asm.controlFlow.Frame.executeTYPE(int, int, StringItem) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 1022-1034 Medium
Switch statement found in mockit.asm.controlFlow.Frame.executeVAR(int, int) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 527-552 Medium

mockit.asm.controlFlow.Label

Bug Category Details Line Priority
mockit.asm.controlFlow.Label.getFrame() may expose internal representation by returning Label.frame MALICIOUS_CODE EI_EXPOSE_REP 175 Medium
mockit.asm.controlFlow.Label.getSuccessor() may expose internal representation by returning Label.successor MALICIOUS_CODE EI_EXPOSE_REP 354 Medium
mockit.asm.controlFlow.Label.setSuccessors(Edge) may expose internal representation by returning Label.successor MALICIOUS_CODE EI_EXPOSE_REP 361 Medium
mockit.asm.controlFlow.Label.setSuccessors(Edge) may expose internal representation by storing an externally mutable object into Label.successors MALICIOUS_CODE EI_EXPOSE_REP2 360 Medium
Primitive field mockit.asm.controlFlow.Label.position is public and set from inside the class, which makes it too exposed. Consider making it private to limit external accessibility. BAD_PRACTICE PA_PUBLIC_PRIMITIVE_ATTRIBUTE 66 Medium

mockit.asm.controlFlow.StackMapTableWriter

Bug Category Details Line Priority
Method mockit.asm.controlFlow.StackMapTableWriter.getNumLocals() accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 163 Medium
Method mockit.asm.controlFlow.StackMapTableWriter.getStackSize() accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 172 Medium
Method mockit.asm.controlFlow.StackMapTableWriter.writeFrameForJava6OrNewer(int, int) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 269 Medium
Class mockit.asm.controlFlow.StackMapTableWriter defines two or more one for one associated lists or arrays STYLE PL_PARALLEL_LISTS 343 Medium

mockit.asm.exceptionHandling.ExceptionHandler

Bug Category Details Line Priority

mockit.asm.exceptionHandling.ExceptionHandling

Bug Category Details Line Priority
new mockit.asm.exceptionHandling.ExceptionHandling(ConstantPoolGeneration) may expose internal representation by storing an externally mutable object into ExceptionHandling.cp MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium

mockit.asm.fields.FieldReader

Bug Category Details Line Priority
new mockit.asm.fields.FieldReader(ClassReader, ClassVisitor) may expose internal representation by storing an externally mutable object into FieldReader.cv MALICIOUS_CODE EI_EXPOSE_REP2 25 Medium
Class mockit.asm.fields.FieldReader has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 24-71 Medium
Method mockit.asm.fields.FieldReader.readAttribute(String) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 68 Medium
Method mockit.asm.fields.FieldReader.readAttribute(String) returns null for Boolean type STYLE TBP_TRISTATE_BOOLEAN_PATTERN 71 Medium

mockit.asm.jvmConstants.JVMInstruction

Bug Category Details Line Priority
mockit.asm.jvmConstants.JVMInstruction.SIZE is a mutable array MALICIOUS_CODE MS_MUTABLE_ARRAY 30 Medium
mockit.asm.jvmConstants.JVMInstruction.TYPE is a mutable array MALICIOUS_CODE MS_MUTABLE_ARRAY 77 Medium

mockit.asm.metadata.ClassMetadataReader

Bug Category Details Line Priority
new mockit.asm.metadata.ClassMetadataReader(byte[], EnumSet) may expose internal representation by storing an externally mutable object into ClassMetadataReader.attributesToRead MALICIOUS_CODE EI_EXPOSE_REP2 99 Medium
new mockit.asm.metadata.ClassMetadataReader(byte[], EnumSet) may expose internal representation by storing an externally mutable object into ClassMetadataReader.code MALICIOUS_CODE EI_EXPOSE_REP2 95 Medium
Return value of readUnsignedShort(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 362 High
Method call in mockit.asm.metadata.ClassMetadataReader.getAnnotations() passes object that the method is called on as a parameter CORRECTNESS SPP_PASSING_THIS_AS_PARM 641 Medium

mockit.asm.methods.LocalVariableTableWriter

Bug Category Details Line Priority
Class mockit.asm.methods.LocalVariableTableWriter 'overloads' a method with both instance and static versions STYLE MOM_MISLEADING_OVERLOAD_MODEL 92 Medium

mockit.asm.methods.MethodReader

Bug Category Details Line Priority
new mockit.asm.methods.MethodReader(ClassReader, ClassVisitor) may expose internal representation by storing an externally mutable object into MethodReader.cv MALICIOUS_CODE EI_EXPOSE_REP2 89 Medium
Class mockit.asm.methods.MethodReader has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 87-720 Medium
Method mockit.asm.methods.MethodReader.readAttribute(String) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 134 Medium
Method mockit.asm.methods.MethodReader.readAttribute(String) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 137 Medium
Method mockit.asm.methods.MethodReader.readAttribute(String) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 140 Medium
Switch statement found in mockit.asm.methods.MethodReader.readBytecodeInstructionsInCodeBlock(int, int) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 446-497 Medium
Switch statement found in mockit.asm.methods.MethodReader.readLabelsForNonSwitchInstruction(int, byte) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 327-360 Medium
Method mockit.asm.methods.MethodReader.readAttribute(String) returns null for Boolean type STYLE TBP_TRISTATE_BOOLEAN_PATTERN 142 Medium

mockit.asm.types.JavaType

Bug Category Details Line Priority
Class mockit.asm.types.JavaType 'overloads' a method with both instance and static versions STYLE MOM_MISLEADING_OVERLOAD_MODEL 293-306 Medium

mockit.asm.types.PrimitiveType

Bug Category Details Line Priority
Class mockit.asm.types.PrimitiveType has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 27-194 Medium
Hard coded password found SECURITY HARD_CODE_PASSWORD 27-194 Medium
Class mockit.asm.types.PrimitiveType 'overloads' a method with both instance and static versions STYLE MOM_MISLEADING_OVERLOAD_MODEL 146 Medium
Class mockit.asm.types.PrimitiveType defines two or more one for one associated lists or arrays STYLE PL_PARALLEL_LISTS 69 Medium
Simple field mockit.asm.types.PrimitiveType.constOpcode is used like an enum STYLE PME_POOR_MANS_ENUM 75 Medium
Simple field mockit.asm.types.PrimitiveType.loadOpcode is used like an enum STYLE PME_POOR_MANS_ENUM 74 Medium
Simple field mockit.asm.types.PrimitiveType.loadOrStoreOffset is used like an enum STYLE PME_POOR_MANS_ENUM 72 Medium
Simple field mockit.asm.types.PrimitiveType.size is used like an enum STYLE PME_POOR_MANS_ENUM 73 Medium
Instance field mockit.asm.types.PrimitiveType.constOpcode likely could be defined as static CORRECTNESS SPP_FIELD_COULD_BE_STATIC Not available Medium
Instance field mockit.asm.types.PrimitiveType.loadOpcode likely could be defined as static CORRECTNESS SPP_FIELD_COULD_BE_STATIC Not available Medium
Instance field mockit.asm.types.PrimitiveType.loadOrStoreOffset likely could be defined as static CORRECTNESS SPP_FIELD_COULD_BE_STATIC Not available Medium
Instance field mockit.asm.types.PrimitiveType.size likely could be defined as static CORRECTNESS SPP_FIELD_COULD_BE_STATIC Not available Medium

mockit.asm.types.ReferenceType

Bug Category Details Line Priority
Class mockit.asm.types.ReferenceType has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 29-178 Medium
Class mockit.asm.types.ReferenceType has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 29-178 Medium
Class mockit.asm.types.ReferenceType has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 29-178 Medium
Class mockit.asm.types.ReferenceType has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 29-178 Medium
The method 'getDescriptor(StringBuilder, Class)' in class 'ReferenceType' hides a method in class 'JavaType'. Declare the respective methods non-static or private to eradicate the problem. CORRECTNESS HSM_HIDING_METHOD 94 Medium
Class mockit.asm.types.ReferenceType 'overloads' a method with both instance and static versions STYLE MOM_MISLEADING_OVERLOAD_MODEL 109-110 Medium

mockit.asm.util.ByteVector

Bug Category Details Line Priority
mockit.asm.util.ByteVector.getData() may expose internal representation by returning ByteVector.data MALICIOUS_CODE EI_EXPOSE_REP 49 Medium

mockit.asm.util.BytecodeReader

Bug Category Details Line Priority
Exception thrown in class mockit.asm.util.BytecodeReader at new mockit.asm.util.BytecodeReader(byte[]) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 80 Medium
Primitive field mockit.asm.util.BytecodeReader.codeIndex is public and set from inside the class, which makes it too exposed. Consider making it private to limit external accessibility. BAD_PRACTICE PA_PUBLIC_PRIMITIVE_ATTRIBUTE 74 Medium
Method mockit.asm.util.BytecodeReader.readConst(int) returns different types of unrelated Objects STYLE URV_UNRELATED_RETURN_VALUES 491 Medium

mockit.coverage.CallPoint

Bug Category Details Line Priority
method mockit.coverage.CallPoint.checkForJUnit3Availability() converts an exception into a boolean 'error code' value STYLE EXS_EXCEPTION_SOFTENING_RETURN_FALSE 79 Medium
Class mockit.coverage.CallPoint defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium
Method mockit.coverage.CallPoint.isTestMethod(StackTraceElement) checks a map with containsKey(), before using get() CORRECTNESS MUI_CONTAINSKEY_BEFORE_GET 135 Medium

mockit.coverage.CoverageCheck

Bug Category Details Line Priority
Unconstrained method mockit.coverage.CoverageCheck.createOrDeleteIndicatorFile() converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 144 High
Potentially dangerous use of non-short-circuit logic in mockit.coverage.CoverageCheck.verifyThresholds() STYLE NS_DANGEROUS_NON_SHORT_CIRCUIT 119 High
Exceptional return value of java.io.File.delete() ignored in mockit.coverage.CoverageCheck.createOrDeleteIndicatorFile() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 136 Medium
Exceptional return value of java.io.File.setLastModified(long) ignored in mockit.coverage.CoverageCheck.createOrDeleteIndicatorFile() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 138 Medium
This method new mockit.coverage.CoverageCheck() parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 106 Medium

mockit.coverage.CoverageCheck$Threshold

Bug Category Details Line Priority
Method new mockit.coverage.CoverageCheck$Threshold(String) accesses list or array with constant index CORRECTNESS CLI_CONSTANT_LIST_INDEX 65 Medium

mockit.coverage.OutputFileGenerator

Bug Category Details Line Priority
Unconstrained method mockit.coverage.OutputFileGenerator.generate() converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 107 High
Unconstrained method mockit.coverage.OutputFileGenerator.generateAggregateReportFromInputFiles(String[]) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 118 High
Method mockit.coverage.OutputFileGenerator.<static initializer for OutputFileGenerator>() specifies an unrelated class when allocating a Logger. Saw "mockit.coverage.reporting.CoverageReport", expected "mockit.coverage.OutputFileGenerator". CORRECTNESS LO_SUSPECT_LOG_CLASS 25 Medium
Illegal class is passed to LoggerFactory#getLogger(Class). It should be one of [mockit.coverage.OutputFileGenerator]. CORRECTNESS SLF4J_ILLEGAL_PASSED_CLASS 25 High

mockit.coverage.TestRun

Bug Category Details Line Priority
Shared primitive variable "terminated" in one thread may not yield the value of the most recent write from another thread MT_CORRECTNESS AT_STALE_THREAD_WRITE_OF_PRIMITIVE 144 Medium

mockit.coverage.data.CoverageData

Bug Category Details Line Priority
mockit.coverage.data.CoverageData.getFileToFileData() may expose internal representation by returning CoverageData.fileToFileData MALICIOUS_CODE EI_EXPOSE_REP 65 Medium
Unconstrained method mockit.coverage.data.CoverageData.readDataFromFile(File) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 250 High
Class mockit.coverage.data.CoverageData defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium
Public static mockit.coverage.data.CoverageData.instance() may expose internal representation by returning CoverageData.instance MALICIOUS_CODE MS_EXPOSE_REP 45 Medium
Object deserialization is used in mockit.coverage.data.CoverageData.readDataFromFile(File) SECURITY OBJECT_DESERIALIZATION 248 High
Class (mockit.coverage.data.CoverageData) using singleton design pattern has non-private constructor. CORRECTNESS SING_SINGLETON_HAS_NONPRIVATE_CONSTRUCTOR 38-52 Medium
Class (mockit.coverage.data.CoverageData) using singleton design pattern directly or indirectly implements Serializable interface. CORRECTNESS SING_SINGLETON_IMPLEMENTS_SERIALIZABLE 38-277 Medium

mockit.coverage.data.FileCoverageData

Bug Category Details Line Priority
Class mockit.coverage.data.FileCoverageData has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 27-95 Medium
Class mockit.coverage.data.FileCoverageData defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium
Primitive field mockit.coverage.data.FileCoverageData.dataCoverageInfo is public and set from inside the class, which makes it too exposed. Consider making it private to limit external accessibility. BAD_PRACTICE PA_PUBLIC_PRIMITIVE_ATTRIBUTE 54 Medium
Primitive field mockit.coverage.data.FileCoverageData.lineCoverageInfo is public and set from inside the class, which makes it too exposed. Consider making it private to limit external accessibility. BAD_PRACTICE PA_PUBLIC_PRIMITIVE_ATTRIBUTE 53 Medium

mockit.coverage.dataItems.FieldData

Bug Category Details Line Priority
Class mockit.coverage.dataItems.FieldData defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium
Method mockit.coverage.dataItems.FieldData.isCovered() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 44 Medium

mockit.coverage.dataItems.InstanceFieldData

Bug Category Details Line Priority
Class mockit.coverage.dataItems.InstanceFieldData defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium
Method mockit.coverage.dataItems.InstanceFieldData.markAsCoveredIfNoUnreadValuesAreLeft() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 55 Medium
Serializable class mockit.coverage.dataItems.InstanceFieldData defines a final transient field CORRECTNESS NFF_NON_FUNCTIONAL_FIELD Not available Medium
The field mockit.coverage.dataItems.InstanceFieldData.testIdsToAssignments is transient but isn't set by deserialization BAD_PRACTICE SE_TRANSIENT_FIELD_NOT_RESTORED Not available Medium

mockit.coverage.dataItems.PerFileDataCoverage

Bug Category Details Line Priority
Class mockit.coverage.dataItems.PerFileDataCoverage defines List based fields but uses them like Sets PERFORMANCE DLC_DUBIOUS_LIST_COLLECTION 44 Medium
Class mockit.coverage.dataItems.PerFileDataCoverage defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium

mockit.coverage.dataItems.StaticFieldData

Bug Category Details Line Priority
Class mockit.coverage.dataItems.StaticFieldData defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium
Method mockit.coverage.dataItems.StaticFieldData.markAsCoveredIfNoUnreadValuesAreLeft() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 37 Medium
Serializable class mockit.coverage.dataItems.StaticFieldData defines a final transient field CORRECTNESS NFF_NON_FUNCTIONAL_FIELD Not available Medium
The field mockit.coverage.dataItems.StaticFieldData.testIdsToAssignments is transient but isn't set by deserialization BAD_PRACTICE SE_TRANSIENT_FIELD_NOT_RESTORED Not available Medium

mockit.coverage.lines.BranchCoverageData

Bug Category Details Line Priority
Class mockit.coverage.lines.BranchCoverageData defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium

mockit.coverage.lines.LineCoverageData

Bug Category Details Line Priority
mockit.coverage.lines.LineCoverageData.getBranches() may expose internal representation by returning LineCoverageData.branches MALICIOUS_CODE EI_EXPOSE_REP 82 Medium
Class mockit.coverage.lines.LineCoverageData defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium

mockit.coverage.lines.LineSegmentData

Bug Category Details Line Priority
mockit.coverage.lines.LineSegmentData.getCallPoints() may expose internal representation by returning LineSegmentData.callPoints MALICIOUS_CODE EI_EXPOSE_REP 88 Medium
Class mockit.coverage.lines.LineSegmentData defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium

mockit.coverage.lines.PerFileLineCoverage

Bug Category Details Line Priority
Class mockit.coverage.lines.PerFileLineCoverage defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium
Method mockit.coverage.lines.PerFileLineCoverage.computeValuesIfNeeded() checks a map with containsKey(), before using get() CORRECTNESS MUI_CONTAINSKEY_BEFORE_GET 207 Medium

mockit.coverage.modification.CFGTracking

Bug Category Details Line Priority
Class mockit.coverage.modification.CFGTracking defines List based fields but uses them like Sets PERFORMANCE DLC_DUBIOUS_LIST_COLLECTION 97 Medium
Class mockit.coverage.modification.CFGTracking defines List based fields but uses them like Sets PERFORMANCE DLC_DUBIOUS_LIST_COLLECTION 90 Medium
Class mockit.coverage.modification.CFGTracking has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 42-168 Medium
Simple field mockit.coverage.modification.CFGTracking.foundPotentialBooleanExpressionValue is used like an enum STYLE PME_POOR_MANS_ENUM 74 Medium
Method mockit.coverage.modification.CFGTracking.afterMethodInstruction(int, String, String) orders expressions in a conditional in a sub optimal way PERFORMANCE SEO_SUBOPTIMAL_EXPRESSION_ORDER 158 Medium

mockit.coverage.modification.ClassModification

Bug Category Details Line Priority
Method mockit.coverage.modification.ClassModification.modifyClass(String, ProtectionDomain, byte[]) prints the stack trace to the console STYLE IMC_IMMATURE_CLASS_PRINTSTACKTRACE 52 Medium

mockit.coverage.modification.ClassesNotLoaded

Bug Category Details Line Priority
new mockit.coverage.modification.ClassesNotLoaded(ClassModification) may expose internal representation by storing an externally mutable object into ClassesNotLoaded.classModification MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium

mockit.coverage.reporting.CoverageReport

Bug Category Details Line Priority
Exceptional return value of java.io.File.delete() ignored in mockit.coverage.reporting.CoverageReport.deleteOutdatedHTMLFileIfExists(String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 141 Medium

mockit.coverage.reporting.dataCoverage.DataCoverageOutput

Bug Category Details Line Priority
new mockit.coverage.reporting.dataCoverage.DataCoverageOutput(PerFileDataCoverage) may expose internal representation by storing an externally mutable object into DataCoverageOutput.coverageInfo MALICIOUS_CODE EI_EXPOSE_REP2 36 Medium
This method mockit.coverage.reporting.dataCoverage.DataCoverageOutput.moveToNextField() parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 51 Medium
This method mockit.coverage.reporting.dataCoverage.DataCoverageOutput.moveToNextField() parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 52 Medium
This method mockit.coverage.reporting.dataCoverage.DataCoverageOutput.moveToNextField() parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 53 Medium

mockit.coverage.reporting.lineCoverage.LineCoverageOutput

Bug Category Details Line Priority
new mockit.coverage.reporting.lineCoverage.LineCoverageOutput(PrintWriter, PerFileLineCoverage, boolean) may expose internal representation by storing an externally mutable object into LineCoverageOutput.lineCoverageData MALICIOUS_CODE EI_EXPOSE_REP2 28 Medium
new mockit.coverage.reporting.lineCoverage.LineCoverageOutput(PrintWriter, PerFileLineCoverage, boolean) may expose internal representation by storing an externally mutable object into LineCoverageOutput.output MALICIOUS_CODE EI_EXPOSE_REP2 27 Medium

mockit.coverage.reporting.packages.IndexPage

Bug Category Details Line Priority
new mockit.coverage.reporting.packages.IndexPage(File, List, Collection, Map, Map) may expose internal representation by storing an externally mutable object into IndexPage.packageToFiles MALICIOUS_CODE EI_EXPOSE_REP2 46 Medium
new mockit.coverage.reporting.packages.IndexPage(File, List, Collection, Map, Map) may expose internal representation by storing an externally mutable object into IndexPage.sourceDirs MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium

mockit.coverage.reporting.parsing.LineElement

Bug Category Details Line Priority
Class mockit.coverage.reporting.parsing.LineElement defines List based fields but uses them like Sets PERFORMANCE DLC_DUBIOUS_LIST_COLLECTION 192 Medium
mockit.coverage.reporting.parsing.LineElement.findNextBranchingPoint() may expose internal representation by returning LineElement.next MALICIOUS_CODE EI_EXPOSE_REP 167 Medium
mockit.coverage.reporting.parsing.LineElement.getNext() may expose internal representation by returning LineElement.next MALICIOUS_CODE EI_EXPOSE_REP 92 Medium
This method mockit.coverage.reporting.parsing.LineElement.getParenthesisBalance() parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 197 Medium
This method mockit.coverage.reporting.parsing.LineElement.getParenthesisBalance() parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 201 Medium
This method mockit.coverage.reporting.parsing.LineElement.getParenthesisBalance() parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 204 Medium
This method mockit.coverage.reporting.parsing.LineElement.getParenthesisBalance() parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 208 Medium
This method mockit.coverage.reporting.parsing.LineElement.isBranchingElement() parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 183 Medium
This method mockit.coverage.reporting.parsing.LineElement.isBranchingElement() parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 186 Medium

mockit.coverage.reporting.parsing.LineElement$1

Bug Category Details Line Priority
mockit.coverage.reporting.parsing.LineElement$1.next() cannot throw NoSuchElementException BAD_PRACTICE IT_NO_SUCH_ELEMENT 281 Medium

mockit.coverage.reporting.parsing.LineParser

Bug Category Details Line Priority
mockit.coverage.reporting.parsing.LineParser.getInitialElement() may expose internal representation by returning LineParser.initialElement MALICIOUS_CODE EI_EXPOSE_REP 67 Medium
This method mockit.coverage.reporting.parsing.LineParser.addElement() parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 198 Medium
This method mockit.coverage.reporting.parsing.LineParser.addFinalElement() parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 193 Medium

mockit.coverage.testRedundancy.JUnitListener

Bug Category Details Line Priority
new mockit.coverage.testRedundancy.JUnitListener(TestCoverage) may expose internal representation by storing an externally mutable object into JUnitListener.testCoverage MALICIOUS_CODE EI_EXPOSE_REP2 20 Medium

mockit.coverage.testRedundancy.TestCoverage

Bug Category Details Line Priority
mockit.coverage.testRedundancy.TestCoverage.setCurrentTestMethod(Method) may expose internal representation by storing an externally mutable object into TestCoverage.currentTestMethod MALICIOUS_CODE EI_EXPOSE_REP2 43 Medium

mockit.integration.TestRunnerDecorator

Bug Category Details Line Priority
Incorrect lazy initialization of static field mockit.integration.TestRunnerDecorator.savePointForTest in mockit.integration.TestRunnerDecorator.prepareForNextTest() MT_CORRECTNESS LI_LAZY_INIT_STATIC 140-141 Medium

mockit.integration.junit4.BaseJUnit4DecoratorTest

Bug Category Details Line Priority
Method mockit.integration.junit4.BaseJUnit4DecoratorTest.beforeBase() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 55 Medium
Method mockit.integration.junit4.BaseJUnit4DecoratorTest.beforeClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 35 Medium

mockit.integration.junit4.FakeFrameworkMethod

Bug Category Details Line Priority
Unchecked/unconfirmed cast from mockit.Invocation to mockit.internal.faking.FakeInvocation in mockit.integration.junit4.FakeFrameworkMethod.invokeExplosively(Invocation, Object, Object[]) STYLE BC_UNCONFIRMED_CAST 38 Medium
Unchecked/unconfirmed cast from mockit.Invocation to mockit.internal.faking.FakeInvocation in mockit.integration.junit4.FakeFrameworkMethod.validatePublicVoidNoArg(Invocation, boolean, List) STYLE BC_UNCONFIRMED_CAST 52 Medium

mockit.integration.junit4.JUnit4DecoratorTest

Bug Category Details Line Priority
Method mockit.integration.junit4.JUnit4DecoratorTest.setUpAndUseFakesAgain() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 62 Medium
Method mockit.integration.junit4.JUnit4DecoratorTest.setUpAndUseSomeFakes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 51 Medium

mockit.integration.junit4.JUnit4ViolatedExpectationsTest

Bug Category Details Line Priority
Method mockit.integration.junit4.JUnit4ViolatedExpectationsTest.expectInvocationWhichDoesNotOccurInTestedCodeThatThrowsAnException_1(Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 22 Medium
Method mockit.integration.junit4.JUnit4ViolatedExpectationsTest.expectInvocationWhichDoesNotOccurInTestedCodeThatThrowsAnException_2(Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 31 Medium
Method mockit.integration.junit4.JUnit4ViolatedExpectationsTest.expectInvocationWhichDoesNotOccurInTestedCodeThatThrowsAnException_4(Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 44 Medium
Method mockit.integration.junit4.JUnit4ViolatedExpectationsTest.expectInvocationWhichDoesNotOccurInTestedCodeThatThrowsAnException_5(Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 57 Medium
Method mockit.integration.junit4.JUnit4ViolatedExpectationsTest.expectInvocationWhichDoesNotOccurInTestedCodeThatThrowsAnException_6(Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 69 Medium

mockit.integration.junit4.SecondJUnit4DecoratorTest

Bug Category Details Line Priority
Method mockit.integration.junit4.SecondJUnit4DecoratorTest.setUpFakes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 32 Medium

mockit.integration.junit4.TestSuiteWithBeforeClass

Bug Category Details Line Priority
Method mockit.integration.junit4.TestSuiteWithBeforeClass.setUpSuiteWideFakes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 22 Medium

mockit.integration.junit4.TestSuiteWithBeforeClass$1

Bug Category Details Line Priority
Uncallable method mockit.integration.junit4.TestSuiteWithBeforeClass$1.alwaysTrue() defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 25 High

mockit.integration.junit4.ThirdJUnit4DecoratorTest

Bug Category Details Line Priority
Method mockit.integration.junit4.ThirdJUnit4DecoratorTest.applyFakes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 32 Medium

mockit.integration.junit5.JMockitExtension

Bug Category Details Line Priority
mockit.integration.junit5.JMockitExtension.handleTestExecutionException(ExtensionContext, Throwable) may expose internal representation by storing an externally mutable object into JMockitExtension.thrownByTest MALICIOUS_CODE EI_EXPOSE_REP2 213 Medium
Constrained method mockit.integration.junit5.JMockitExtension.beforeTestExecution(ExtensionContext) converts checked exception to unchecked instead of another allowable checked exception STYLE EXS_EXCEPTION_SOFTENING_HAS_CHECKED 170 Medium
Method mockit.integration.junit5.JMockitExtension.beforeTestExecution(ExtensionContext) throws alternative exception from catch block without history CORRECTNESS LEST_LOST_EXCEPTION_STACK_TRACE 170 Medium

mockit.integration.springframework.SpringIntegrationTest

Bug Category Details Line Priority
Method mockit.integration.springframework.SpringIntegrationTest.applySpringIntegration() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 28 Medium

mockit.integration.testng.TestNGRunnerDecorator

Bug Category Details Line Priority
Field mockit.integration.testng.TestNGRunnerDecorator.savePoint is an instance based ThreadLocal variable CORRECTNESS PMB_INSTANCE_BASED_THREAD_LOCAL Not available Medium

mockit.internal.BaseInvocation

Bug Category Details Line Priority
mockit.internal.BaseInvocation.getPrevious() may expose internal representation by returning BaseInvocation.previousInvocation MALICIOUS_CODE EI_EXPOSE_REP 78 Medium
mockit.internal.BaseInvocation.setPrevious(BaseInvocation) may expose internal representation by storing an externally mutable object into BaseInvocation.previousInvocation MALICIOUS_CODE EI_EXPOSE_REP2 82 Medium

mockit.internal.ClassFile

Bug Category Details Line Priority
Unconstrained method mockit.internal.ClassFile.readBytesFromClassFile(String) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 187 High
Class mockit.internal.ClassFile has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 21-225 Medium
mockit.internal.ClassFile.readClassFromClasspath(String) may return null, but is declared @Nonnull CORRECTNESS NP_NONNULL_RETURN_VIOLATION 225 Medium
mockit.internal.ClassFile.readClassFromClasspath(String) may return null, but is declared @Nonnull CORRECTNESS NP_NONNULL_RETURN_VIOLATION 225 Medium

mockit.internal.ClassIdentification

Bug Category Details Line Priority
Unconstrained method mockit.internal.ClassIdentification.getLoadedClass() converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 31 High

mockit.internal.ClassLoadingBridge

Bug Category Details Line Priority
Unconstrained method mockit.internal.ClassLoadingBridge.setBridgeField(Class, ClassLoadingBridge) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 118 High
mockit.internal.ClassLoadingBridge.hostJREClassName isn't final and cannot be protected from malicious code MALICIOUS_CODE MS_CANNOT_BE_FINAL Not available Medium

mockit.internal.capturing.CaptureTransformer

Bug Category Details Line Priority
Using pointer equality to compare a java.util.Map<K,V> with a java.util.Map<mockit.internal.ClassIdentification,byte[]> in mockit.internal.capturing.CaptureTransformer.modifyAndRegisterClass(ClassLoader, String, ClassReader) CORRECTNESS EC_UNRELATED_TYPES_USING_POINTER_EQUALITY 151 High

mockit.internal.classGeneration.BaseSubclassGenerator

Bug Category Details Line Priority
Class mockit.internal.classGeneration.BaseSubclassGenerator defines List based fields but uses them like Sets PERFORMANCE DLC_DUBIOUS_LIST_COLLECTION 134 Medium

mockit.internal.classGeneration.ImplementationClass

Bug Category Details Line Priority
mockit.internal.classGeneration.ImplementationClass.getGeneratedBytecode() may expose internal representation by returning ImplementationClass.generatedBytecode MALICIOUS_CODE EI_EXPOSE_REP 84 Medium
Unconstrained method mockit.internal.classGeneration.ImplementationClass.defineNewClass(ClassVisitor) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 78 High

mockit.internal.expectations.ActiveInvocations

Bug Category Details Line Priority
Static or private method mockit.internal.expectations.ActiveInvocations.matchedArgument(int, String) has unused parameters STYLE UP_UNUSED_PARAMETER 130-140 Medium

mockit.internal.expectations.BaseVerificationPhase

Bug Category Details Line Priority
Method mockit.internal.expectations.BaseVerificationPhase.getNewInstancesMatchingVerifiedConstructorInvocation() does not presize the allocation of a collection PERFORMANCE PSC_PRESIZE_COLLECTIONS 158 Medium

mockit.internal.expectations.EquivalentInstances

Bug Category Details Line Priority

mockit.internal.expectations.Expectation

Bug Category Details Line Priority
Class mockit.internal.expectations.Expectation has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 28-115 Medium

mockit.internal.expectations.RecordAndReplayExecution

Bug Category Details Line Priority
mockit.internal.expectations.RecordAndReplayExecution.getRecordPhase() may expose internal representation by returning RecordAndReplayExecution.recordPhase MALICIOUS_CODE EI_EXPOSE_REP 116 Medium
mockit.internal.expectations.RecordAndReplayExecution.startVerifications(boolean, Object[]) may expose internal representation by returning RecordAndReplayExecution.verificationPhase MALICIOUS_CODE EI_EXPOSE_REP 316 Medium

mockit.internal.expectations.RecordPhase

Bug Category Details Line Priority
Class mockit.internal.expectations.RecordPhase has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 19-84 Medium
Class mockit.internal.expectations.RecordPhase has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 19-84 Medium

mockit.internal.expectations.TestOnlyPhase

Bug Category Details Line Priority

mockit.internal.expectations.UnorderedVerificationPhase

Bug Category Details Line Priority
Class mockit.internal.expectations.UnorderedVerificationPhase creates and initializes a collection but never reads or gains information from it CORRECTNESS WOC_WRITE_ONLY_COLLECTION_FIELD Not available Medium

mockit.internal.expectations.argumentMatching.CaptureMatcher

Bug Category Details Line Priority
new mockit.internal.expectations.argumentMatching.CaptureMatcher(List) may expose internal representation by storing an externally mutable object into CaptureMatcher.valueHolder MALICIOUS_CODE EI_EXPOSE_REP2 20 Medium

mockit.internal.expectations.argumentMatching.LenientEqualityMatcher

Bug Category Details Line Priority
new mockit.internal.expectations.argumentMatching.LenientEqualityMatcher(Object, Map) may expose internal representation by storing an externally mutable object into LenientEqualityMatcher.instanceMap MALICIOUS_CODE EI_EXPOSE_REP2 19 Medium

mockit.internal.expectations.invocation.ArgumentValuesAndMatchers

Bug Category Details Line Priority
Class mockit.internal.expectations.invocation.ArgumentValuesAndMatchers defines two or more one for one associated lists or arrays STYLE PL_PARALLEL_LISTS 127 Medium
Method mockit.internal.expectations.invocation.ArgumentValuesAndMatchers.indexOfFirstValueAfterEquivalentMatchers(ArgumentValuesAndMatchers) declares unbound method template parameter(s) CORRECTNESS UMTP_UNBOUND_METHOD_TEMPLATE_PARAMETER 112-136 Medium

mockit.internal.expectations.invocation.DelegateInvocation

Bug Category Details Line Priority

mockit.internal.expectations.invocation.DelegatedResult

Bug Category Details Line Priority
Class mockit.internal.expectations.invocation.DelegatedResult has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 28-118 Medium
mockit.internal.expectations.invocation.DelegatedResult.executeMethodToInvoke(Object[]) does not release lock on all paths MT_CORRECTNESS UL_UNRELEASED_LOCK 95 High
mockit.internal.expectations.invocation.DelegatedResult.executeMethodToInvoke(Object[]) does not release lock on all exception paths MT_CORRECTNESS UL_UNRELEASED_LOCK_EXCEPTION_PATH 95 Medium

mockit.internal.expectations.invocation.ExpectedInvocation

Bug Category Details Line Priority
mockit.internal.expectations.invocation.ExpectedInvocation.getInvocationCause() may expose internal representation by returning ExpectedInvocation.invocationCause MALICIOUS_CODE EI_EXPOSE_REP 67 Medium
This method mockit.internal.expectations.invocation.ExpectedInvocation.getReturnTypeAsResolvedFromClassArgument() parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 419 Medium
Unwritten public or protected field: mockit.internal.expectations.invocation.ExpectedInvocation.replacementInstance STYLE UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD 29 Medium

mockit.internal.expectations.invocation.InvocationArguments

Bug Category Details Line Priority
Unconstrained method mockit.internal.expectations.invocation.InvocationArguments.getRealMethodOrConstructor() converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 116 High

mockit.internal.expectations.invocation.InvocationResults

Bug Category Details Line Priority
new mockit.internal.expectations.invocation.InvocationResults(ExpectedInvocation, InvocationConstraints) may expose internal representation by storing an externally mutable object into InvocationResults.constraints MALICIOUS_CODE EI_EXPOSE_REP2 35 Medium
new mockit.internal.expectations.invocation.InvocationResults(ExpectedInvocation, InvocationConstraints) may expose internal representation by storing an externally mutable object into InvocationResults.invocation MALICIOUS_CODE EI_EXPOSE_REP2 34 Medium

mockit.internal.expectations.invocation.ReturnTypeConversion

Bug Category Details Line Priority
Found reliance on default encoding in mockit.internal.expectations.invocation.ReturnTypeConversion.addByteArrayIfApplicable(): String.getBytes() I18N DM_DEFAULT_ENCODING 190 High
Found reliance on default encoding in mockit.internal.expectations.invocation.ReturnTypeConversion.addCharSequence(CharSequence): String.getBytes() I18N DM_DEFAULT_ENCODING 169 High
new mockit.internal.expectations.invocation.ReturnTypeConversion(ExpectedInvocation, InvocationResults, Class, Object) may expose internal representation by storing an externally mutable object into ReturnTypeConversion.invocation MALICIOUS_CODE EI_EXPOSE_REP2 50 Medium
new mockit.internal.expectations.invocation.ReturnTypeConversion(ExpectedInvocation, InvocationResults, Class, Object) may expose internal representation by storing an externally mutable object into ReturnTypeConversion.invocationResults MALICIOUS_CODE EI_EXPOSE_REP2 51 Medium
Method mockit.internal.expectations.invocation.ReturnTypeConversion.addByteArrayIfApplicable() encodes String bytes without specifying the character encoding CORRECTNESS MDM_STRING_BYTES_ENCODING 190 Medium
Method mockit.internal.expectations.invocation.ReturnTypeConversion.addCharSequence(CharSequence) encodes String bytes without specifying the character encoding CORRECTNESS MDM_STRING_BYTES_ENCODING 169 Medium
Method mockit.internal.expectations.invocation.ReturnTypeConversion.convertFromChar(Class, char) returns more specific type of object than declared STYLE URV_CHANGE_RETURN_TYPE 327 Medium
Method mockit.internal.expectations.invocation.ReturnTypeConversion.convertFromNumber(Class, Number) returns more specific type of object than declared STYLE URV_CHANGE_RETURN_TYPE 293 Medium

mockit.internal.expectations.mocking.CaptureOfNewInstancesForFields

Bug Category Details Line Priority
Class mockit.internal.expectations.mocking.CaptureOfNewInstancesForFields 'overloads' a method with both instance and static versions STYLE MOM_MISLEADING_OVERLOAD_MODEL 24-29 Medium

mockit.internal.expectations.mocking.FieldTypeRedefinitions

Bug Category Details Line Priority
Collection variable mockit.internal.expectations.mocking.FieldTypeRedefinitions.mockFieldsNotSet is named with a different type of collection in the name STYLE CNC_COLLECTION_NAMING_CONFUSION Not available Medium
Method mockit.internal.expectations.mocking.FieldTypeRedefinitions.assignNewInstanceToMockField(Object, MockedType, InstanceFactory) prints the stack trace to the console STYLE IMC_IMMATURE_CLASS_PRINTSTACKTRACE 145 Medium

mockit.internal.expectations.mocking.InstanceFactory

Bug Category Details Line Priority
Method mockit.internal.expectations.mocking.InstanceFactory.newUninitializedConcreteClassInstance() prints the stack trace to the console STYLE IMC_IMMATURE_CLASS_PRINTSTACKTRACE 37 Medium

mockit.internal.expectations.mocking.InterfaceImplementationGenerator

Bug Category Details Line Priority
Class mockit.internal.expectations.mocking.InterfaceImplementationGenerator defines List based fields but uses them like Sets PERFORMANCE DLC_DUBIOUS_LIST_COLLECTION 118 Medium

mockit.internal.expectations.mocking.MockedClassModifier

Bug Category Details Line Priority
This method mockit.internal.expectations.mocking.MockedClassModifier.isUnmockableInvocation(String) parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 195 Medium

mockit.internal.expectations.mocking.ParameterTypeRedefinitions

Bug Category Details Line Priority
mockit.internal.expectations.mocking.ParameterTypeRedefinitions.getInjectableParameters() may expose internal representation by returning ParameterTypeRedefinitions.injectableParameters MALICIOUS_CODE EI_EXPOSE_REP 131 Medium
new mockit.internal.expectations.mocking.ParameterTypeRedefinitions(TestMethod, Object[]) may expose internal representation by storing an externally mutable object into ParameterTypeRedefinitions.testMethod MALICIOUS_CODE EI_EXPOSE_REP2 29 Medium

mockit.internal.expectations.mocking.TypeRedefinitions

Bug Category Details Line Priority
mockit.internal.expectations.mocking.TypeRedefinitions.getTargetClasses() may expose internal representation by returning TypeRedefinitions.targetClasses MALICIOUS_CODE EI_EXPOSE_REP 37 Medium

mockit.internal.expectations.state.ExecutingTest

Bug Category Details Line Priority
Shared primitive variable "proceeding" in one thread may not yield the value of the most recent write from another thread MT_CORRECTNESS AT_STALE_THREAD_WRITE_OF_PRIMITIVE 100 Medium
Shared primitive variable "proceeding" in one thread may not yield the value of the most recent write from another thread MT_CORRECTNESS AT_STALE_THREAD_WRITE_OF_PRIMITIVE 111 Medium
mockit.internal.expectations.state.ExecutingTest.getCascadingTypes() may expose internal representation by returning ExecutingTest.cascadingTypes MALICIOUS_CODE EI_EXPOSE_REP 198 Medium
mockit.internal.expectations.state.ExecutingTest.getParameterRedefinitions() may expose internal representation by returning ExecutingTest.parameterTypeRedefinitions MALICIOUS_CODE EI_EXPOSE_REP 152 Medium
mockit.internal.expectations.state.ExecutingTest.setParameterRedefinitions(ParameterTypeRedefinitions) may expose internal representation by storing an externally mutable object into ExecutingTest.parameterTypeRedefinitions MALICIOUS_CODE EI_EXPOSE_REP2 156 Medium
Method mockit.internal.expectations.state.ExecutingTest.lambda$new$0() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 49 Medium
Field mockit.internal.expectations.state.ExecutingTest.proceedingInvocation is an instance based ThreadLocal variable CORRECTNESS PMB_INSTANCE_BASED_THREAD_LOCAL Not available Medium
Field mockit.internal.expectations.state.ExecutingTest.shouldIgnoreMockingCallbacks is an instance based ThreadLocal variable CORRECTNESS PMB_INSTANCE_BASED_THREAD_LOCAL Not available Medium
Class mockit.internal.expectations.state.ExecutingTest creates and initializes a collection but never reads or gains information from it CORRECTNESS WOC_WRITE_ONLY_COLLECTION_FIELD Not available Medium

mockit.internal.expectations.state.MockedTypeCascade

Bug Category Details Line Priority
Class mockit.internal.expectations.state.MockedTypeCascade has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 38-300 Medium
Unwritten field: mockit.internal.expectations.state.MockedTypeCascade.mockedClass CORRECTNESS UWF_UNWRITTEN_FIELD 231 Medium

mockit.internal.expectations.transformation.ArgumentCapturing

Bug Category Details Line Priority
Class mockit.internal.expectations.transformation.ArgumentCapturing has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 25-134 Medium
Class mockit.internal.expectations.transformation.ArgumentCapturing has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 25-134 Medium

mockit.internal.expectations.transformation.ExpectationsTransformer

Bug Category Details Line Priority
Method mockit.internal.expectations.transformation.ExpectationsTransformer.modifyInvocationsSubclass(ClassReader, String) prints the stack trace to the console STYLE IMC_IMMATURE_CLASS_PRINTSTACKTRACE 77 Medium

mockit.internal.expectations.transformation.InvocationBlockModifier

Bug Category Details Line Priority
Class mockit.internal.expectations.transformation.InvocationBlockModifier has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 60-331 Medium

mockit.internal.faking.FakeBridge

Bug Category Details Line Priority
Method mockit.internal.faking.FakeBridge.invoke(Object, Method, Object[]) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 28 Medium
Method mockit.internal.faking.FakeBridge.invoke(Object, Method, Object[]) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 37 Medium

mockit.internal.faking.FakeClassSetup

Bug Category Details Line Priority
Class mockit.internal.faking.FakeClassSetup has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 36-125 Medium

mockit.internal.faking.FakeClasses

Bug Category Details Line Priority
Unconstrained method mockit.internal.faking.FakeClasses.<static initializer for FakeClasses>() converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 33 High
Class mockit.internal.faking.FakeClasses has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 21-190 Medium
Class mockit.internal.faking.FakeClasses has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 21-190 Medium
Class mockit.internal.faking.FakeClasses has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 21-190 Medium
Method mockit.internal.faking.FakeClasses.notifyOfTearDown(MockUp) prints the stack trace to the console STYLE IMC_IMMATURE_CLASS_PRINTSTACKTRACE 42 Medium
Method mockit.internal.faking.FakeClasses.<static initializer for FakeClasses>() uses AccessibleObject.setAccessible to modify accessibility of classes CORRECTNESS RFI_SET_ACCESSIBLE 28 Medium
Method mockit.internal.faking.FakeClasses.<static initializer for FakeClasses>() uses AccessibleObject.setAccessible to modify accessibility of classes CORRECTNESS RFI_SET_ACCESSIBLE 31 Medium

mockit.internal.faking.FakeClasses$SavePoint

Bug Category Details Line Priority
new mockit.internal.faking.FakeClasses$SavePoint(FakeClasses) may expose internal representation by storing an externally mutable object into FakeClasses$SavePoint.this$0 MALICIOUS_CODE EI_EXPOSE_REP2 198 Medium

mockit.internal.faking.FakeMethodCollector

Bug Category Details Line Priority
Unconstrained method mockit.internal.faking.FakeMethodCollector.findJavaMethod(Class, ClassMetadataReader$MethodInfo) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 149 High
Method mockit.internal.faking.FakeMethodCollector.findJavaMethod(Class, ClassMetadataReader$MethodInfo) uses AccessibleObject.setAccessible to modify accessibility of classes CORRECTNESS RFI_SET_ACCESSIBLE 141 Medium

mockit.internal.faking.FakeMethods

Bug Category Details Line Priority
method mockit.internal.faking.FakeMethods.hasIntrinsicCandidateAnnotation(Class, String, String) converts an exception into a boolean 'error code' value STYLE EXS_EXCEPTION_SOFTENING_RETURN_FALSE 283 Medium

mockit.internal.faking.FakeMethods$FakeMethod

Bug Category Details Line Priority
Comparison of String objects using == or != in mockit.internal.faking.FakeMethods$FakeMethod.hasInvocationParameter() BAD_PRACTICE ES_COMPARING_STRINGS_WITH_EQ 86 Medium
Instance field mockit.internal.faking.FakeMethods$FakeMethod.indexForFakeState likely could be defined as static CORRECTNESS SPP_FIELD_COULD_BE_STATIC Not available Medium

mockit.internal.faking.FakeState

Bug Category Details Line Priority
Shared primitive variable "expectedInvocations" in one thread may not yield the value of the most recent write from another thread MT_CORRECTNESS AT_STALE_THREAD_WRITE_OF_PRIMITIVE 89 Medium
Shared primitive variable "maxExpectedInvocations" in one thread may not yield the value of the most recent write from another thread MT_CORRECTNESS AT_STALE_THREAD_WRITE_OF_PRIMITIVE 97 Medium
Shared primitive variable "minExpectedInvocations" in one thread may not yield the value of the most recent write from another thread MT_CORRECTNESS AT_STALE_THREAD_WRITE_OF_PRIMITIVE 93 Medium
Unconstrained method mockit.internal.faking.FakeState.getRealMethodOrConstructor(Class, String, String) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 174 High
Field mockit.internal.faking.FakeState.proceedingInvocation is an instance based ThreadLocal variable CORRECTNESS PMB_INSTANCE_BASED_THREAD_LOCAL Not available Medium

mockit.internal.faking.FakedImplementationClass

Bug Category Details Line Priority
new mockit.internal.faking.FakedImplementationClass(MockUp) may expose internal representation by storing an externally mutable object into FakedImplementationClass.fakeInstance MALICIOUS_CODE EI_EXPOSE_REP2 33 Medium

mockit.internal.injection.InjectionPoint

Bug Category Details Line Priority
Equals method for mockit.internal.injection.InjectionPoint assumes the argument is of type InjectionPoint BAD_PRACTICE BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS 175 Medium

mockit.internal.injection.InjectionPoint$ListedJakarta

Bug Category Details Line Priority
Method mockit.internal.injection.InjectionPoint$ListedJakarta.handles() does not presize the allocation of a collection PERFORMANCE PSC_PRESIZE_COLLECTIONS 318 Medium

mockit.internal.injection.InjectionProvider

Bug Category Details Line Priority
Empty method mockit.internal.injection.InjectionProvider.getAnnotations() could be declared abstract STYLE ACEM_ABSTRACT_CLASS_EMPTY_METHODS 48 Medium

mockit.internal.injection.InjectionProviders

Bug Category Details Line Priority
Class mockit.internal.injection.InjectionProviders defines List based fields but uses them like Sets PERFORMANCE DLC_DUBIOUS_LIST_COLLECTION 99 Medium
mockit.internal.injection.InjectionProviders.restoreConsumedInjectionProviders(List) may expose internal representation by storing an externally mutable object into InjectionProviders.consumedInjectionProviders MALICIOUS_CODE EI_EXPOSE_REP2 229 Medium

mockit.internal.injection.InjectionState

Bug Category Details Line Priority
Class mockit.internal.injection.InjectionState defines static field "mockit.internal.injection.InjectionState.globalObjects" which appears to allow memory bloat CORRECTNESS PMB_POSSIBLE_MEMORY_BLOAT Not available Medium

mockit.internal.injection.LifecycleMethods

Bug Category Details Line Priority
Class mockit.internal.injection.LifecycleMethods defines List based fields but uses them like Sets PERFORMANCE DLC_DUBIOUS_LIST_COLLECTION 56 Medium

mockit.internal.injection.TestedClass

Bug Category Details Line Priority
Possible null pointer dereference in new mockit.internal.injection.TestedClass(Type, Class, TestedClass) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 61 Medium
Possible null pointer dereference in mockit.internal.injection.TestedClass.isClassFromSameModuleOrSystemAsTestedClass(Class) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 96 Medium
Null passed for non-null parameter of java.nio.file.Path.of(URI) in new mockit.internal.injection.TestedClass(Type, Class, TestedClass) CORRECTNESS NP_NULL_PARAM_DEREF 61 High
This method mockit.internal.injection.TestedClass.isInSameSubpackageAsTestedClass(Class) parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 112 Medium
This method mockit.internal.injection.TestedClass.isInSameSubpackageAsTestedClass(Class) parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 120 Medium
This method mockit.internal.injection.TestedClass.isInSameSubpackageAsTestedClass(Class) parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 129 Medium

mockit.internal.injection.TestedObjectCreation

Bug Category Details Line Priority
new mockit.internal.injection.TestedObjectCreation(InjectionState, FullInjection, Class) may expose internal representation by storing an externally mutable object into TestedObjectCreation.fullInjection MALICIOUS_CODE EI_EXPOSE_REP2 60 Medium
new mockit.internal.injection.TestedObjectCreation(InjectionState, FullInjection, Class) may expose internal representation by storing an externally mutable object into TestedObjectCreation.injectionState MALICIOUS_CODE EI_EXPOSE_REP2 59 Medium

mockit.internal.injection.TestedParameters

Bug Category Details Line Priority
new mockit.internal.injection.TestedParameters(TestMethod) may expose internal representation by storing an externally mutable object into TestedParameters.testMethod MALICIOUS_CODE EI_EXPOSE_REP2 27 Medium

mockit.internal.injection.constructor.ConstructorInjection

Bug Category Details Line Priority
new mockit.internal.injection.constructor.ConstructorInjection(InjectionState, FullInjection, Constructor) may expose internal representation by storing an externally mutable object into ConstructorInjection.constructor MALICIOUS_CODE EI_EXPOSE_REP2 48 Medium

mockit.internal.injection.constructor.ConstructorSearch

Bug Category Details Line Priority
mockit.internal.injection.constructor.ConstructorSearch.findConstructorToUse() may expose internal representation by returning ConstructorSearch.constructor MALICIOUS_CODE EI_EXPOSE_REP 74 Medium
new mockit.internal.injection.constructor.ConstructorSearch(InjectionState, TestedClass, boolean) may expose internal representation by storing an externally mutable object into ConstructorSearch.injectionState MALICIOUS_CODE EI_EXPOSE_REP2 56 Medium
Primitive field mockit.internal.injection.constructor.ConstructorSearch.parameterProviders is public and set from inside the class, which makes it too exposed. Consider making it private to limit external accessibility. BAD_PRACTICE PA_PUBLIC_PRIMITIVE_ATTRIBUTE 60 Medium

mockit.internal.injection.field.FieldToInject

Bug Category Details Line Priority
new mockit.internal.injection.field.FieldToInject(Field) may expose internal representation by storing an externally mutable object into FieldToInject.targetField MALICIOUS_CODE EI_EXPOSE_REP2 25 Medium

mockit.internal.injection.full.FullInjection

Bug Category Details Line Priority
new mockit.internal.injection.full.FullInjection(InjectionState, Class, String) may expose internal representation by storing an externally mutable object into FullInjection.injectionState MALICIOUS_CODE EI_EXPOSE_REP2 75 Medium
Class mockit.internal.injection.full.FullInjection has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 45-402 Medium
Method mockit.internal.injection.full.FullInjection.createProviderJakartaInstance(InjectionProvider) returns more specific type of object than declared STYLE URV_CHANGE_RETURN_TYPE 296 Medium
Method mockit.internal.injection.full.FullInjection.createProviderJavaxInstance(InjectionProvider) returns more specific type of object than declared STYLE URV_CHANGE_RETURN_TYPE 319 Medium

mockit.internal.injection.full.JPAJakartaDependencies

Bug Category Details Line Priority
Method mockit.internal.injection.full.JPAJakartaDependencies.createAndRegisterDependency(Class, InjectionPoint, InjectionProvider) returns more specific type of object than declared STYLE URV_CHANGE_RETURN_TYPE 117 Medium
The use of SAXParser.parse(...) (SAXParser) is vulnerable to XML External Entity attacks SECURITY XXE_SAXPARSER 90 Medium

mockit.internal.injection.full.JPAJavaxDependencies

Bug Category Details Line Priority
Class mockit.internal.injection.full.JPAJavaxDependencies has a circular dependency with other classes CORRECTNESS FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY 38-154 Medium
Method mockit.internal.injection.full.JPAJavaxDependencies.createAndRegisterDependency(Class, InjectionPoint, InjectionProvider) returns different types of unrelated Objects STYLE URV_UNRELATED_RETURN_VALUES 112 Medium
The use of SAXParser.parse(...) (SAXParser) is vulnerable to XML External Entity attacks SECURITY XXE_SAXPARSER 89 Medium

mockit.internal.injection.full.ServletJakartaDependencies

Bug Category Details Line Priority
Method mockit.internal.injection.full.ServletJakartaDependencies.createAndRegisterDependency(Class) returns different types of unrelated Objects STYLE URV_UNRELATED_RETURN_VALUES 62 Medium

mockit.internal.injection.full.ServletJavaxDependencies

Bug Category Details Line Priority
Method mockit.internal.injection.full.ServletJavaxDependencies.createAndRegisterDependency(Class) returns different types of unrelated Objects STYLE URV_UNRELATED_RETURN_VALUES 63 Medium

mockit.internal.injection.full.TestDataSource

Bug Category Details Line Priority
Unconstrained method mockit.internal.injection.full.TestDataSource.setDataSourcePropertiesFromConfiguredValuesJakarta(DataSourceDefinition) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 144 High
Unconstrained method mockit.internal.injection.full.TestDataSource.setDataSourcePropertiesFromConfiguredValuesJavax(DataSourceDefinition) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 191 High

mockit.internal.reflection.AnnotationReflection

Bug Category Details Line Priority
Unconstrained method mockit.internal.reflection.AnnotationReflection.readAnnotationAttribute(Object, String) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 25 High
Unconstrained method mockit.internal.reflection.AnnotationReflection.readAttribute(Object, String) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 46 High

mockit.internal.reflection.ConstructorReflection

Bug Category Details Line Priority
Unconstrained method mockit.internal.reflection.ConstructorReflection.invokeAccessible(Constructor, Object[]) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 58 High
Unconstrained method mockit.internal.reflection.ConstructorReflection.invokeAccessible(Constructor, Object[]) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 61 High
Unconstrained method mockit.internal.reflection.ConstructorReflection.newInstanceUsingDefaultConstructor(Class) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 79 High
Unconstrained method mockit.internal.reflection.ConstructorReflection.newInstanceUsingDefaultConstructor(Class) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 81 High
Unconstrained method mockit.internal.reflection.ConstructorReflection.newInstanceUsingPublicDefaultConstructor(Class) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 115 High
Method mockit.internal.reflection.ConstructorReflection.invokeAccessible(Constructor, Object[]) throws alternative exception from catch block without history CORRECTNESS LEST_LOST_EXCEPTION_STACK_TRACE 55 Medium
Method mockit.internal.reflection.ConstructorReflection.invokeAccessible(Constructor, Object[]) throws alternative exception from catch block without history CORRECTNESS LEST_LOST_EXCEPTION_STACK_TRACE 58 Medium
Method mockit.internal.reflection.ConstructorReflection.invokeAccessible(Constructor, Object[]) uses AccessibleObject.setAccessible to modify accessibility of classes CORRECTNESS RFI_SET_ACCESSIBLE 47 Medium

mockit.internal.reflection.FieldReflection

Bug Category Details Line Priority
Unconstrained method mockit.internal.reflection.FieldReflection.getDeclaredField(Class, String, boolean) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 84 High
Unconstrained method mockit.internal.reflection.FieldReflection.getFieldValue(Field, Object) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 38 High
Unconstrained method mockit.internal.reflection.FieldReflection.setFieldValue(Field, Object, Object) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 184 High
Method mockit.internal.reflection.FieldReflection.getDeclaredField(Class, String, boolean) throws alternative exception from catch block without history CORRECTNESS LEST_LOST_EXCEPTION_STACK_TRACE 84 Medium

mockit.internal.reflection.GenericTypeReflection

Bug Category Details Line Priority
Method mockit.internal.reflection.GenericTypeReflection.resolveTypeVariable(TypeVariable) employs tail recursion PERFORMANCE TR_TAIL_RECURSION 521 Medium

mockit.internal.reflection.GenericTypeReflection$GenericSignature

Bug Category Details Line Priority
This method mockit.internal.reflection.GenericTypeReflection$GenericSignature.addNextParameter() parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 276 Medium
This method mockit.internal.reflection.GenericTypeReflection$GenericSignature.addNextParameter() parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 285 Medium
This method mockit.internal.reflection.GenericTypeReflection$GenericSignature.addNextParameter() parses a String that is a field STYLE STT_STRING_PARSING_A_FIELD 300 Medium

mockit.internal.reflection.MethodReflection

Bug Category Details Line Priority
Unconstrained method mockit.internal.reflection.MethodReflection.invoke(Object, Method, Object[]) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 107 High
Unconstrained method mockit.internal.reflection.MethodReflection.invoke(Object, Method, Object[]) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 110 High
Unconstrained method mockit.internal.reflection.MethodReflection.invoke(Object, Method, Object[]) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 117 High
Unconstrained method mockit.internal.reflection.MethodReflection.invokeWithCheckedThrows(Object, Method, Object[]) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 135 High
Method mockit.internal.reflection.MethodReflection.invoke(Class, Object, String, Object[]) stores return result in local before immediately returning it STYLE USBR_UNNECESSARY_STORE_BEFORE_RETURN 155 Medium

mockit.internal.reflection.MockInvocationHandler

Bug Category Details Line Priority
Unconstrained method mockit.internal.reflection.MockInvocationHandler.newMockedInstance(Class) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 41 High

mockit.internal.reflection.ThrowOfCheckedException

Bug Category Details Line Priority
Class mockit.internal.reflection.ThrowOfCheckedException is not derived from an Exception, even though it is named as such BAD_PRACTICE NM_CLASS_NOT_EXCEPTION 14-25 Medium

mockit.internal.startup.JMockitInitialization

Bug Category Details Line Priority
Method mockit.internal.startup.JMockitInitialization.getFakeClasses() returns java.util.Collection CORRECTNESS IMC_IMMATURE_CLASS_COLLECTION_RETURN 63 Medium
Method mockit.internal.startup.JMockitInitialization.applyStartupFake(String) prints the stack trace to the console STYLE IMC_IMMATURE_CLASS_PRINTSTACKTRACE 98 Medium
Method mockit.internal.startup.JMockitInitialization.applyInternalStartupFakesAsNeeded() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 44 Medium
Method mockit.internal.startup.JMockitInitialization.applyInternalStartupFakesAsNeeded() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 45 Medium

mockit.internal.startup.Startup

Bug Category Details Line Priority
mockit.internal.startup.Startup.premain(String, Instrumentation) may expose internal static state by storing a mutable object into a static field mockit.internal.startup.Startup.instrumentation MALICIOUS_CODE EI_EXPOSE_STATIC_REP2 50 Medium
Unconstrained method mockit.internal.startup.Startup.detectMissingDependenciesIfAny(Class) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 116 High
Unconstrained method mockit.internal.startup.Startup.redefineMethods(ClassDefinition[]) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 99 High
mockit.internal.startup.Startup.initializing isn't final and cannot be protected from malicious code MALICIOUS_CODE MS_CANNOT_BE_FINAL Not available Medium
Public static mockit.internal.startup.Startup.instrumentation() may expose internal representation by returning Startup.instrumentation MALICIOUS_CODE MS_EXPOSE_REP 66 Medium
Primitive field mockit.internal.startup.Startup.initializing is public and set from inside the class, which makes it too exposed. Consider making it private to limit external accessibility. BAD_PRACTICE PA_PUBLIC_PRIMITIVE_ATTRIBUTE 53 Medium

mockit.internal.state.CachedClassfiles

Bug Category Details Line Priority
Class mockit.internal.state.CachedClassfiles 'overloads' a method with both instance and static versions STYLE MOM_MISLEADING_OVERLOAD_MODEL 134-135 Medium

mockit.internal.state.MockFixture

Bug Category Details Line Priority
Class mockit.internal.state.MockFixture defines List based fields but uses them like Sets PERFORMANCE DLC_DUBIOUS_LIST_COLLECTION 155 Medium
Method mockit.internal.state.MockFixture.reregisterNativeMethodsForRestoredClass(Class) uses AccessibleObject.setAccessible to modify accessibility of classes CORRECTNESS RFI_SET_ACCESSIBLE 463 Medium

mockit.internal.state.ParameterNames

Bug Category Details Line Priority
Class mockit.internal.state.ParameterNames defines static field "mockit.internal.state.ParameterNames.classesToMethodsToParameters" which appears to allow memory bloat CORRECTNESS PMB_POSSIBLE_MEMORY_BLOAT Not available Medium

mockit.internal.state.TestRun

Bug Category Details Line Priority
Method mockit.internal.state.TestRun.ensureThatClassIsInitialized(Class) prints the stack trace to the console STYLE IMC_IMMATURE_CLASS_PRINTSTACKTRACE 208 Medium
Public static mockit.internal.state.TestRun.getExecutingTest() may expose internal representation by returning TestRun.executingTest MALICIOUS_CODE MS_EXPOSE_REP 102 Medium
Public static mockit.internal.state.TestRun.getFakeClasses() may expose internal representation by returning TestRun.fakeClasses MALICIOUS_CODE MS_EXPOSE_REP 122 Medium
Public static mockit.internal.state.TestRun.getFieldTypeRedefinitions() may expose internal representation by returning TestRun.fieldTypeRedefinitions MALICIOUS_CODE MS_EXPOSE_REP 87 Medium
Public static mockit.internal.state.TestRun.getTestedClassInstantiations() may expose internal representation by returning TestRun.testedClassInstantiations MALICIOUS_CODE MS_EXPOSE_REP 92 Medium
Public static mockit.internal.state.TestRun.mockFixture() may expose internal representation by returning TestRun.mockFixture MALICIOUS_CODE MS_EXPOSE_REP 97 Medium

mockit.internal.util.ClassLoad

Bug Category Details Line Priority
Unconstrained method mockit.internal.util.ClassLoad.loadFromLoader(ClassLoader, String) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 119 High
Method mockit.internal.util.ClassLoad.loadClass(String) prints the stack trace to the console STYLE IMC_IMMATURE_CLASS_PRINTSTACKTRACE 44 Medium
Method mockit.internal.util.ClassLoad.loadClassAtStartup(String) prints the stack trace to the console STYLE IMC_IMMATURE_CLASS_PRINTSTACKTRACE 96 Medium
Method mockit.internal.util.ClassLoad.loadFromLoader(ClassLoader, String) throws alternative exception from catch block without history CORRECTNESS LEST_LOST_EXCEPTION_STACK_TRACE 119 Medium
Method mockit.internal.util.ClassLoad.actualSuperClass(String, String) makes literal string comparisons passing the literal as an argument STYLE LSC_LITERAL_STRING_COMPARISON 172 High
Class mockit.internal.util.ClassLoad defines static field "mockit.internal.util.ClassLoad.LOADED_CLASSES" which appears to allow memory bloat CORRECTNESS PMB_POSSIBLE_MEMORY_BLOAT Not available Medium
Class mockit.internal.util.ClassLoad defines static field "mockit.internal.util.ClassLoad.SUPER_CLASSES" which appears to allow memory bloat CORRECTNESS PMB_POSSIBLE_MEMORY_BLOAT Not available Medium

mockit.internal.util.DefaultValues

Bug Category Details Line Priority
mockit.internal.util.DefaultValues.addJava8TypeMapEntries() might ignore java.lang.Exception BAD_PRACTICE DE_MIGHT_IGNORE 186 Medium
Exception is caught when Exception is not thrown in mockit.internal.util.DefaultValues.addJava8TypeMapEntries() STYLE REC_CATCH_EXCEPTION 186 Medium
Method mockit.internal.util.DefaultValues.computeForWrapperType(Type) returns more specific type of object than declared STYLE URV_CHANGE_RETURN_TYPE 296 Medium
Method mockit.internal.util.DefaultValues.defaultValueForPrimitiveType(Class) returns more specific type of object than declared STYLE URV_CHANGE_RETURN_TYPE 265 Medium

mockit.internal.util.MethodFormatter

Bug Category Details Line Priority
mockit.internal.util.MethodFormatter.getParameterTypes() may expose internal representation by returning MethodFormatter.parameterTypes MALICIOUS_CODE EI_EXPOSE_REP 64 Medium
classDesc must be non-null but is marked as nullable STYLE NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE 36-41 High
Double assignment of field MethodFormatter.methodDesc in new mockit.internal.util.MethodFormatter(String, String, boolean) STYLE SA_FIELD_DOUBLE_ASSIGNMENT 53 Medium

mockit.internal.util.ObjectMethods

Bug Category Details Line Priority
Method mockit.internal.util.ObjectMethods.evaluateOverride(Object, String, Object[]) returns more specific type of object than declared STYLE URV_CHANGE_RETURN_TYPE 24 Medium

mockit.internal.util.StackTrace

Bug Category Details Line Priority
new mockit.internal.util.StackTrace(Throwable) may expose internal representation by storing an externally mutable object into StackTrace.throwable MALICIOUS_CODE EI_EXPOSE_REP2 22 Medium

mockit.internal.util.TestMethod

Bug Category Details Line Priority
new mockit.internal.util.TestMethod(Method, Object[]) may expose internal representation by storing an externally mutable object into TestMethod.parameterValues MALICIOUS_CODE EI_EXPOSE_REP2 42 Medium

mockit.internal.util.TypeConversion

Bug Category Details Line Priority
Method mockit.internal.util.TypeConversion.newWrapperInstance(Class, String) throws alternative exception from catch block without history CORRECTNESS LEST_LOST_EXCEPTION_STACK_TRACE 81 Medium
Method mockit.internal.util.TypeConversion.enumValue(Class, String) declares unbound method template parameter(s) CORRECTNESS UMTP_UNBOUND_METHOD_TEMPLATE_PARAMETER 90-91 Medium
Method mockit.internal.util.TypeConversion.newWrapperInstance(Class, String) returns more specific type of object than declared STYLE URV_CHANGE_RETURN_TYPE 78 Medium

mockit.internal.util.Utilities

Bug Category Details Line Priority
Method mockit.internal.util.Utilities.ensureThatMemberIsAccessible(AccessibleObject) uses AccessibleObject.setAccessible to modify accessibility of classes CORRECTNESS RFI_SET_ACCESSIBLE 46 Medium

otherTests.BaseClass

Bug Category Details Line Priority
The longField field in class otherTests.BaseClass is used only as a local, but defined on class level CORRECTNESS FCBL_FIELD_COULD_BE_LOCAL 35 Medium

otherTests.DeencapsulationTest

Bug Category Details Line Priority
otherTests.DeencapsulationTest.lambda$attemptToSetStaticFieldByTypeWithWrongType$0() invokes inefficient new String() constructor PERFORMANCE DM_STRING_VOID_CTOR 294 Medium

otherTests.DeencapsulationTest$Subclass

Bug Category Details Line Priority
Unread field: otherTests.DeencapsulationTest$Subclass.initialValue; should this field be static? PERFORMANCE SS_SHOULD_BE_STATIC 29 Medium

otherTests.JUnit4Test

Bug Category Details Line Priority
Call to mockit.ClassWithObjectOverrides.equals(String) in otherTests.JUnit4Test.useMockedInstance() CORRECTNESS EC_UNRELATED_TYPES 50 Medium
Method otherTests.JUnit4Test.useMockedInstance() ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 50 Medium
Method otherTests.JUnit4Test.useMockedInstance() ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 52 Medium
Return value of new mockit.ClassWithObjectOverrides(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 48 Medium
Method otherTests.JUnit4Test.useArgumentMatchingFields(JUnit4Test$AnotherClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 119 Medium
Method otherTests.JUnit4Test.useArgumentMatchingMethods(JUnit4Test$AnotherClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 136 Medium
Method otherTests.JUnit4Test.useArgumentMatchingMethods(JUnit4Test$AnotherClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 175 Medium
Method otherTests.JUnit4Test.useMockedInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 48 Medium
Method otherTests.JUnit4Test.useMockedInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 54 Medium

otherTests.JUnit4Test$1

Bug Category Details Line Priority
Call to mockit.ClassWithObjectOverrides.equals(String) in new otherTests.JUnit4Test$1(JUnit4Test) CORRECTNESS EC_UNRELATED_TYPES 57 High
Method new otherTests.JUnit4Test$1(JUnit4Test) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 57 Medium
Method new otherTests.JUnit4Test$1(JUnit4Test) ignores return value of a non mutating method CORRECTNESS NPMC_NON_PRODUCTIVE_METHOD_CALL 63 Medium

otherTests.JUnit4Test$3

Bug Category Details Line Priority
Return value of JUnit4Test$AnotherClass.getModifiedValue(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 141 Medium

otherTests.JUnit4Test$3$1

Bug Category Details Line Priority
Uncallable method otherTests.JUnit4Test$3$1.delegate(Invocation, String) defined in anonymous class CORRECTNESS UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS 156-160 Medium

otherTests.JUnit4Test$4

Bug Category Details Line Priority
Return value of JUnit4Test$AnotherClass.getModifiedValue(String) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 178 Medium

otherTests.JUnit4Test$AnotherClass

Bug Category Details Line Priority
To make log readable, log format ({}) should contain non-sign character. BAD_PRACTICE SLF4J_SIGN_ONLY_FORMAT 94 Medium
To make log readable, log format ({}) should contain non-sign character. BAD_PRACTICE SLF4J_SIGN_ONLY_FORMAT 95 Medium

otherTests.SubclassTest

Bug Category Details Line Priority
Method otherTests.SubclassTest.captureSubclassThroughClassfileTransformer(SubclassTest$SuperClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 90 Medium
Method otherTests.SubclassTest.captureSubclassThroughRedefinitionOfPreviouslyLoadedClasses(SubclassTest$SuperClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 104 Medium
Method otherTests.SubclassTest.mockSubclassUsingExpectationsWithFirstSuperConstructor(SubclassTest$SubClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 118 Medium
Method otherTests.SubclassTest.mockSubclassUsingExpectationsWithFirstSuperConstructor(SubclassTest$SubClass) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 124 Medium
Write to static field otherTests.SubclassTest.subClassConstructorCalled from instance method otherTests.SubclassTest.setUp() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 79 High
Write to static field otherTests.SubclassTest.superClassConstructorCalled from instance method otherTests.SubclassTest.setUp() STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 78 High

otherTests.SubclassTest$1

Bug Category Details Line Priority
Method new otherTests.SubclassTest$1(SubclassTest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 120 Medium

otherTests.SubclassTest$SubClass

Bug Category Details Line Priority
Write to static field otherTests.SubclassTest.subClassConstructorCalled from instance method new otherTests.SubclassTest$SubClass(String) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 69 Medium

otherTests.SubclassTest$SuperClass

Bug Category Details Line Priority
Write to static field otherTests.SubclassTest.superClassConstructorCalled from instance method new otherTests.SubclassTest$SuperClass(int, String) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 52 Medium

otherTests.multicast.Message

Bug Category Details Line Priority
new otherTests.multicast.Message(Client[], String, StatusListener) may expose internal representation by storing an externally mutable object into Message.to MALICIOUS_CODE EI_EXPOSE_REP2 24 Medium

otherTests.multicast.Message$MessageDispatcher

Bug Category Details Line Priority
Found reliance on default encoding in otherTests.multicast.Message$MessageDispatcher.readRequiredReceipts(InputStream): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 72 High
Found reliance on default encoding in otherTests.multicast.Message$MessageDispatcher.sendMessage(OutputStream): new java.io.PrintWriter(OutputStream, boolean) I18N DM_DEFAULT_ENCODING 67 High
Unencrypted socket to otherTests.multicast.Message$MessageDispatcher (instead of SSLSocket) SECURITY UNENCRYPTED_SOCKET 60 Medium

otherTests.multicast.MessageTest

Bug Category Details Line Priority
Method otherTests.multicast.MessageTest.sendMessageToMultipleClients(Socket) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 71 Medium
Method otherTests.multicast.MessageTest.sendMessageToMultipleClients(Socket) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 81 Medium
Method otherTests.multicast.MessageTest.sendMessageToMultipleClients(Socket) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 90 Medium

otherTests.multicast.MessageTest$1

Bug Category Details Line Priority
Exception thrown in class otherTests.multicast.MessageTest$1 at new otherTests.multicast.MessageTest$1(MessageTest, Socket) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 73 Medium

otherTests.multicast.MessageTest$TaskExecution

Bug Category Details Line Priority
otherTests.multicast.MessageTest$TaskExecution.waitForCompletionOfNewTasks(List): 1st parameter 'tasksBefore' could be declared as java.util.Collection instead STYLE OCP_OVERLY_CONCRETE_COLLECTION_PARAMETER 48 Medium

otherTests.testng.BaseTestNGDecoratorTest

Bug Category Details Line Priority
Method otherTests.testng.BaseTestNGDecoratorTest.beforeBase() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 44 Medium

otherTests.testng.DynamicMockingInBeforeMethodTest

Bug Category Details Line Priority
Method otherTests.testng.DynamicMockingInBeforeMethodTest.recordExpectationsOnDynamicallyMockedClass() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 32 Medium
Method otherTests.testng.DynamicMockingInBeforeMethodTest.verifyThatDynamicallyMockedClassIsStillMocked() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 43 Medium

otherTests.testng.DynamicMockingInBeforeMethodTest$1

Bug Category Details Line Priority
Method new otherTests.testng.DynamicMockingInBeforeMethodTest$1(DynamicMockingInBeforeMethodTest, Object[]) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 35 Medium
Return value of DynamicMockingInBeforeMethodTest$MockedClass.doSomething(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 34 Medium

otherTests.testng.DynamicMockingInBeforeMethodTest$2

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

otherTests.testng.TestNGCascadingInSetupTest

Bug Category Details Line Priority
Method otherTests.testng.TestNGCascadingInSetupTest.recordValueForCascadedInstance() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 34 Medium

otherTests.testng.TestNGCascadingInSetupTest$1

Bug Category Details Line Priority
Return value of TestNGCascadingInSetupTest$Bar.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 36 Medium

otherTests.testng.TestNGCascadingTest

Bug Category Details Line Priority
Method otherTests.testng.TestNGCascadingTest.useExpectationResultRecordedOnCascadedInstance(ITestContext) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 35 Medium

otherTests.testng.TestNGCascadingTest$1

Bug Category Details Line Priority
Return value of TestNGCascadingTest$Bar.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 37 Medium

otherTests.testng.TestNGDecoratorTest

Bug Category Details Line Priority
Method otherTests.testng.TestNGDecoratorTest.applyAndUseFakesAgain() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 44 Medium
Method otherTests.testng.TestNGDecoratorTest.applyAndUseSomeFakes() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 33 Medium

otherTests.testng.TestNGExpectationsTest

Bug Category Details Line Priority
Method otherTests.testng.TestNGExpectationsTest.setUpTestMethod1() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 36 Medium
Method otherTests.testng.TestNGExpectationsTest.setUpTestMethod2() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 47 Medium
Method otherTests.testng.TestNGExpectationsTest.tearDownTestMethod() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 58 Medium
Method otherTests.testng.TestNGExpectationsTest.testSomething() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 67 Medium
Method otherTests.testng.TestNGExpectationsTest.testSomething() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 80 Medium
Method otherTests.testng.TestNGExpectationsTest.testSomethingElse() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 93 Medium

otherTests.testng.TestNGExpectationsTest$1

Bug Category Details Line Priority
Method new otherTests.testng.TestNGExpectationsTest$1(TestNGExpectationsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 39 Medium
Return value of mockit.integration.MockedClass.doSomethingElse(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 38 Medium

otherTests.testng.TestNGExpectationsTest$2

Bug Category Details Line Priority
Return value of mockit.integration.MockedClass.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 49 Medium

otherTests.testng.TestNGExpectationsTest$3

Bug Category Details Line Priority
Return value of mockit.integration.MockedClass.doSomethingElse(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 60 Medium

otherTests.testng.TestNGExpectationsTest$4

Bug Category Details Line Priority
Method new otherTests.testng.TestNGExpectationsTest$4(TestNGExpectationsTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 70 Medium
Return value of mockit.integration.MockedClass.doSomething(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 69 Medium

otherTests.testng.TestNGExpectationsTest$5

Bug Category Details Line Priority
Return value of mockit.integration.MockedClass.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 82 Medium

otherTests.testng.TestNGExpectationsTest$6

Bug Category Details Line Priority
Return value of mockit.integration.MockedClass.doSomething(int) ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 96 Medium
Return value of mockit.integration.MockedClass.getValue() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 95 Medium

otherTests.testng.TestNGSharedMockFieldTest

Bug Category Details Line Priority
Method otherTests.testng.TestNGSharedMockFieldTest.preventAllWritesToMockedBufferedWritersFromSUT() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 66 Medium
Method otherTests.testng.TestNGSharedMockFieldTest.recordAndReplayExpectationsOnSharedMocks() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 39 Medium
Method otherTests.testng.TestNGSharedMockFieldTest.recordAndReplayExpectationsOnSharedMocksAgain() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 53 Medium

otherTests.testng.TestNGSharedMockFieldTest$1

Bug Category Details Line Priority
Method new otherTests.testng.TestNGSharedMockFieldTest$1(TestNGSharedMockFieldTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 42 Medium

otherTests.testng.TestNGSharedMockFieldTest$2

Bug Category Details Line Priority
Method new otherTests.testng.TestNGSharedMockFieldTest$2(TestNGSharedMockFieldTest) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 56 Medium

otherTests.testng.TestNGSharedMockFieldTest$3

Bug Category Details Line Priority
Exception thrown in class otherTests.testng.TestNGSharedMockFieldTest$3 at new otherTests.testng.TestNGSharedMockFieldTest$3(TestNGSharedMockFieldTest) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 68 Medium

otherTests.testng.TestNGViolatedExpectationsTest

Bug Category Details Line Priority
Return value of new mockit.integration.Collaborator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 51 Medium
Method otherTests.testng.TestNGViolatedExpectationsTest.expectInvocationWhichDoesNotOccurInTestedCodeThatThrowsAnException_1(Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 23 Medium
Method otherTests.testng.TestNGViolatedExpectationsTest.expectInvocationWhichDoesNotOccurInTestedCodeThatThrowsAnException_2(Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 32 Medium
Method otherTests.testng.TestNGViolatedExpectationsTest.expectInvocationWhichDoesNotOccurInTestedCodeThatThrowsAnException_3(Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 44 Medium
Method otherTests.testng.TestNGViolatedExpectationsTest.expectInvocationWhichDoesNotOccurInTestedCodeThatThrowsAnException_3(Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 51 Medium
Method otherTests.testng.TestNGViolatedExpectationsTest.expectInvocationWhichDoesNotOccurInTestedCodeThatThrowsAnException_3(Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 52 Medium
Method otherTests.testng.TestNGViolatedExpectationsTest.expectInvocationWhichDoesNotOccurInTestedCodeThatThrowsAnException_4(Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 57 Medium
Method otherTests.testng.TestNGViolatedExpectationsTest.expectInvocationWhichDoesNotOccurInTestedCodeThatThrowsAnException_5(Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 73 Medium
Method otherTests.testng.TestNGViolatedExpectationsTest.expectInvocationWhichDoesNotOccurInTestedCodeThatThrowsAnException_6(Collaborator) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 88 Medium

otherTests.testng.TestNGViolatedExpectationsTest$3

Bug Category Details Line Priority
Return value of new mockit.integration.Collaborator() ignored, but method has no side effect STYLE RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT 46 Medium
Method new otherTests.testng.TestNGViolatedExpectationsTest$3(TestNGViolatedExpectationsTest) uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 46 Medium

otherTests.testng.TestedAndInjectablesTest

Bug Category Details Line Priority
Method otherTests.testng.TestedAndInjectablesTest.firstTest() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 107 Medium
Method otherTests.testng.TestedAndInjectablesTest.recordAndVerifyExpectationsOnMockedInterface() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 149 Medium
Method otherTests.testng.TestedAndInjectablesTest.recordAndVerifyExpectationsOnMockedInterface() uses a Side Effect Constructor STYLE SEC_SIDE_EFFECT_CONSTRUCTOR 160 Medium

otherTests.testng.TestedAndInjectablesTest$2

Bug Category Details Line Priority
Exception thrown in class otherTests.testng.TestedAndInjectablesTest$2 at new otherTests.testng.TestedAndInjectablesTest$2(TestedAndInjectablesTest) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 151 Medium

otherTests.testng.TestedAndInjectablesTest$3

Bug Category Details Line Priority
Exception thrown in class otherTests.testng.TestedAndInjectablesTest$3 at new otherTests.testng.TestedAndInjectablesTest$3(TestedAndInjectablesTest) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 162 Medium

otherTests.testng.TestedAndInjectablesTest$SUT

Bug Category Details Line Priority
Read of unwritten field collaborator2 in otherTests.testng.TestedAndInjectablesTest$SUT.useCollaborators() CORRECTNESS NP_UNWRITTEN_FIELD 47 Medium
Unwritten field: otherTests.testng.TestedAndInjectablesTest$SUT.collaborator2 CORRECTNESS UWF_UNWRITTEN_FIELD 47 Medium