[AMQ-8350] ActiveMQMessage.getStringProperty() should exchange equals method call objects

(cherry picked from commit dbbf3cb3f3)
This commit is contained in:
xingrufei 2021-08-06 10:22:38 +08:00 committed by Jean-Baptiste Onofré
parent 2ec4673a59
commit ec23ab93dd
1 changed files with 1 additions and 1 deletions

View File

@ -674,7 +674,7 @@ public class ActiveMQMessage extends Message implements org.apache.activemq.Mess
@Override
public String getStringProperty(String name) throws JMSException {
Object value = null;
if (name.equals("JMSXUserID")) {
if ("JMSXUserID".equals(name)) {
value = getUserID();
if (value == null) {
value = getObjectProperty(name);