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:
Claus Ibsen 2012-09-08 10:27:19 +00:00
parent f4c54db2a8
commit aec27626d5
1 changed files with 1 additions and 1 deletions

View File

@ -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);