FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 1.2.1

Threshold is Normal

Effort is Default

Summary

Classes Bugs Errors Missing Classes
697 19 0 0

org.springframework.osgi.context.internal.classloader.CachingAopClassLoaderFactory

Bug Category Details Line
org.springframework.osgi.context.internal.classloader.CachingAopClassLoaderFactory.createClassLoader(ClassLoader) creates a org.springframework.osgi.context.internal.classloader.ChainedClassLoader classloader, which should be performed within a doPrivileged block BAD_PRACTICE DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED 69
org.springframework.osgi.context.internal.classloader.CachingAopClassLoaderFactory.createClassLoader(ClassLoader) creates a org.springframework.osgi.context.internal.classloader.ChainedClassLoader classloader, which should be performed within a doPrivileged block BAD_PRACTICE DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED 74

org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext

Bug Category Details Line
org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.setConfigLocations(String[]) may expose internal representation by storing an externally mutable object into AbstractOsgiBundleApplicationContext.configLocations MALICIOUS_CODE EI_EXPOSE_REP2 174

org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean

Bug Category Details Line
org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.setBeanClassLoader(ClassLoader) creates a org.springframework.osgi.context.internal.classloader.ChainedClassLoader classloader, which should be performed within a doPrivileged block BAD_PRACTICE DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED 424
org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.getInterfaces() may expose internal representation by returning OsgiServiceFactoryBean.interfaces MALICIOUS_CODE EI_EXPOSE_REP 619
org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.setInterfaces(Class[]) may expose internal representation by storing an externally mutable object into OsgiServiceFactoryBean.interfaces MALICIOUS_CODE EI_EXPOSE_REP2 629

org.springframework.osgi.service.importer.support.AbstractOsgiServiceImportFactoryBean

Bug Category Details Line
org.springframework.osgi.service.importer.support.AbstractOsgiServiceImportFactoryBean.getInterfaces() may expose internal representation by returning AbstractOsgiServiceImportFactoryBean.interfaces MALICIOUS_CODE EI_EXPOSE_REP 218
org.springframework.osgi.service.importer.support.AbstractOsgiServiceImportFactoryBean.getListeners() may expose internal representation by returning AbstractOsgiServiceImportFactoryBean.listeners MALICIOUS_CODE EI_EXPOSE_REP 236
org.springframework.osgi.service.importer.support.AbstractOsgiServiceImportFactoryBean.setInterfaces(Class[]) may expose internal representation by storing an externally mutable object into AbstractOsgiServiceImportFactoryBean.interfaces MALICIOUS_CODE EI_EXPOSE_REP2 132
org.springframework.osgi.service.importer.support.AbstractOsgiServiceImportFactoryBean.setListeners(OsgiServiceLifecycleListener[]) may expose internal representation by storing an externally mutable object into AbstractOsgiServiceImportFactoryBean.listeners MALICIOUS_CODE EI_EXPOSE_REP2 170

org.springframework.osgi.service.importer.support.ServiceReferenceDelegate

Bug Category Details Line
org.springframework.osgi.service.importer.support.ServiceReferenceDelegate defines compareTo(Object) and uses Object.equals() BAD_PRACTICE EQ_COMPARETO_USE_OBJECT_EQUALS 71

org.springframework.osgi.service.importer.support.StaticServiceProxyCreator

Bug Category Details Line
Invocation of toString on an array in org.springframework.osgi.service.importer.support.StaticServiceProxyCreator.discoverProxyClasses(ServiceReference) CORRECTNESS DMI_INVOKING_TOSTRING_ON_ARRAY 142

org.springframework.osgi.service.importer.support.internal.aop.ImportedOsgiServiceProxyAdvice

Bug Category Details Line
The field org.springframework.osgi.service.importer.support.internal.aop.ImportedOsgiServiceProxyAdvice.reference is transient but isn't set by deserialization BAD_PRACTICE SE_TRANSIENT_FIELD_NOT_RESTORED Not available

org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor

Bug Category Details Line
org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor.getListeners() may expose internal representation by returning ServiceDynamicInterceptor.listeners MALICIOUS_CODE EI_EXPOSE_REP 508
org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor.setListeners(OsgiServiceLifecycleListener[]) may expose internal representation by storing an externally mutable object into ServiceDynamicInterceptor.listeners MALICIOUS_CODE EI_EXPOSE_REP2 512

org.springframework.osgi.service.importer.support.internal.collection.OsgiServiceCollection

Bug Category Details Line
org.springframework.osgi.service.importer.support.internal.collection.OsgiServiceCollection.setListeners(OsgiServiceLifecycleListener[]) may expose internal representation by storing an externally mutable object into OsgiServiceCollection.listeners MALICIOUS_CODE EI_EXPOSE_REP2 450

org.springframework.osgi.util.DebugUtils

Bug Category Details Line
Dead store to highEqualTo in org.springframework.osgi.util.DebugUtils.getVersion(String, String) STYLE DLS_DEAD_LOCAL_STORE 381
Dead store to highLessThen in org.springframework.osgi.util.DebugUtils.getVersion(String, String) STYLE DLS_DEAD_LOCAL_STORE 382
Dead store to right in org.springframework.osgi.util.DebugUtils.getVersion(String, String) STYLE DLS_DEAD_LOCAL_STORE 390