The following document contains the results of FindBugs Report
FindBugs Version is 1.2.0
Threshold is Low
Effort is Default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
700 | 43 | 0 | 0 |
Bug | Category | Details | Line |
---|---|---|---|
Class org.apache.camel.ExpectedBodyTypeException defines non-transient non-serializable instance field exchange | BAD_PRACTICE | SE_BAD_FIELD | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Class org.apache.camel.FailedToCreateProducerException defines non-transient non-serializable instance field endpoint | BAD_PRACTICE | SE_BAD_FIELD | Not available |
Bug | Category | Details | Line |
---|---|---|---|
The class org.apache.camel.builder.FromBuilder$1 could be refactored into a named _static_ inner class | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC_ANON | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Class org.apache.camel.builder.IdempotentConsumerBuilder implements same interface as superclass | STYLE | RI_REDUNDANT_INTERFACES | Not available |
Bug | Category | Details | Line |
---|---|---|---|
The class org.apache.camel.builder.ResequencerBuilder$1 could be refactored into a named _static_ inner class | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC_ANON | Not available |
Bug | Category | Details | Line |
---|---|---|---|
MessageVariableResolver.exchange not initialized in constructor | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Not available |
Bug | Category | Details | Line |
---|---|---|---|
JMXEndpoint.mbeanServer not initialized in constructor | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Class org.apache.camel.component.pojo.NoPojoAvailableException defines non-transient non-serializable instance field endpoint | BAD_PRACTICE | SE_BAD_FIELD | Not available |
Bug | Category | Details | Line |
---|---|---|---|
org.apache.camel.component.pojo.PojoInvocation.getArgs() may expose internal representation by returning PojoInvocation.args | MALICIOUS_CODE | EI_EXPOSE_REP | 34 |
org.apache.camel.component.pojo.PojoInvocation.PojoInvocation(Object, Method, Object[]) may expose internal representation by storing an externally mutable object into PojoInvocation.args | MALICIOUS_CODE | EI_EXPOSE_REP2 | 30 |
Bug | Category | Details | Line |
---|---|---|---|
The class org.apache.camel.component.pojo.timer.TimerConsumer$1 could be refactored into a named _static_ inner class | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC_ANON | Not available |
Bug | Category | Details | Line |
---|---|---|---|
org.apache.camel.component.pojo.timer.TimerEndpoint.getTime() may expose internal representation by returning TimerEndpoint.time | MALICIOUS_CODE | EI_EXPOSE_REP | 114 |
org.apache.camel.component.pojo.timer.TimerEndpoint.setTime(Date) may expose internal representation by storing an externally mutable object into TimerEndpoint.time | MALICIOUS_CODE | EI_EXPOSE_REP2 | 118 |
Bug | Category | Details | Line |
---|---|---|---|
QueueEndpointConsumer.thread not initialized in constructor | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Should org.apache.camel.converter.CollectionConverter.toArray(Collection) return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 43 |
Bug | Category | Details | Line |
---|---|---|---|
org.apache.camel.converter.jaxp.BytesSource.getData() may expose internal representation by returning BytesSource.data | MALICIOUS_CODE | EI_EXPOSE_REP | 54 |
org.apache.camel.converter.jaxp.BytesSource.BytesSource(byte[]) may expose internal representation by storing an externally mutable object into BytesSource.data | MALICIOUS_CODE | EI_EXPOSE_REP2 | 37 |
org.apache.camel.converter.jaxp.BytesSource.BytesSource(byte[], String) may expose internal representation by storing an externally mutable object into BytesSource.data | MALICIOUS_CODE | EI_EXPOSE_REP2 | 41 |
Bug | Category | Details | Line |
---|---|---|---|
org.apache.camel.converter.jaxp.StringSource is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | Not available |
Bug | Category | Details | Line |
---|---|---|---|
org.apache.camel.converter.jaxp.XmlConverter.defaultCharset isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 65 |
Exception is caught when Exception is not thrown in org.apache.camel.converter.jaxp.XmlConverter.toSAXSourceFromDOM(DOMSource) | STYLE | REC_CATCH_EXCEPTION | 288 |
Bug | Category | Details | Line |
---|---|---|---|
Redundant nullcheck of answer, which is known to be non-null in org.apache.camel.impl.DefaultCamelContext.getEndpoint(String) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 211 |
Class org.apache.camel.impl.DefaultCamelContext implements same interface as superclass | STYLE | RI_REDUNDANT_INTERFACES | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Class org.apache.camel.processor.Pipeline implements same interface as superclass | STYLE | RI_REDUNDANT_INTERFACES | Not available |
Bug | Category | Details | Line |
---|---|---|---|
org.apache.camel.processor.RedeliveryPolicy.randomNumberGenerator should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | Not available |
org.apache.camel.processor.RedeliveryPolicy is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | Not available |
The field org.apache.camel.processor.RedeliveryPolicy.randomNumberGenerator is transient but isn't set by deserialization | BAD_PRACTICE | SE_TRANSIENT_FIELD_NOT_RESTORED | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Class org.apache.camel.processor.SendProcessor implements same interface as superclass | STYLE | RI_REDUNDANT_INTERFACES | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Class org.apache.camel.processor.idempotent.NoMessageIdException defines non-transient non-serializable instance field exchange | BAD_PRACTICE | SE_BAD_FIELD | Not available |
Class org.apache.camel.processor.idempotent.NoMessageIdException defines non-transient non-serializable instance field expression | BAD_PRACTICE | SE_BAD_FIELD | Not available |
Bug | Category | Details | Line |
---|---|---|---|
org.apache.camel.util.ExpressionComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | Not available |
Bug | Category | Details | Line |
---|---|---|---|
org.apache.camel.util.ExpressionListComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | Not available |
Bug | Category | Details | Line |
---|---|---|---|
org.apache.camel.util.FactoryFinder.doFindFactoryProperies(String) might ignore java.lang.Exception | BAD_PRACTICE | DE_MIGHT_IGNORE | 134 |
Bug | Category | Details | Line |
---|---|---|---|
Use of non-localized String.toUpperCase() or String.toLowerCase | I18N | DM_CONVERT_CASE | 189 |
Use of non-localized String.toUpperCase() or String.toLowerCase | I18N | DM_CONVERT_CASE | 69 |
Method org.apache.camel.util.IntrospectionSupport.extractProperties(Map, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 114 |
Method org.apache.camel.util.IntrospectionSupport.setProperties(Object, Map, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 94 |
Bug | Category | Details | Line |
---|---|---|---|
org.apache.camel.util.ResolverUtil.loadImplementationsInJar(ResolverUtil$Test, String, File) may fail to close stream | BAD_PRACTICE | OS_OPEN_STREAM | 290 |
Bug | Category | Details | Line |
---|---|---|---|
Method org.apache.camel.util.URISupport.createQueryString(Map) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 287 |
Bug | Category | Details | Line |
---|---|---|---|
org.apache.camel.util.URISupport$CompositeData.getComponents() may expose internal representation by returning URISupport$CompositeData.components | MALICIOUS_CODE | EI_EXPOSE_REP | 44 |
URISupport$CompositeData.components not initialized in constructor | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Not available |
URISupport$CompositeData.parameters not initialized in constructor | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Exception is caught when Exception is not thrown in org.apache.camel.util.UuidGenerator.<static initializer>() | STYLE | REC_CATCH_EXCEPTION | 56 |