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
29 35 0 0

Files

Class Bugs
com.github.hazendaz.beanprovider.BeanProvider 1
com.github.hazendaz.beanprovider.BeanProviderTest 4
com.github.hazendaz.beanprovider.DummyInjection 1
com.github.hazendaz.beanprovider.internal.deltaspike.literal.AlternativeLiteral 1
com.github.hazendaz.beanprovider.internal.deltaspike.literal.AnyLiteral 1
com.github.hazendaz.beanprovider.internal.deltaspike.literal.ApplicationScopedLiteral 1
com.github.hazendaz.beanprovider.internal.deltaspike.literal.NamedLiteral 1
com.github.hazendaz.beanprovider.internal.deltaspike.literal.TypedLiteral 3
com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedCallableImpl 3
com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedConstructorImpl 1
com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedFieldImpl 1
com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedMethodImpl 1
com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilder 10
com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilderTest 1
com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilderTest$EnumWithParams 1
com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeImpl 4

com.github.hazendaz.beanprovider.BeanProvider

Bug Category Details Line Priority
Unconstrained method com.github.hazendaz.beanprovider.BeanProvider.injectFields(Object, Map) converts checked exception to unchecked STYLE EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS 104 High

com.github.hazendaz.beanprovider.BeanProviderTest

Bug Category Details Line Priority
The context field in class com.github.hazendaz.beanprovider.BeanProviderTest is used only as a local, but defined on class level CORRECTNESS FCBL_FIELD_COULD_BE_LOCAL Not available Medium
Method com.github.hazendaz.beanprovider.BeanProviderTest.privateConstructorTest() uses AccessibleObject.setAccessible to modify accessibility of classes CORRECTNESS RFI_SET_ACCESSIBLE 93 Medium
Unread public/protected field: com.github.hazendaz.beanprovider.BeanProviderTest.weld STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD 32 Medium
Method com.github.hazendaz.beanprovider.BeanProviderTest.privateConstructorTest() passes explicit null value to var arg parameter STYLE UVA_REMOVE_NULL_ARG 94 Medium

com.github.hazendaz.beanprovider.DummyInjection

Bug Category Details Line Priority
Method com.github.hazendaz.beanprovider.DummyInjection.hashCode() stores return result in local before immediately returning it STYLE USBR_UNNECESSARY_STORE_BEFORE_RETURN 15 Medium

com.github.hazendaz.beanprovider.internal.deltaspike.literal.AlternativeLiteral

Bug Category Details Line Priority
Class com.github.hazendaz.beanprovider.internal.deltaspike.literal.AlternativeLiteral defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium

com.github.hazendaz.beanprovider.internal.deltaspike.literal.AnyLiteral

Bug Category Details Line Priority
Class com.github.hazendaz.beanprovider.internal.deltaspike.literal.AnyLiteral defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium

com.github.hazendaz.beanprovider.internal.deltaspike.literal.ApplicationScopedLiteral

Bug Category Details Line Priority
Class com.github.hazendaz.beanprovider.internal.deltaspike.literal.ApplicationScopedLiteral defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium

com.github.hazendaz.beanprovider.internal.deltaspike.literal.NamedLiteral

Bug Category Details Line Priority
Class com.github.hazendaz.beanprovider.internal.deltaspike.literal.NamedLiteral defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium

com.github.hazendaz.beanprovider.internal.deltaspike.literal.TypedLiteral

Bug Category Details Line Priority
com.github.hazendaz.beanprovider.internal.deltaspike.literal.TypedLiteral.value() may expose internal representation by returning TypedLiteral.value MALICIOUS_CODE EI_EXPOSE_REP 46 Medium
new com.github.hazendaz.beanprovider.internal.deltaspike.literal.TypedLiteral(Class[]) may expose internal representation by storing an externally mutable object into TypedLiteral.value MALICIOUS_CODE EI_EXPOSE_REP2 41 Medium
Class com.github.hazendaz.beanprovider.internal.deltaspike.literal.TypedLiteral defines a computed serialVersionUID that doesn't equate to the calculated value CORRECTNESS IMC_IMMATURE_CLASS_BAD_SERIALVERSIONUID Not available Medium

com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedCallableImpl

Bug Category Details Line Priority
Method com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedCallableImpl.getAnnotatedParameters(AnnotatedCallableImpl, Class[], Type[], Map, Map) checks a map with containsKey(), before using get() CORRECTNESS MUI_CONTAINSKEY_BEFORE_GET 75 Medium
Method com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedCallableImpl.getAnnotatedParameters(AnnotatedCallableImpl, Class[], Type[], Map, Map) allocates an object that is used in a constant way in a loop PERFORMANCE PCAIL_POSSIBLE_CONSTANT_ALLOCATION_IN_LOOP 73 Medium
Method com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedCallableImpl.getAnnotatedParameters(AnnotatedCallableImpl, Class[], Type[], Map, Map) does not presize the allocation of a collection PERFORMANCE PSC_PRESIZE_COLLECTIONS 84 Medium

com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedConstructorImpl

Bug Category Details Line Priority
Class com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedConstructorImpl implements interface by relying on unknowing superclass methods STYLE SCII_SPOILED_CHILD_INTERFACE_IMPLEMENTOR 35-60 Medium

com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedFieldImpl

Bug Category Details Line Priority
Class com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedFieldImpl implements interface by relying on unknowing superclass methods STYLE SCII_SPOILED_CHILD_INTERFACE_IMPLEMENTOR 35-42 Medium

com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedMethodImpl

Bug Category Details Line Priority
Class com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedMethodImpl implements interface by relying on unknowing superclass methods STYLE SCII_SPOILED_CHILD_INTERFACE_IMPLEMENTOR 36-44 Medium

com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilder

Bug Category Details Line Priority
Method com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilder.create() does not presize the allocation of a collection PERFORMANCE PSC_PRESIZE_COLLECTIONS 747 Medium
Method com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilder.create() does not presize the allocation of a collection PERFORMANCE PSC_PRESIZE_COLLECTIONS 751 Medium
Method com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilder.create() does not presize the allocation of a collection PERFORMANCE PSC_PRESIZE_COLLECTIONS 755 Medium
Method com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilder.create() does not presize the allocation of a collection PERFORMANCE PSC_PRESIZE_COLLECTIONS 757 Medium
Method com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilder.create() does not presize the allocation of a collection PERFORMANCE PSC_PRESIZE_COLLECTIONS 762 Medium
Method com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilder.create() does not presize the allocation of a collection PERFORMANCE PSC_PRESIZE_COLLECTIONS 766 Medium
Method com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilder.create() does not presize the allocation of a collection PERFORMANCE PSC_PRESIZE_COLLECTIONS 768 Medium
Method com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilder.readFromType(Class, boolean) uses AccessibleObject.setAccessible to modify accessibility of classes CORRECTNESS RFI_SET_ACCESSIBLE 645 Medium
Method com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilder.readFromType(Class, boolean) uses AccessibleObject.setAccessible to modify accessibility of classes CORRECTNESS RFI_SET_ACCESSIBLE 661 Medium
Method com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilder.readFromType(Class, boolean) uses AccessibleObject.setAccessible to modify accessibility of classes CORRECTNESS RFI_SET_ACCESSIBLE 694 Medium

com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilderTest

Bug Category Details Line Priority
Method com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilderTest.testTypeLevelAnnotationRedefinition() excessively uses methods of another class STYLE CE_CLASS_ENVY 55-118 Medium

com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilderTest$EnumWithParams

Bug Category Details Line Priority
Enum class com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeBuilderTest$EnumWithParams only declares one enum value CORRECTNESS ENMI_ONE_ENUM_VALUE 191 Medium

com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeImpl

Bug Category Details Line Priority
Method new com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeImpl(Class, AnnotationStore, Map, Map, Map, Map, Map, Map, Map, Map) does not presize the allocation of a collection PERFORMANCE PSC_PRESIZE_COLLECTIONS 73 Medium
Method new com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeImpl(Class, AnnotationStore, Map, Map, Map, Map, Map, Map, Map, Map) does not presize the allocation of a collection PERFORMANCE PSC_PRESIZE_COLLECTIONS 74 Medium
Method new com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeImpl(Class, AnnotationStore, Map, Map, Map, Map, Map, Map, Map, Map) does not presize the allocation of a collection PERFORMANCE PSC_PRESIZE_COLLECTIONS 102 Medium
Method new com.github.hazendaz.beanprovider.internal.deltaspike.metadata.builder.AnnotatedTypeImpl(Class, AnnotationStore, Map, Map, Map, Map, Map, Map, Map, Map) does not presize the allocation of a collection PERFORMANCE PSC_PRESIZE_COLLECTIONS 103 Medium