From 779a19d1219bf7ce0e210996169c40bd61dac338 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Fri, 17 Feb 2017 12:21:24 -0500 Subject: [PATCH] Revert "NO-JIRA Remove Property shouldn't invalidate buffer if not found" This reverts commit f492bd978648edecfbc0cdd378f856e295cf2bde. --- .../activemq/artemis/core/message/impl/MessageImpl.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/MessageImpl.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/MessageImpl.java index 92dc2c9fc2..69e6e6520b 100644 --- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/MessageImpl.java +++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/MessageImpl.java @@ -859,13 +859,9 @@ public abstract class MessageImpl implements MessageInternal { @Override public Object removeProperty(final SimpleString key) { - Object oldValue = properties.removeProperty(key); + bufferValid = false; - if (oldValue != null) { - bufferValid = false; - } - - return oldValue; + return properties.removeProperty(key); } @Override