FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 1.2.0

Threshold is Low

Effort is Default

Summary

ClassesBugsErrorsMissing Classes
9807000

Files

ClassBugs
org.apache.camel.CamelExchangeException1
org.apache.camel.ExpectedBodyTypeException1
org.apache.camel.FailedToCreateProducerException1
org.apache.camel.builder.xml.MessageVariableResolver1
org.apache.camel.component.bean.BeanInfo2
org.apache.camel.component.bean.BeanInvocation2
org.apache.camel.component.bean.MethodInfo$21
org.apache.camel.component.bean.ParameterInfo2
org.apache.camel.component.file.FileEndpoint4
org.apache.camel.component.jmx.JMXEndpoint1
org.apache.camel.component.log.LogComponent2
org.apache.camel.component.seda.SedaConsumer1
org.apache.camel.component.timer.TimerConsumer$11
org.apache.camel.component.timer.TimerEndpoint2
org.apache.camel.component.vm.VmComponent1
org.apache.camel.converter.CollectionConverter1
org.apache.camel.converter.NIOConverter2
org.apache.camel.converter.jaxp.BytesSource3
org.apache.camel.converter.jaxp.StringSource1
org.apache.camel.converter.jaxp.XmlConverter3
org.apache.camel.impl.DefaultCamelContext1
org.apache.camel.impl.DefaultExchange1
org.apache.camel.impl.converter.DefaultTypeConverter1
org.apache.camel.language.ExpressionEvaluationException2
org.apache.camel.language.IllegalSyntaxException1
org.apache.camel.management.CamelNamingStrategy1
org.apache.camel.management.InstrumentationAgentImpl3
org.apache.camel.management.ManagedService1
org.apache.camel.model.AggregatorType$11
org.apache.camel.model.ProcessorType1
org.apache.camel.model.ProcessorType$11
org.apache.camel.model.ResequencerType$11
org.apache.camel.model.RouteType1
org.apache.camel.processor.BatchProcessor1
org.apache.camel.processor.Pipeline1
org.apache.camel.processor.RedeliveryPolicy3
org.apache.camel.processor.SendProcessor1
org.apache.camel.processor.idempotent.NoMessageIdException2
org.apache.camel.util.ExpressionComparator1
org.apache.camel.util.ExpressionListComparator1
org.apache.camel.util.FactoryFinder1
org.apache.camel.util.IntrospectionSupport4
org.apache.camel.util.ResolverUtil1
org.apache.camel.util.URISupport1
org.apache.camel.util.URISupport$CompositeData3
org.apache.camel.util.UuidGenerator1

org.apache.camel.CamelExchangeException

BugCategoryDetailsLine
Class org.apache.camel.CamelExchangeException defines non-transient non-serializable instance field exchangeBAD_PRACTICESE_BAD_FIELDNot available

org.apache.camel.ExpectedBodyTypeException

BugCategoryDetailsLine
Class org.apache.camel.ExpectedBodyTypeException defines non-transient non-serializable instance field exchangeBAD_PRACTICESE_BAD_FIELDNot available

org.apache.camel.FailedToCreateProducerException

BugCategoryDetailsLine
Class org.apache.camel.FailedToCreateProducerException defines non-transient non-serializable instance field endpointBAD_PRACTICESE_BAD_FIELDNot available

org.apache.camel.builder.xml.MessageVariableResolver

BugCategoryDetailsLine
MessageVariableResolver.exchange not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

org.apache.camel.component.bean.BeanInfo

BugCategoryDetailsLine
Dead store to parameterExpressions in org.apache.camel.component.bean.BeanInfo.introspect(Class, Method)STYLEDLS_DEAD_LOCAL_STORE118
Dead store to content in org.apache.camel.component.bean.BeanInfo.createParameterUnmarshalExpressionForAnnotation(Class, Method, Class, Annotation)STYLEDLS_DEAD_LOCAL_STORE267

org.apache.camel.component.bean.BeanInvocation

BugCategoryDetailsLine
org.apache.camel.component.bean.BeanInvocation.getArgs() may expose internal representation by returning BeanInvocation.argsMALICIOUS_CODEEI_EXPOSE_REP37
org.apache.camel.component.bean.BeanInvocation.BeanInvocation(Object, Method, Object[]) may expose internal representation by storing an externally mutable object into BeanInvocation.argsMALICIOUS_CODEEI_EXPOSE_REP233

org.apache.camel.component.bean.MethodInfo$2

BugCategoryDetailsLine
The class org.apache.camel.component.bean.MethodInfo$2 could be refactored into a named _static_ inner classPERFORMANCESIC_INNER_SHOULD_BE_STATIC_ANONNot available

org.apache.camel.component.bean.ParameterInfo

BugCategoryDetailsLine
org.apache.camel.component.bean.ParameterInfo.getAnnotations() may expose internal representation by returning ParameterInfo.annotationsMALICIOUS_CODEEI_EXPOSE_REP40
org.apache.camel.component.bean.ParameterInfo.ParameterInfo(int, Class, Annotation[], Expression) may expose internal representation by storing an externally mutable object into ParameterInfo.annotationsMALICIOUS_CODEEI_EXPOSE_REP235

org.apache.camel.component.file.FileEndpoint

BugCategoryDetailsLine
org.apache.camel.component.file.FileEndpoint.getExcludedNamePostfixes() may expose internal representation by returning FileEndpoint.excludedNamePostfixesMALICIOUS_CODEEI_EXPOSE_REP201
org.apache.camel.component.file.FileEndpoint.getExcludedNamePrefixes() may expose internal representation by returning FileEndpoint.excludedNamePrefixesMALICIOUS_CODEEI_EXPOSE_REP189
org.apache.camel.component.file.FileEndpoint.setExcludedNamePostfixes(String[]) may expose internal representation by storing an externally mutable object into FileEndpoint.excludedNamePostfixesMALICIOUS_CODEEI_EXPOSE_REP2209
org.apache.camel.component.file.FileEndpoint.setExcludedNamePrefixes(String[]) may expose internal representation by storing an externally mutable object into FileEndpoint.excludedNamePrefixesMALICIOUS_CODEEI_EXPOSE_REP2197

org.apache.camel.component.jmx.JMXEndpoint

BugCategoryDetailsLine
JMXEndpoint.mbeanServer not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

org.apache.camel.component.log.LogComponent

BugCategoryDetailsLine
Use of non-localized String.toUpperCase() or String.toLowerCaseI18NDM_CONVERT_CASE47
Redundant nullcheck of level, which is known to be non-null in org.apache.camel.component.log.LogComponent.getLoggingLevel(Map)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE48

org.apache.camel.component.seda.SedaConsumer

BugCategoryDetailsLine
SedaConsumer.thread not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

org.apache.camel.component.timer.TimerConsumer$1

BugCategoryDetailsLine
The class org.apache.camel.component.timer.TimerConsumer$1 could be refactored into a named _static_ inner classPERFORMANCESIC_INNER_SHOULD_BE_STATIC_ANONNot available

org.apache.camel.component.timer.TimerEndpoint

BugCategoryDetailsLine
org.apache.camel.component.timer.TimerEndpoint.getTime() may expose internal representation by returning TimerEndpoint.timeMALICIOUS_CODEEI_EXPOSE_REP114
org.apache.camel.component.timer.TimerEndpoint.setTime(Date) may expose internal representation by storing an externally mutable object into TimerEndpoint.timeMALICIOUS_CODEEI_EXPOSE_REP2118

org.apache.camel.component.vm.VmComponent

BugCategoryDetailsLine
org.apache.camel.component.vm.VmComponent.queues isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL37

org.apache.camel.converter.CollectionConverter

BugCategoryDetailsLine
Should org.apache.camel.converter.CollectionConverter.toArray(Collection) return a zero length array rather than null?STYLEPZLA_PREFER_ZERO_LENGTH_ARRAYS49

org.apache.camel.converter.NIOConverter

BugCategoryDetailsLine
org.apache.camel.converter.NIOConverter.toByteBuffer(File) may fail to close streamBAD_PRACTICEOS_OPEN_STREAM61
org.apache.camel.converter.NIOConverter.toByteBuffer(File) ignores result of java.io.InputStream.read(byte[])BAD_PRACTICERR_NOT_CHECKED62

org.apache.camel.converter.jaxp.BytesSource

BugCategoryDetailsLine
org.apache.camel.converter.jaxp.BytesSource.getData() may expose internal representation by returning BytesSource.dataMALICIOUS_CODEEI_EXPOSE_REP53
org.apache.camel.converter.jaxp.BytesSource.BytesSource(byte[]) may expose internal representation by storing an externally mutable object into BytesSource.dataMALICIOUS_CODEEI_EXPOSE_REP236
org.apache.camel.converter.jaxp.BytesSource.BytesSource(byte[], String) may expose internal representation by storing an externally mutable object into BytesSource.dataMALICIOUS_CODEEI_EXPOSE_REP240

org.apache.camel.converter.jaxp.StringSource

BugCategoryDetailsLine
org.apache.camel.converter.jaxp.StringSource is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONIDNot available

org.apache.camel.converter.jaxp.XmlConverter

BugCategoryDetailsLine
org.apache.camel.converter.jaxp.XmlConverter.defaultCharset isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL65
Redundant nullcheck of source, which is known to be non-null in org.apache.camel.converter.jaxp.XmlConverter.toDOMSource(String)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE189
Exception is caught when Exception is not thrown in org.apache.camel.converter.jaxp.XmlConverter.toSAXSourceFromDOM(DOMSource)STYLEREC_CATCH_EXCEPTION361

org.apache.camel.impl.DefaultCamelContext

BugCategoryDetailsLine
Class org.apache.camel.impl.DefaultCamelContext implements same interface as superclassSTYLERI_REDUNDANT_INTERFACESNot available

org.apache.camel.impl.DefaultExchange

BugCategoryDetailsLine
Private method org.apache.camel.impl.DefaultExchange.safeCopy(Exchange, Message) is never calledPERFORMANCEUPM_UNCALLED_PRIVATE_METHOD97-105

org.apache.camel.impl.converter.DefaultTypeConverter

BugCategoryDetailsLine
Exception is caught when Exception is not thrown in org.apache.camel.impl.converter.DefaultTypeConverter.checkLoaded()STYLEREC_CATCH_EXCEPTION216

org.apache.camel.language.ExpressionEvaluationException

BugCategoryDetailsLine
Class org.apache.camel.language.ExpressionEvaluationException defines non-transient non-serializable instance field exchangeBAD_PRACTICESE_BAD_FIELDNot available
Class org.apache.camel.language.ExpressionEvaluationException defines non-transient non-serializable instance field expressionBAD_PRACTICESE_BAD_FIELDNot available

org.apache.camel.language.IllegalSyntaxException

BugCategoryDetailsLine
Class org.apache.camel.language.IllegalSyntaxException defines non-transient non-serializable instance field languageBAD_PRACTICESE_BAD_FIELDNot available

org.apache.camel.management.CamelNamingStrategy

BugCategoryDetailsLine
Method call in org.apache.camel.management.CamelNamingStrategy.getObjectName(ManagedRoute) passes null for unconditionally dereferenced parameter of getEndpointId(Endpoint)CORRECTNESSNP_NULL_PARAM_DEREF123

org.apache.camel.management.InstrumentationAgentImpl

BugCategoryDetailsLine
Confusing to have methods org.apache.camel.management.InstrumentationAgentImpl.getMBeanServer() and org.apache.camel.component.jmx.JMXComponent.getMbeanServer()BAD_PRACTICENM_CONFUSING64
Confusing to have methods org.apache.camel.management.InstrumentationAgentImpl.setMBeanServer(MBeanServer) and org.apache.camel.component.jmx.JMXEndpoint.setMbeanServer(MBeanServer)BAD_PRACTICENM_CONFUSING60-61
InstrumentationAgentImpl.server not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

org.apache.camel.management.ManagedService

BugCategoryDetailsLine
Private method org.apache.camel.management.ManagedService.isStarted() is never calledPERFORMANCEUPM_UNCALLED_PRIVATE_METHOD45

org.apache.camel.model.AggregatorType$1

BugCategoryDetailsLine
The class org.apache.camel.model.AggregatorType$1 could be refactored into a named _static_ inner classPERFORMANCESIC_INNER_SHOULD_BE_STATIC_ANONNot available

org.apache.camel.model.ProcessorType

BugCategoryDetailsLine
Unread field: org.apache.camel.model.ProcessorType.lastInterceptorPERFORMANCEURF_UNREAD_FIELD508

org.apache.camel.model.ProcessorType$1

BugCategoryDetailsLine
The class org.apache.camel.model.ProcessorType$1 could be refactored into a named _static_ inner classPERFORMANCESIC_INNER_SHOULD_BE_STATIC_ANONNot available

org.apache.camel.model.ResequencerType$1

BugCategoryDetailsLine
The class org.apache.camel.model.ResequencerType$1 could be refactored into a named _static_ inner classPERFORMANCESIC_INNER_SHOULD_BE_STATIC_ANONNot available

org.apache.camel.model.RouteType

BugCategoryDetailsLine
Dead store to endpoint in org.apache.camel.model.RouteType.addRoutes(Collection, FromType)STYLEDLS_DEAD_LOCAL_STORE158

org.apache.camel.processor.BatchProcessor

BugCategoryDetailsLine
BatchProcessor.consumer not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

org.apache.camel.processor.Pipeline

BugCategoryDetailsLine
Class org.apache.camel.processor.Pipeline implements same interface as superclassSTYLERI_REDUNDANT_INTERFACESNot available

org.apache.camel.processor.RedeliveryPolicy

BugCategoryDetailsLine
org.apache.camel.processor.RedeliveryPolicy.randomNumberGenerator should be package protectedMALICIOUS_CODEMS_PKGPROTECTNot available
org.apache.camel.processor.RedeliveryPolicy is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONIDNot available
The field org.apache.camel.processor.RedeliveryPolicy.randomNumberGenerator is transient but isn't set by deserializationBAD_PRACTICESE_TRANSIENT_FIELD_NOT_RESTOREDNot available

org.apache.camel.processor.SendProcessor

BugCategoryDetailsLine
Class org.apache.camel.processor.SendProcessor implements same interface as superclassSTYLERI_REDUNDANT_INTERFACESNot available

org.apache.camel.processor.idempotent.NoMessageIdException

BugCategoryDetailsLine
Class org.apache.camel.processor.idempotent.NoMessageIdException defines non-transient non-serializable instance field exchangeBAD_PRACTICESE_BAD_FIELDNot available
Class org.apache.camel.processor.idempotent.NoMessageIdException defines non-transient non-serializable instance field expressionBAD_PRACTICESE_BAD_FIELDNot available

org.apache.camel.util.ExpressionComparator

BugCategoryDetailsLine
org.apache.camel.util.ExpressionComparator implements Comparator but not SerializableBAD_PRACTICESE_COMPARATOR_SHOULD_BE_SERIALIZABLENot available

org.apache.camel.util.ExpressionListComparator

BugCategoryDetailsLine
org.apache.camel.util.ExpressionListComparator implements Comparator but not SerializableBAD_PRACTICESE_COMPARATOR_SHOULD_BE_SERIALIZABLENot available

org.apache.camel.util.FactoryFinder

BugCategoryDetailsLine
org.apache.camel.util.FactoryFinder.doFindFactoryProperies(String) might ignore java.lang.ExceptionBAD_PRACTICEDE_MIGHT_IGNORE170

org.apache.camel.util.IntrospectionSupport

BugCategoryDetailsLine
Use of non-localized String.toUpperCase() or String.toLowerCaseI18NDM_CONVERT_CASE201
Use of non-localized String.toUpperCase() or String.toLowerCaseI18NDM_CONVERT_CASE76
Method org.apache.camel.util.IntrospectionSupport.extractProperties(Map, String) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR122
Method org.apache.camel.util.IntrospectionSupport.setProperties(Object, Map, String) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR101

org.apache.camel.util.ResolverUtil

BugCategoryDetailsLine
org.apache.camel.util.ResolverUtil.loadImplementationsInJar(ResolverUtil$Test, String, File) may fail to close streamBAD_PRACTICEOS_OPEN_STREAM327

org.apache.camel.util.URISupport

BugCategoryDetailsLine
Method org.apache.camel.util.URISupport.createQueryString(Map) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR282

org.apache.camel.util.URISupport$CompositeData

BugCategoryDetailsLine
org.apache.camel.util.URISupport$CompositeData.getComponents() may expose internal representation by returning URISupport$CompositeData.componentsMALICIOUS_CODEEI_EXPOSE_REP44
URISupport$CompositeData.components not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available
URISupport$CompositeData.parameters not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

org.apache.camel.util.UuidGenerator

BugCategoryDetailsLine
Exception is caught when Exception is not thrown in org.apache.camel.util.UuidGenerator.<static initializer>()STYLEREC_CATCH_EXCEPTION56