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
1781186016

Files

ClassBugs
org.apache.camel.CamelExchangeException1
org.apache.camel.ExpectedBodyTypeException1
org.apache.camel.FailedToCreateProducerException1
org.apache.camel.bam.ActivityBuilder$11
org.apache.camel.bam.ActivityBuilder$21
org.apache.camel.bam.model.ActivityState4
org.apache.camel.bam.model.ProcessInstance4
org.apache.camel.bam.model.TemporalEntity4
org.apache.camel.bam.processor.ActivityMonitorEngine2
org.apache.camel.bam.processor.NoCorrelationKeyException1
org.apache.camel.bam.rules.ActivityRules1
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.cxf.CxfComponent1
org.apache.camel.component.cxf.CxfInvokeProducer1
org.apache.camel.component.cxf.CxfProducer2
org.apache.camel.component.cxf.CxfProducer$ResultFuture1
org.apache.camel.component.cxf.transport.CamelConduit$CamelOutputStream4
org.apache.camel.component.cxf.transport.CamelConduit$CamelOutputStream$12
org.apache.camel.component.cxf.transport.CamelConduit$DecoupledDestination1
org.apache.camel.component.cxf.transport.CamelDestination3
org.apache.camel.component.cxf.transport.CamelDestination$CamelOutputStream2
org.apache.camel.component.cxf.transport.CamelTransportBase3
org.apache.camel.component.cxf.transport.CamelTransportFactory2
org.apache.camel.component.event.CamelEvent2
org.apache.camel.component.file.FileEndpoint4
org.apache.camel.component.file.remote.RemoteFileConsumer1
org.apache.camel.component.file.remote.SftpConsumer2
org.apache.camel.component.irc.IrcConfiguration3
org.apache.camel.component.irc.IrcConsumer1
org.apache.camel.component.irc.IrcConsumer$FilteredIRCEventAdapter1
org.apache.camel.component.irc.IrcProducer1
org.apache.camel.component.jms.EndpointMessageListener1
org.apache.camel.component.jmx.JMXEndpoint1
org.apache.camel.component.log.LogComponent2
org.apache.camel.component.mail.MailBinding1
org.apache.camel.component.mail.MailMessage1
org.apache.camel.component.mina.MinaProducer$11
org.apache.camel.component.quartz.QuartzEndpoint1
org.apache.camel.component.seda.SedaConsumer1
org.apache.camel.component.timer.TimerConsumer$11
org.apache.camel.component.timer.TimerEndpoint2
org.apache.camel.component.validator.jing.JingValidator1
org.apache.camel.component.vm.VmComponent1
org.apache.camel.component.xmpp.XmppGroupChatProducer1
org.apache.camel.component.xmpp.XmppPrivateChatProducer1
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.processor.validation.ValidatingProcessor1
org.apache.camel.spring.CamelBeanPostProcessor2
org.apache.camel.spring.CamelBeanPostProcessor$31
org.apache.camel.spring.CamelContextFactoryBean5
org.apache.camel.spring.CamelProxyFactoryType2
org.apache.camel.spring.CamelServiceExporterType3
org.apache.camel.spring.EndpointFactoryBean1
org.apache.camel.spring.Main$ParameterOption1
org.apache.camel.spring.RouteBuilderFinder2
org.apache.camel.spring.handler.CamelNamespaceHandler$21
org.apache.camel.spring.remoting.SendBeforeInterceptor1
org.apache.camel.spring.util.MainRunner3
org.apache.camel.spring.util.ReflectionUtils2
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.commons.logging.LogFactory6
org.apache.commons.logging.LogSource4
org.apache.commons.logging.impl.Jdk13LumberjackLogger3
org.apache.commons.logging.impl.Jdk14Logger2
org.apache.commons.logging.impl.Log4JLogger3
org.apache.commons.logging.impl.LogFactoryImpl1
org.apache.commons.logging.impl.LogKitLogger2
org.apache.commons.logging.impl.NoOpLog1
org.apache.commons.logging.impl.SimpleLog7
org.apache.commons.logging.impl.WeakHashtable3

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.bam.ActivityBuilder$1

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

org.apache.camel.bam.ActivityBuilder$2

BugCategoryDetailsLine
The class org.apache.camel.bam.ActivityBuilder$2 could be refactored into a named _static_ inner classPERFORMANCESIC_INNER_SHOULD_BE_STATIC_ANONNot available

org.apache.camel.bam.model.ActivityState

BugCategoryDetailsLine
org.apache.camel.bam.model.ActivityState.getTimeExpected() may expose internal representation by returning ActivityState.timeExpectedMALICIOUS_CODEEI_EXPOSE_REP127
org.apache.camel.bam.model.ActivityState.getTimeOverdue() may expose internal representation by returning ActivityState.timeOverdueMALICIOUS_CODEEI_EXPOSE_REP136
org.apache.camel.bam.model.ActivityState.setTimeExpected(Date) may expose internal representation by storing an externally mutable object into ActivityState.timeExpectedMALICIOUS_CODEEI_EXPOSE_REP2131
org.apache.camel.bam.model.ActivityState.setTimeOverdue(Date) may expose internal representation by storing an externally mutable object into ActivityState.timeOverdueMALICIOUS_CODEEI_EXPOSE_REP2140

org.apache.camel.bam.model.ProcessInstance

BugCategoryDetailsLine
org.apache.camel.bam.model.ProcessInstance.getTimeCompleted() may expose internal representation by returning ProcessInstance.timeCompletedMALICIOUS_CODEEI_EXPOSE_REP99
org.apache.camel.bam.model.ProcessInstance.getTimeStarted() may expose internal representation by returning ProcessInstance.timeStartedMALICIOUS_CODEEI_EXPOSE_REP90
org.apache.camel.bam.model.ProcessInstance.setTimeCompleted(Date) may expose internal representation by storing an externally mutable object into ProcessInstance.timeCompletedMALICIOUS_CODEEI_EXPOSE_REP2103
org.apache.camel.bam.model.ProcessInstance.setTimeStarted(Date) may expose internal representation by storing an externally mutable object into ProcessInstance.timeStartedMALICIOUS_CODEEI_EXPOSE_REP294

org.apache.camel.bam.model.TemporalEntity

BugCategoryDetailsLine
org.apache.camel.bam.model.TemporalEntity.getTimeCompleted() may expose internal representation by returning TemporalEntity.timeCompletedMALICIOUS_CODEEI_EXPOSE_REP53
org.apache.camel.bam.model.TemporalEntity.getTimeStarted() may expose internal representation by returning TemporalEntity.timeStartedMALICIOUS_CODEEI_EXPOSE_REP44
org.apache.camel.bam.model.TemporalEntity.setTimeCompleted(Date) may expose internal representation by storing an externally mutable object into TemporalEntity.timeCompletedMALICIOUS_CODEEI_EXPOSE_REP257
org.apache.camel.bam.model.TemporalEntity.setTimeStarted(Date) may expose internal representation by storing an externally mutable object into TemporalEntity.timeStartedMALICIOUS_CODEEI_EXPOSE_REP248

org.apache.camel.bam.processor.ActivityMonitorEngine

BugCategoryDetailsLine
Exception is caught when Exception is not thrown in org.apache.camel.bam.processor.ActivityMonitorEngine.run()STYLEREC_CATCH_EXCEPTION97
Unwritten field: org.apache.camel.bam.processor.ActivityMonitorEngine.escalateLevelCORRECTNESSUWF_UNWRITTEN_FIELD44

org.apache.camel.bam.processor.NoCorrelationKeyException

BugCategoryDetailsLine
Class org.apache.camel.bam.processor.NoCorrelationKeyException defines non-transient non-serializable instance field processorBAD_PRACTICESE_BAD_FIELDNot available

org.apache.camel.bam.rules.ActivityRules

BugCategoryDetailsLine
Unread field: org.apache.camel.bam.rules.ActivityRules.activityDefinitionPERFORMANCEURF_UNREAD_FIELD80

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.cxf.CxfComponent

BugCategoryDetailsLine
Dead store to u in org.apache.camel.component.cxf.CxfComponent.createEndpoint(String, String, Map)STYLEDLS_DEAD_LOCAL_STORE50

org.apache.camel.component.cxf.CxfInvokeProducer

BugCategoryDetailsLine
CxfInvokeProducer.client not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

org.apache.camel.component.cxf.CxfProducer

BugCategoryDetailsLine
Dead store to response in org.apache.camel.component.cxf.CxfProducer.process(CxfExchange)STYLEDLS_DEAD_LOCAL_STORE71
CxfProducer.conduit not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

org.apache.camel.component.cxf.CxfProducer$ResultFuture

BugCategoryDetailsLine
Should org.apache.camel.component.cxf.CxfProducer$ResultFuture be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATICNot available

org.apache.camel.component.cxf.transport.CamelConduit$CamelOutputStream

BugCategoryDetailsLine
Load of known null value in org.apache.camel.component.cxf.transport.CamelConduit$CamelOutputStream.handleResponse()STYLENP_LOAD_OF_KNOWN_NULL_VALUE215
Load of known null value in org.apache.camel.component.cxf.transport.CamelConduit$CamelOutputStream.handleResponse()STYLENP_LOAD_OF_KNOWN_NULL_VALUE225
A known null value is checked to see if it is an instance of java.lang.String in org.apache.camel.component.cxf.transport.CamelConduit$CamelOutputStream.handleResponse()CORRECTNESSNP_NULL_INSTANCEOF219
Non-virtual method call in org.apache.camel.component.cxf.transport.CamelConduit$CamelOutputStream.handleResponse() passes null for unconditionally dereferenced parameter of java.io.ByteArrayInputStream.ByteArrayInputStream(byte[])CORRECTNESSNP_NULL_PARAM_DEREF_NONVIRTUAL225

org.apache.camel.component.cxf.transport.CamelConduit$CamelOutputStream$1

BugCategoryDetailsLine
Redundant nullcheck of correlationID which is known to be null in org.apache.camel.component.cxf.transport.CamelConduit$CamelOutputStream$1.process(Exchange)STYLERCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE170
Redundant nullcheck of id which is known to be null in org.apache.camel.component.cxf.transport.CamelConduit$CamelOutputStream$1.process(Exchange)STYLERCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE162

org.apache.camel.component.cxf.transport.CamelConduit$DecoupledDestination

BugCategoryDetailsLine
Should org.apache.camel.component.cxf.transport.CamelConduit$DecoupledDestination be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATICNot available

org.apache.camel.component.cxf.transport.CamelDestination

BugCategoryDetailsLine
Unread field: org.apache.camel.component.cxf.transport.CamelDestination.endpointPERFORMANCEURF_UNREAD_FIELD86
Unread field: org.apache.camel.component.cxf.transport.CamelDestination.conduitInitiatorPERFORMANCEURF_UNREAD_FIELD64
Unwritten field: org.apache.camel.component.cxf.transport.CamelDestination.camelUriCORRECTNESSUWF_UNWRITTEN_FIELD86

org.apache.camel.component.cxf.transport.CamelDestination$CamelOutputStream

BugCategoryDetailsLine
Unused field: org.apache.camel.component.cxf.transport.CamelDestination$CamelOutputStream.replyToPERFORMANCEUUF_UNUSED_FIELDNot available
Unused field: org.apache.camel.component.cxf.transport.CamelDestination$CamelOutputStream.senderPERFORMANCEUUF_UNUSED_FIELDNot available

org.apache.camel.component.cxf.transport.CamelTransportBase

BugCategoryDetailsLine
org.apache.camel.component.cxf.transport.CamelTransportBase.close() might ignore java.lang.ExceptionBAD_PRACTICEDE_MIGHT_IGNORE60
Unread field: org.apache.camel.component.cxf.transport.CamelTransportBase.camelContextPERFORMANCEURF_UNREAD_FIELD38
Unwritten field: org.apache.camel.component.cxf.transport.CamelTransportBase.replyDestinationCORRECTNESSUWF_UNWRITTEN_FIELD49

org.apache.camel.component.cxf.transport.CamelTransportFactory

BugCategoryDetailsLine
Method call in org.apache.camel.component.cxf.transport.CamelTransportFactory.getConduit(EndpointInfo) passes null for unconditionally dereferenced parameter of getConduit(EndpointInfo, EndpointReferenceType)CORRECTNESSNP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS68
CamelTransportFactory.bus not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

org.apache.camel.component.event.CamelEvent

BugCategoryDetailsLine
Class org.apache.camel.component.event.CamelEvent defines non-transient non-serializable instance field exchangeBAD_PRACTICESE_BAD_FIELDNot available
org.apache.camel.component.event.CamelEvent is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONIDNot available

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.file.remote.RemoteFileConsumer

BugCategoryDetailsLine
Unread field: org.apache.camel.component.file.remote.RemoteFileConsumer.endpointPERFORMANCEURF_UNREAD_FIELD29

org.apache.camel.component.file.remote.SftpConsumer

BugCategoryDetailsLine
Result of integer multiplication cast to long in org.apache.camel.component.file.remote.SftpConsumer.pollFile(ChannelSftp$LsEntry)STYLEICAST_INTEGER_MULTIPLY_CAST_TO_LONG78
Method org.apache.camel.component.file.remote.SftpConsumer.pollDirectory(String) uses Collection.toArray() with zero-length array argumentPERFORMANCEITA_INEFFICIENT_TO_ARRAY60

org.apache.camel.component.irc.IrcConfiguration

BugCategoryDetailsLine
Invocation of toString on an array in org.apache.camel.component.irc.IrcConfiguration.toString()CORRECTNESSDMI_INVOKING_TOSTRING_ON_ARRAY219
org.apache.camel.component.irc.IrcConfiguration.getPorts() may expose internal representation by returning IrcConfiguration.portsMALICIOUS_CODEEI_EXPOSE_REP123
org.apache.camel.component.irc.IrcConfiguration.setPorts(int[]) may expose internal representation by storing an externally mutable object into IrcConfiguration.portsMALICIOUS_CODEEI_EXPOSE_REP2127

org.apache.camel.component.irc.IrcConsumer

BugCategoryDetailsLine
Unwritten field: org.apache.camel.component.irc.IrcConsumer.listenerCORRECTNESSUWF_UNWRITTEN_FIELD47

org.apache.camel.component.irc.IrcConsumer$FilteredIRCEventAdapter

BugCategoryDetailsLine
Unread field: org.apache.camel.component.irc.IrcConsumer$FilteredIRCEventAdapter.targetPERFORMANCEURF_UNREAD_FIELD71

org.apache.camel.component.irc.IrcProducer

BugCategoryDetailsLine
org.apache.camel.component.irc.IrcProducer.COMMANDS should be package protectedMALICIOUS_CODEMS_PKGPROTECT29

org.apache.camel.component.jms.EndpointMessageListener

BugCategoryDetailsLine
Confusing to have methods org.apache.camel.component.jms.EndpointMessageListener.onMessage(Message) and org.apache.camel.component.cxf.CxfProducer$ResultFuture.onMessage(Message)BAD_PRACTICENM_CONFUSING49-58

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.mail.MailBinding

BugCategoryDetailsLine
Exception is caught when Exception is not thrown in org.apache.camel.component.mail.MailBinding.populateMailMessage(MailEndpoint, MimeMessage, Exchange)STYLEREC_CATCH_EXCEPTION54

org.apache.camel.component.mail.MailMessage

BugCategoryDetailsLine
Confusing to have methods org.apache.camel.component.mail.MailMessage.setMessage(Message) and org.apache.camel.component.cxf.CxfMessage.setMessage(Message)BAD_PRACTICENM_CONFUSING74-75

org.apache.camel.component.mina.MinaProducer$1

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

org.apache.camel.component.quartz.QuartzEndpoint

BugCategoryDetailsLine
Non-virtual method call in org.apache.camel.component.quartz.QuartzEndpoint.createExchange() passes null for unconditionally dereferenced parameter of QuartzExchange.QuartzExchange(CamelContext, JobExecutionContext)CORRECTNESSNP_NULL_PARAM_DEREF_NONVIRTUAL121

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.validator.jing.JingValidator

BugCategoryDetailsLine
Confusing to have methods org.apache.camel.component.validator.jing.JingValidator.setSchemaFactory(SchemaFactory) and org.apache.camel.processor.validation.ValidatingProcessor.setSchemaFactory(SchemaFactory)BAD_PRACTICENM_CONFUSING139-140

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.component.xmpp.XmppGroupChatProducer

BugCategoryDetailsLine
XmppGroupChatProducer.chat not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

org.apache.camel.component.xmpp.XmppPrivateChatProducer

BugCategoryDetailsLine
XmppPrivateChatProducer.chat 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_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.processor.validation.ValidatingProcessor

BugCategoryDetailsLine
Confusing to have methods org.apache.camel.processor.validation.ValidatingProcessor.setSchema(Schema) and org.apache.camel.component.validator.jing.JingValidator.setSchema(Schema)BAD_PRACTICENM_CONFUSING124-125

org.apache.camel.spring.CamelBeanPostProcessor

BugCategoryDetailsLine
CamelBeanPostProcessor.applicationContext not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available
CamelBeanPostProcessor.camelContext not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

org.apache.camel.spring.CamelBeanPostProcessor$3

BugCategoryDetailsLine
The class org.apache.camel.spring.CamelBeanPostProcessor$3 could be refactored into a named _static_ inner classPERFORMANCESIC_INNER_SHOULD_BE_STATIC_ANONNot available

org.apache.camel.spring.CamelContextFactoryBean

BugCategoryDetailsLine
org.apache.camel.spring.CamelContextFactoryBean.getPackages() may expose internal representation by returning CamelContextFactoryBean.packagesMALICIOUS_CODEEI_EXPOSE_REP179
org.apache.camel.spring.CamelContextFactoryBean.setPackages(String[]) may expose internal representation by storing an externally mutable object into CamelContextFactoryBean.packagesMALICIOUS_CODEEI_EXPOSE_REP2191
Unused field: org.apache.camel.spring.CamelContextFactoryBean.beansPERFORMANCEUUF_UNUSED_FIELDNot available
Unused field: org.apache.camel.spring.CamelContextFactoryBean.endpointsPERFORMANCEUUF_UNUSED_FIELDNot available
CamelContextFactoryBean.applicationContext not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

org.apache.camel.spring.CamelProxyFactoryType

BugCategoryDetailsLine
Unused field: org.apache.camel.spring.CamelProxyFactoryType.serviceInterfacePERFORMANCEUUF_UNUSED_FIELDNot available
Unused field: org.apache.camel.spring.CamelProxyFactoryType.serviceUrlPERFORMANCEUUF_UNUSED_FIELDNot available

org.apache.camel.spring.CamelServiceExporterType

BugCategoryDetailsLine
Unused field: org.apache.camel.spring.CamelServiceExporterType.serviceInterfacePERFORMANCEUUF_UNUSED_FIELDNot available
Unused field: org.apache.camel.spring.CamelServiceExporterType.serviceRefPERFORMANCEUUF_UNUSED_FIELDNot available
Unused field: org.apache.camel.spring.CamelServiceExporterType.uriPERFORMANCEUUF_UNUSED_FIELDNot available

org.apache.camel.spring.EndpointFactoryBean

BugCategoryDetailsLine
EndpointFactoryBean.context not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

org.apache.camel.spring.Main$ParameterOption

BugCategoryDetailsLine
Unread field: org.apache.camel.spring.Main$ParameterOption.parameterNamePERFORMANCEURF_UNREAD_FIELD183

org.apache.camel.spring.RouteBuilderFinder

BugCategoryDetailsLine
org.apache.camel.spring.RouteBuilderFinder.getPackages() may expose internal representation by returning RouteBuilderFinder.packagesMALICIOUS_CODEEI_EXPOSE_REP47
org.apache.camel.spring.RouteBuilderFinder.RouteBuilderFinder(SpringCamelContext, String[]) may expose internal representation by storing an externally mutable object into RouteBuilderFinder.packagesMALICIOUS_CODEEI_EXPOSE_REP243

org.apache.camel.spring.handler.CamelNamespaceHandler$2

BugCategoryDetailsLine
The class org.apache.camel.spring.handler.CamelNamespaceHandler$2 could be refactored into a named _static_ inner classPERFORMANCESIC_INNER_SHOULD_BE_STATIC_ANONNot available

org.apache.camel.spring.remoting.SendBeforeInterceptor

BugCategoryDetailsLine
SendBeforeInterceptor.invocationHandler not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

org.apache.camel.spring.util.MainRunner

BugCategoryDetailsLine
org.apache.camel.spring.util.MainRunner.getArgs() may expose internal representation by returning MainRunner.argsMALICIOUS_CODEEI_EXPOSE_REP80
org.apache.camel.spring.util.MainRunner.setArgs(String[]) may expose internal representation by storing an externally mutable object into MainRunner.argsMALICIOUS_CODEEI_EXPOSE_REP284
MainRunner.main not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available

org.apache.camel.spring.util.ReflectionUtils

BugCategoryDetailsLine
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 blockBAD_PRACTICEDP_DO_INSIDE_DO_PRIVILEGED49
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 blockBAD_PRACTICEDP_DO_INSIDE_DO_PRIVILEGED53

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

org.apache.commons.logging.LogFactory

BugCategoryDetailsLine
org.apache.commons.logging.LogFactory.nullClassLoaderFactory should be package protectedMALICIOUS_CODEMS_PKGPROTECT300
org.apache.commons.logging.LogFactory.factories isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL284
org.apache.commons.logging.LogFactory.getFactory() may fail to close stream on exceptionBAD_PRACTICEOS_OPEN_STREAM_EXCEPTION_PATH511
org.apache.commons.logging.LogFactory.getFactory() may fail to close stream on exceptionBAD_PRACTICEOS_OPEN_STREAM_EXCEPTION_PATH514
Exception is caught when Exception is not thrown in org.apache.commons.logging.LogFactory.createFactory(String, ClassLoader)STYLEREC_CATCH_EXCEPTION1192
Exception is caught when Exception is not thrown in org.apache.commons.logging.LogFactory.getFactory()STYLEREC_CATCH_EXCEPTION539

org.apache.commons.logging.LogSource

BugCategoryDetailsLine
org.apache.commons.logging.LogSource.logImplctor should be package protectedMALICIOUS_CODEMS_PKGPROTECT70
org.apache.commons.logging.LogSource.logs isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL61
org.apache.commons.logging.LogSource.jdk14IsAvailable isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL67
org.apache.commons.logging.LogSource.log4jIsAvailable isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL64

org.apache.commons.logging.impl.Jdk13LumberjackLogger

BugCategoryDetailsLine
Exception is caught when Exception is not thrown in org.apache.commons.logging.impl.Jdk13LumberjackLogger.getClassAndMethod()STYLEREC_CATCH_EXCEPTION131
org.apache.commons.logging.impl.Jdk13LumberjackLogger is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONIDNot available
The field org.apache.commons.logging.impl.Jdk13LumberjackLogger.logger is transient but isn't set by deserializationBAD_PRACTICESE_TRANSIENT_FIELD_NOT_RESTOREDNot available

org.apache.commons.logging.impl.Jdk14Logger

BugCategoryDetailsLine
org.apache.commons.logging.impl.Jdk14Logger is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONIDNot available
The field org.apache.commons.logging.impl.Jdk14Logger.logger is transient but isn't set by deserializationBAD_PRACTICESE_TRANSIENT_FIELD_NOT_RESTOREDNot available

org.apache.commons.logging.impl.Log4JLogger

BugCategoryDetailsLine
Exception is caught when Exception is not thrown in org.apache.commons.logging.impl.Log4JLogger.<static initializer>()STYLEREC_CATCH_EXCEPTION90
org.apache.commons.logging.impl.Log4JLogger is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONIDNot available
The field org.apache.commons.logging.impl.Log4JLogger.logger is transient but isn't set by deserializationBAD_PRACTICESE_TRANSIENT_FIELD_NOT_RESTOREDNot available

org.apache.commons.logging.impl.LogFactoryImpl

BugCategoryDetailsLine
Redundant nullcheck of specifiedLogClassName, which is known to be non-null in org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(String)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE792

org.apache.commons.logging.impl.LogKitLogger

BugCategoryDetailsLine
org.apache.commons.logging.impl.LogKitLogger is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONIDNot available
The field org.apache.commons.logging.impl.LogKitLogger.logger is transient but isn't set by deserializationBAD_PRACTICESE_TRANSIENT_FIELD_NOT_RESTOREDNot available

org.apache.commons.logging.impl.NoOpLog

BugCategoryDetailsLine
org.apache.commons.logging.impl.NoOpLog is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONIDNot available

org.apache.commons.logging.impl.SimpleLog

BugCategoryDetailsLine
org.apache.commons.logging.impl.SimpleLog.dateFormatter isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL103
org.apache.commons.logging.impl.SimpleLog.dateTimeFormat isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL101
org.apache.commons.logging.impl.SimpleLog.showDateTime isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL99
org.apache.commons.logging.impl.SimpleLog.showLogName isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL92
org.apache.commons.logging.impl.SimpleLog.showShortName isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL97
Redundant nullcheck of classLoader which is known to be null in org.apache.commons.logging.impl.SimpleLog.getContextClassLoader()STYLERCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE640
org.apache.commons.logging.impl.SimpleLog is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONIDNot available

org.apache.commons.logging.impl.WeakHashtable

BugCategoryDetailsLine
Dead store of null to result in org.apache.commons.logging.impl.WeakHashtable.put(Object, Object)STYLEDLS_DEAD_LOCAL_STORE_OF_NULL240
Class org.apache.commons.logging.impl.WeakHashtable defines non-transient non-serializable instance field queueBAD_PRACTICESE_BAD_FIELDNot available
org.apache.commons.logging.impl.WeakHashtable is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONIDNot available