1098 lines of code analyzed,
in 31 classes,
in 5 packages.
Click on a warning row to see full context information.
EI
|
org.apache.activemq.camel.CamelConnection.getCamelContext() may expose internal representation by returning CamelConnection.camelContext |
|
Bug type EI_EXPOSE_REP (click for details)
In class org.apache.activemq.camel.CamelConnection In method org.apache.activemq.camel.CamelConnection.getCamelContext() Field org.apache.activemq.camel.CamelConnection.camelContext At CamelConnection.java:[line 39]
|
EI
|
org.apache.activemq.camel.CamelConnectionFactory.getCamelContext() may expose internal representation by returning CamelConnectionFactory.camelContext |
|
Bug type EI_EXPOSE_REP (click for details)
In class org.apache.activemq.camel.CamelConnectionFactory In method org.apache.activemq.camel.CamelConnectionFactory.getCamelContext() Field org.apache.activemq.camel.CamelConnectionFactory.camelContext At CamelConnectionFactory.java:[line 38]
|
EI
|
org.apache.activemq.camel.CamelDestination.getBinding() may expose internal representation by returning CamelDestination.binding |
|
Bug type EI_EXPOSE_REP (click for details)
In class org.apache.activemq.camel.CamelDestination In method org.apache.activemq.camel.CamelDestination.getBinding() Field org.apache.activemq.camel.CamelDestination.binding At CamelDestination.java:[line 122]
|
EI
|
org.apache.activemq.camel.CamelDestination.getCamelContext() may expose internal representation by returning CamelDestination.camelContext |
|
Bug type EI_EXPOSE_REP (click for details)
In class org.apache.activemq.camel.CamelDestination In method org.apache.activemq.camel.CamelDestination.getCamelContext() Field org.apache.activemq.camel.CamelDestination.camelContext At CamelDestination.java:[line 114]
|
EI
|
org.apache.activemq.camel.CamelDestination.getEndpoint() may expose internal representation by returning CamelDestination.endpoint |
|
Bug type EI_EXPOSE_REP (click for details)
In class org.apache.activemq.camel.CamelDestination In method org.apache.activemq.camel.CamelDestination.getEndpoint() Field org.apache.activemq.camel.CamelDestination.endpoint At CamelDestination.java:[line 106]
|
EI
|
org.apache.activemq.camel.CamelMessageConsumer.getDestination() may expose internal representation by returning CamelMessageConsumer.destination |
|
Bug type EI_EXPOSE_REP (click for details)
In class org.apache.activemq.camel.CamelMessageConsumer In method org.apache.activemq.camel.CamelMessageConsumer.getDestination() Field org.apache.activemq.camel.CamelMessageConsumer.destination At CamelMessageConsumer.java:[line 106]
|
EI
|
org.apache.activemq.camel.CamelMessageConsumer.getEndpoint() may expose internal representation by returning CamelMessageConsumer.endpoint |
|
Bug type EI_EXPOSE_REP (click for details)
In class org.apache.activemq.camel.CamelMessageConsumer In method org.apache.activemq.camel.CamelMessageConsumer.getEndpoint() Field org.apache.activemq.camel.CamelMessageConsumer.endpoint At CamelMessageConsumer.java:[line 110]
|
EI
|
org.apache.activemq.camel.CamelMessageConsumer.getSession() may expose internal representation by returning CamelMessageConsumer.session |
|
Bug type EI_EXPOSE_REP (click for details)
In class org.apache.activemq.camel.CamelMessageConsumer In method org.apache.activemq.camel.CamelMessageConsumer.getSession() Field org.apache.activemq.camel.CamelMessageConsumer.session At CamelMessageConsumer.java:[line 122]
|
EI
|
org.apache.activemq.camel.CamelMessageProducer.getDestination() may expose internal representation by returning CamelMessageProducer.destination |
|
Bug type EI_EXPOSE_REP (click for details)
In class org.apache.activemq.camel.CamelMessageProducer In method org.apache.activemq.camel.CamelMessageProducer.getDestination() Field org.apache.activemq.camel.CamelMessageProducer.destination At CamelMessageProducer.java:[line 62]
|
EI
|
org.apache.activemq.camel.CamelMessageProducer.getEndpoint() may expose internal representation by returning CamelMessageProducer.endpoint |
|
Bug type EI_EXPOSE_REP (click for details)
In class org.apache.activemq.camel.CamelMessageProducer In method org.apache.activemq.camel.CamelMessageProducer.getEndpoint() Field org.apache.activemq.camel.CamelMessageProducer.endpoint At CamelMessageProducer.java:[line 66]
|
EI
|
org.apache.activemq.camel.CamelShutdownHook.getCamelContext() may expose internal representation by returning CamelShutdownHook.camelContext |
|
Bug type EI_EXPOSE_REP (click for details)
In class org.apache.activemq.camel.CamelShutdownHook In method org.apache.activemq.camel.CamelShutdownHook.getCamelContext() Field org.apache.activemq.camel.CamelShutdownHook.camelContext At CamelShutdownHook.java:[line 52]
|
EI
|
org.apache.activemq.camel.component.CamelEndpointLoader.getCamelContext() may expose internal representation by returning CamelEndpointLoader.camelContext |
|
Bug type EI_EXPOSE_REP (click for details)
In class org.apache.activemq.camel.component.CamelEndpointLoader In method org.apache.activemq.camel.component.CamelEndpointLoader.getCamelContext() Field org.apache.activemq.camel.component.CamelEndpointLoader.camelContext At CamelEndpointLoader.java:[line 122]
|
EI
|
org.apache.activemq.camel.component.CamelEndpointLoader.getComponent() may expose internal representation by returning CamelEndpointLoader.component |
|
Bug type EI_EXPOSE_REP (click for details)
In class org.apache.activemq.camel.component.CamelEndpointLoader In method org.apache.activemq.camel.component.CamelEndpointLoader.getComponent() Field org.apache.activemq.camel.component.CamelEndpointLoader.component At CamelEndpointLoader.java:[line 134]
|
EI
|
org.apache.activemq.camel.component.broker.BrokerEndpoint.getDestination() may expose internal representation by returning BrokerEndpoint.destination |
|
Bug type EI_EXPOSE_REP (click for details)
In class org.apache.activemq.camel.component.broker.BrokerEndpoint In method org.apache.activemq.camel.component.broker.BrokerEndpoint.getDestination() Field org.apache.activemq.camel.component.broker.BrokerEndpoint.destination At BrokerEndpoint.java:[line 86]
|
EI
|
org.apache.activemq.camel.converter.ActiveMQMessageConverter.getBinding() may expose internal representation by returning ActiveMQMessageConverter.binding |
|
Bug type EI_EXPOSE_REP (click for details)
In class org.apache.activemq.camel.converter.ActiveMQMessageConverter In method org.apache.activemq.camel.converter.ActiveMQMessageConverter.getBinding() Field org.apache.activemq.camel.converter.ActiveMQMessageConverter.binding At ActiveMQMessageConverter.java:[line 97]
|
EI2
|
org.apache.activemq.camel.CamelConnection.setCamelContext(CamelContext) may expose internal representation by storing an externally mutable object into CamelConnection.camelContext |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.CamelConnection In method org.apache.activemq.camel.CamelConnection.setCamelContext(CamelContext) Field org.apache.activemq.camel.CamelConnection.camelContext Local variable named camelContext At CamelConnection.java:[line 43]
|
EI2
|
org.apache.activemq.camel.CamelConnectionFactory.setCamelContext(CamelContext) may expose internal representation by storing an externally mutable object into CamelConnectionFactory.camelContext |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.CamelConnectionFactory In method org.apache.activemq.camel.CamelConnectionFactory.setCamelContext(CamelContext) Field org.apache.activemq.camel.CamelConnectionFactory.camelContext Local variable named camelContext At CamelConnectionFactory.java:[line 42]
|
EI2
|
org.apache.activemq.camel.CamelDestination.setBinding(JmsBinding) may expose internal representation by storing an externally mutable object into CamelDestination.binding |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.CamelDestination In method org.apache.activemq.camel.CamelDestination.setBinding(JmsBinding) Field org.apache.activemq.camel.CamelDestination.binding Local variable named binding At CamelDestination.java:[line 126]
|
EI2
|
org.apache.activemq.camel.CamelDestination.setCamelContext(CamelContext) may expose internal representation by storing an externally mutable object into CamelDestination.camelContext |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.CamelDestination In method org.apache.activemq.camel.CamelDestination.setCamelContext(CamelContext) Field org.apache.activemq.camel.CamelDestination.camelContext Local variable named camelContext At CamelDestination.java:[line 118]
|
EI2
|
org.apache.activemq.camel.CamelDestination.setEndpoint(Endpoint) may expose internal representation by storing an externally mutable object into CamelDestination.endpoint |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.CamelDestination In method org.apache.activemq.camel.CamelDestination.setEndpoint(Endpoint) Field org.apache.activemq.camel.CamelDestination.endpoint Local variable named endpoint At CamelDestination.java:[line 110]
|
EI2
|
new org.apache.activemq.camel.CamelMessageConsumer(CamelDestination, Endpoint, ActiveMQSession, String, boolean) may expose internal representation by storing an externally mutable object into CamelMessageConsumer.destination |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.CamelMessageConsumer In method new org.apache.activemq.camel.CamelMessageConsumer(CamelDestination, Endpoint, ActiveMQSession, String, boolean) Field org.apache.activemq.camel.CamelMessageConsumer.destination Local variable named destination At CamelMessageConsumer.java:[line 51]
|
EI2
|
new org.apache.activemq.camel.CamelMessageConsumer(CamelDestination, Endpoint, ActiveMQSession, String, boolean) may expose internal representation by storing an externally mutable object into CamelMessageConsumer.endpoint |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.CamelMessageConsumer In method new org.apache.activemq.camel.CamelMessageConsumer(CamelDestination, Endpoint, ActiveMQSession, String, boolean) Field org.apache.activemq.camel.CamelMessageConsumer.endpoint Local variable named endpoint At CamelMessageConsumer.java:[line 52]
|
EI2
|
new org.apache.activemq.camel.CamelMessageConsumer(CamelDestination, Endpoint, ActiveMQSession, String, boolean) may expose internal representation by storing an externally mutable object into CamelMessageConsumer.session |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.CamelMessageConsumer In method new org.apache.activemq.camel.CamelMessageConsumer(CamelDestination, Endpoint, ActiveMQSession, String, boolean) Field org.apache.activemq.camel.CamelMessageConsumer.session Local variable named session At CamelMessageConsumer.java:[line 53]
|
EI2
|
new org.apache.activemq.camel.CamelMessageProducer(CamelDestination, Endpoint, ActiveMQSession) may expose internal representation by storing an externally mutable object into CamelMessageProducer.destination |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.CamelMessageProducer In method new org.apache.activemq.camel.CamelMessageProducer(CamelDestination, Endpoint, ActiveMQSession) Field org.apache.activemq.camel.CamelMessageProducer.destination Local variable named destination At CamelMessageProducer.java:[line 50]
|
EI2
|
new org.apache.activemq.camel.CamelMessageProducer(CamelDestination, Endpoint, ActiveMQSession) may expose internal representation by storing an externally mutable object into CamelMessageProducer.endpoint |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.CamelMessageProducer In method new org.apache.activemq.camel.CamelMessageProducer(CamelDestination, Endpoint, ActiveMQSession) Field org.apache.activemq.camel.CamelMessageProducer.endpoint Local variable named endpoint At CamelMessageProducer.java:[line 51]
|
EI2
|
org.apache.activemq.camel.CamelShutdownHook.setCamelContext(CamelContext) may expose internal representation by storing an externally mutable object into CamelShutdownHook.camelContext |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.CamelShutdownHook In method org.apache.activemq.camel.CamelShutdownHook.setCamelContext(CamelContext) Field org.apache.activemq.camel.CamelShutdownHook.camelContext Local variable named camelContext At CamelShutdownHook.java:[line 70]
|
EI2
|
new org.apache.activemq.camel.component.CamelEndpointLoader(CamelContext, DestinationSource) may expose internal representation by storing an externally mutable object into CamelEndpointLoader.camelContext |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.component.CamelEndpointLoader In method new org.apache.activemq.camel.component.CamelEndpointLoader(CamelContext, DestinationSource) Field org.apache.activemq.camel.component.CamelEndpointLoader.camelContext Local variable named camelContext At CamelEndpointLoader.java:[line 53]
|
EI2
|
new org.apache.activemq.camel.component.CamelEndpointLoader(CamelContext, DestinationSource) may expose internal representation by storing an externally mutable object into CamelEndpointLoader.source |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.component.CamelEndpointLoader In method new org.apache.activemq.camel.component.CamelEndpointLoader(CamelContext, DestinationSource) Field org.apache.activemq.camel.component.CamelEndpointLoader.source Local variable named source At CamelEndpointLoader.java:[line 54]
|
EI2
|
org.apache.activemq.camel.component.CamelEndpointLoader.setCamelContext(CamelContext) may expose internal representation by storing an externally mutable object into CamelEndpointLoader.camelContext |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.component.CamelEndpointLoader In method org.apache.activemq.camel.component.CamelEndpointLoader.setCamelContext(CamelContext) Field org.apache.activemq.camel.component.CamelEndpointLoader.camelContext Local variable named camelContext At CamelEndpointLoader.java:[line 127]
|
EI2
|
org.apache.activemq.camel.component.CamelEndpointLoader.setComponent(ActiveMQComponent) may expose internal representation by storing an externally mutable object into CamelEndpointLoader.component |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.component.CamelEndpointLoader In method org.apache.activemq.camel.component.CamelEndpointLoader.setComponent(ActiveMQComponent) Field org.apache.activemq.camel.component.CamelEndpointLoader.component Local variable named component At CamelEndpointLoader.java:[line 138]
|
EI2
|
new org.apache.activemq.camel.component.broker.BrokerEndpoint(String, BrokerComponent, String, ActiveMQDestination, BrokerConfiguration) may expose internal representation by storing an externally mutable object into BrokerEndpoint.configuration |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.component.broker.BrokerEndpoint In method new org.apache.activemq.camel.component.broker.BrokerEndpoint(String, BrokerComponent, String, ActiveMQDestination, BrokerConfiguration) Field org.apache.activemq.camel.component.broker.BrokerEndpoint.configuration Local variable named configuration At BrokerEndpoint.java:[line 59]
|
EI2
|
new org.apache.activemq.camel.component.broker.BrokerEndpoint(String, BrokerComponent, String, ActiveMQDestination, BrokerConfiguration) may expose internal representation by storing an externally mutable object into BrokerEndpoint.destination |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.component.broker.BrokerEndpoint In method new org.apache.activemq.camel.component.broker.BrokerEndpoint(String, BrokerComponent, String, ActiveMQDestination, BrokerConfiguration) Field org.apache.activemq.camel.component.broker.BrokerEndpoint.destination Local variable named destination At BrokerEndpoint.java:[line 58]
|
EI2
|
new org.apache.activemq.camel.component.broker.BrokerProducer(BrokerEndpoint) may expose internal representation by storing an externally mutable object into BrokerProducer.brokerEndpoint |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.component.broker.BrokerProducer In method new org.apache.activemq.camel.component.broker.BrokerProducer(BrokerEndpoint) Field org.apache.activemq.camel.component.broker.BrokerProducer.brokerEndpoint Local variable named endpoint At BrokerProducer.java:[line 35]
|
EI2
|
org.apache.activemq.camel.converter.ActiveMQMessageConverter.setBinding(JmsBinding) may expose internal representation by storing an externally mutable object into ActiveMQMessageConverter.binding |
|
Bug type EI_EXPOSE_REP2 (click for details)
In class org.apache.activemq.camel.converter.ActiveMQMessageConverter In method org.apache.activemq.camel.converter.ActiveMQMessageConverter.setBinding(JmsBinding) Field org.apache.activemq.camel.converter.ActiveMQMessageConverter.binding Local variable named binding At ActiveMQMessageConverter.java:[line 101]
|
Classes that throw exceptions in their constructors are vulnerable to Finalizer attacks
A finalizer attack can be prevented, by declaring the class final, using an empty finalizer declared as final, or by a clever use of a private constructor.
Returning a reference to a mutable object value stored in one of the object's fields
exposes the internal representation of the object.
If instances
are accessed by untrusted code, and unchecked changes to
the mutable object would compromise security or other
important properties, you will need to do something different.
Returning a new copy of the object is better approach in many situations.
This code stores a reference to an externally mutable object into the
internal representation of the object.
If instances
are accessed by untrusted code, and unchecked changes to
the mutable object would compromise security or other
important properties, you will need to do something different.
Storing a copy of the object is better approach in many situations.