FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 1.2.1

Threshold is Low

Effort is Default

Summary

Classes Bugs Errors Missing Classes
466 33 0 0

org.apache.camel.component.ResourceBasedEndpoint

Bug Category Details Line
org.apache.camel.component.ResourceBasedEndpoint.getResourceAsInputStream() synchronizes on updated field ResourceBasedEndpoint.resource MT_CORRECTNESS ML_SYNC_ON_UPDATED_FIELD 98

org.apache.camel.component.event.CamelEvent

Bug Category Details Line
Class org.apache.camel.component.event.CamelEvent defines non-transient non-serializable instance field exchange BAD_PRACTICE SE_BAD_FIELD Not available
org.apache.camel.component.event.CamelEvent is Serializable; consider declaring a serialVersionUID BAD_PRACTICE SE_NO_SERIALVERSIONID 27-46

org.apache.camel.component.file.AntPathMatcherFileFilter

Bug Category Details Line
org.apache.camel.component.file.AntPathMatcherFileFilter.getExcludes() may expose internal representation by returning AntPathMatcherFileFilter.excludes MALICIOUS_CODE EI_EXPOSE_REP 87
org.apache.camel.component.file.AntPathMatcherFileFilter.getIncludes() may expose internal representation by returning AntPathMatcherFileFilter.includes MALICIOUS_CODE EI_EXPOSE_REP 95
org.apache.camel.component.file.AntPathMatcherFileFilter.setExcludes(String[]) may expose internal representation by storing an externally mutable object into AntPathMatcherFileFilter.excludes MALICIOUS_CODE EI_EXPOSE_REP2 91
org.apache.camel.component.file.AntPathMatcherFileFilter.setIncludes(String[]) may expose internal representation by storing an externally mutable object into AntPathMatcherFileFilter.includes MALICIOUS_CODE EI_EXPOSE_REP2 99

org.apache.camel.spring.CamelBeanPostProcessor

Bug Category Details Line
Unread field: org.apache.camel.spring.CamelBeanPostProcessor.applicationContext PERFORMANCE URF_UNREAD_FIELD 101

org.apache.camel.spring.CamelBeanPostProcessor$1

Bug Category Details Line
The class org.apache.camel.spring.CamelBeanPostProcessor$1 could be refactored into a named _static_ inner class PERFORMANCE SIC_INNER_SHOULD_BE_STATIC_ANON 110-113

org.apache.camel.spring.CamelBeanPostProcessor$4

Bug Category Details Line
The class org.apache.camel.spring.CamelBeanPostProcessor$4 could be refactored into a named _static_ inner class PERFORMANCE SIC_INNER_SHOULD_BE_STATIC_ANON 182-202

org.apache.camel.spring.CamelContextFactoryBean

Bug Category Details Line
org.apache.camel.spring.CamelContextFactoryBean.getPackages() may expose internal representation by returning CamelContextFactoryBean.packages MALICIOUS_CODE EI_EXPOSE_REP 378
org.apache.camel.spring.CamelContextFactoryBean.setPackages(String[]) may expose internal representation by storing an externally mutable object into CamelContextFactoryBean.packages MALICIOUS_CODE EI_EXPOSE_REP2 390
Unused field: org.apache.camel.spring.CamelContextFactoryBean.beans PERFORMANCE UUF_UNUSED_FIELD Not available
Unused field: org.apache.camel.spring.CamelContextFactoryBean.endpoints PERFORMANCE UUF_UNUSED_FIELD Not available

org.apache.camel.spring.CamelProxyFactoryType

Bug Category Details Line
Unused field: org.apache.camel.spring.CamelProxyFactoryType.serviceInterface PERFORMANCE UUF_UNUSED_FIELD Not available
Unused field: org.apache.camel.spring.CamelProxyFactoryType.serviceUrl PERFORMANCE UUF_UNUSED_FIELD Not available

org.apache.camel.spring.CamelServiceExporterType

Bug Category Details Line
Unused field: org.apache.camel.spring.CamelServiceExporterType.serviceInterface PERFORMANCE UUF_UNUSED_FIELD Not available
Unused field: org.apache.camel.spring.CamelServiceExporterType.serviceRef PERFORMANCE UUF_UNUSED_FIELD Not available
Unused field: org.apache.camel.spring.CamelServiceExporterType.uri PERFORMANCE UUF_UNUSED_FIELD Not available

org.apache.camel.spring.EndpointFactoryBean

Bug Category Details Line
EndpointFactoryBean.context not initialized in constructor STYLE UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR Not available

org.apache.camel.spring.Main$HangupInterceptor

Bug Category Details Line
Should org.apache.camel.spring.Main$HangupInterceptor be a _static_ inner class? PERFORMANCE SIC_INNER_SHOULD_BE_STATIC 76-91

org.apache.camel.spring.RouteBuilderFinder

Bug Category Details Line
org.apache.camel.spring.RouteBuilderFinder.getPackages() may expose internal representation by returning RouteBuilderFinder.packages MALICIOUS_CODE EI_EXPOSE_REP 65
org.apache.camel.spring.RouteBuilderFinder.RouteBuilderFinder(SpringCamelContext, String[], ClassLoader, BeanPostProcessor, ResolverUtil) may expose internal representation by storing an externally mutable object into RouteBuilderFinder.packages MALICIOUS_CODE EI_EXPOSE_REP2 48

org.apache.camel.spring.remoting.CamelProxyFactoryBean

Bug Category Details Line
CamelProxyFactoryBean.producer not initialized in constructor STYLE UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR Not available

org.apache.camel.spring.remoting.SendBeforeInterceptor

Bug Category Details Line
SendBeforeInterceptor.invocationHandler not initialized in constructor STYLE UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR Not available

org.apache.camel.spring.spi.SpringTransactionPolicy

Bug Category Details Line
Redundant nullcheck of transactionTemplate, which is known to be non-null in org.apache.camel.spring.spi.SpringTransactionPolicy.wrap(Processor) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 49

org.apache.camel.spring.spi.TransactionInterceptor

Bug Category Details Line
Unwritten field: org.apache.camel.spring.spi.TransactionInterceptor.redeliveryPolicy CORRECTNESS UWF_UNWRITTEN_FIELD 135

org.apache.camel.spring.util.MainRunner

Bug Category Details Line
org.apache.camel.spring.util.MainRunner.getArgs() may expose internal representation by returning MainRunner.args MALICIOUS_CODE EI_EXPOSE_REP 80
org.apache.camel.spring.util.MainRunner.setArgs(String[]) may expose internal representation by storing an externally mutable object into MainRunner.args MALICIOUS_CODE EI_EXPOSE_REP2 84
MainRunner.main not initialized in constructor STYLE UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR Not available

org.apache.camel.spring.util.ReflectionUtils

Bug Category Details Line
org.apache.camel.spring.util.ReflectionUtils.setField(Field, Object, Object) invokes java.lang.reflect.Field.setAccessible(boolean), which should be invoked from within a doPrivileged block BAD_PRACTICE DP_DO_INSIDE_DO_PRIVILEGED 53
org.apache.camel.spring.util.ReflectionUtils.setField(Field, Object, Object) invokes java.lang.reflect.Field.setAccessible(boolean), which should be invoked from within a doPrivileged block BAD_PRACTICE DP_DO_INSIDE_DO_PRIVILEGED 57

org.apache.camel.spring.util.SimpleRouteBuilder

Bug Category Details Line
Dead store to route in org.apache.camel.spring.util.SimpleRouteBuilder.addBeanCall(ProcessorType) STYLE DLS_DEAD_LOCAL_STORE 126