mirror of https://github.com/apache/activemq.git
AMQ-3976: Use equals instead of == in checking destination names. Thanks to Lior for the patch.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1382275 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f4c54db2a8
commit
aec27626d5
|
@ -248,7 +248,7 @@ public class ActiveMQMessageProducer extends ActiveMQMessageProducerSupport impl
|
|||
}
|
||||
|
||||
ActiveMQDestination dest;
|
||||
if (destination == info.getDestination()) {
|
||||
if (destination.equals(info.getDestination())) {
|
||||
dest = (ActiveMQDestination)destination;
|
||||
} else if (info.getDestination() == null) {
|
||||
dest = ActiveMQDestination.transform(destination);
|
||||
|
|
Loading…
Reference in New Issue