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
7004300

Files

ClassBugs
org.apache.camel.ExpectedBodyTypeException1
org.apache.camel.FailedToCreateProducerException1
org.apache.camel.builder.FromBuilder$11
org.apache.camel.builder.IdempotentConsumerBuilder1
org.apache.camel.builder.ResequencerBuilder$11
org.apache.camel.builder.xml.MessageVariableResolver1
org.apache.camel.component.jmx.JMXEndpoint1
org.apache.camel.component.pojo.NoPojoAvailableException1
org.apache.camel.component.pojo.PojoInvocation2
org.apache.camel.component.pojo.timer.TimerConsumer$11
org.apache.camel.component.pojo.timer.TimerEndpoint2
org.apache.camel.component.queue.QueueEndpointConsumer1
org.apache.camel.converter.CollectionConverter1
org.apache.camel.converter.jaxp.BytesSource3
org.apache.camel.converter.jaxp.StringSource1
org.apache.camel.converter.jaxp.XmlConverter2
org.apache.camel.impl.DefaultCamelContext2
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.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.FromBuilder$1

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

org.apache.camel.builder.IdempotentConsumerBuilder

BugCategoryDetailsLine
Class org.apache.camel.builder.IdempotentConsumerBuilder implements same interface as superclassSTYLERI_REDUNDANT_INTERFACESNot available

org.apache.camel.builder.ResequencerBuilder$1

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

org.apache.camel.builder.xml.MessageVariableResolver

BugCategoryDetailsLine
MessageVariableResolver.exchange not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

org.apache.camel.component.jmx.JMXEndpoint

BugCategoryDetailsLine
JMXEndpoint.mbeanServer not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

org.apache.camel.component.pojo.NoPojoAvailableException

BugCategoryDetailsLine
Class org.apache.camel.component.pojo.NoPojoAvailableException defines non-transient non-serializable instance field endpointBAD_PRACTICESE_BAD_FIELDNot available

org.apache.camel.component.pojo.PojoInvocation

BugCategoryDetailsLine
org.apache.camel.component.pojo.PojoInvocation.getArgs() may expose internal representation by returning PojoInvocation.argsMALICIOUS_CODEEI_EXPOSE_REP34
org.apache.camel.component.pojo.PojoInvocation.PojoInvocation(Object, Method, Object[]) may expose internal representation by storing an externally mutable object into PojoInvocation.argsMALICIOUS_CODEEI_EXPOSE_REP230

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

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

org.apache.camel.component.pojo.timer.TimerEndpoint

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

org.apache.camel.component.queue.QueueEndpointConsumer

BugCategoryDetailsLine
QueueEndpointConsumer.thread not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

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_ARRAYS43

org.apache.camel.converter.jaxp.BytesSource

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

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
Exception is caught when Exception is not thrown in org.apache.camel.converter.jaxp.XmlConverter.toSAXSourceFromDOM(DOMSource)STYLEREC_CATCH_EXCEPTION288

org.apache.camel.impl.DefaultCamelContext

BugCategoryDetailsLine
Redundant nullcheck of answer, which is known to be non-null in org.apache.camel.impl.DefaultCamelContext.getEndpoint(String)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE211
Class org.apache.camel.impl.DefaultCamelContext implements same interface as superclassSTYLERI_REDUNDANT_INTERFACESNot 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_IGNORE134

org.apache.camel.util.IntrospectionSupport

BugCategoryDetailsLine
Use of non-localized String.toUpperCase() or String.toLowerCaseI18NDM_CONVERT_CASE189
Use of non-localized String.toUpperCase() or String.toLowerCaseI18NDM_CONVERT_CASE69
Method org.apache.camel.util.IntrospectionSupport.extractProperties(Map, String) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR114
Method org.apache.camel.util.IntrospectionSupport.setProperties(Object, Map, String) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR94

org.apache.camel.util.ResolverUtil

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

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_ITERATOR287

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