Merge pull request #698 from skyguard1/fix_message_get_string

[AMQ-8350] ActiveMQMessage.getStringProperty() should exchange equals method call objects
This commit is contained in:
Jean-Baptiste Onofré 2021-08-06 07:16:35 +02:00 committed by GitHub
commit f49b04c15a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);