NO-JIRA Remove Property shouldn't invalidate buffer if not found
(cherry picked from commit cf71b7292a
)
This commit is contained in:
parent
6d0f28291f
commit
f492bd9786
|
@ -859,9 +859,13 @@ public abstract class MessageImpl implements MessageInternal {
|
|||
|
||||
@Override
|
||||
public Object removeProperty(final SimpleString key) {
|
||||
bufferValid = false;
|
||||
Object oldValue = properties.removeProperty(key);
|
||||
|
||||
return properties.removeProperty(key);
|
||||
if (oldValue != null) {
|
||||
bufferValid = false;
|
||||
}
|
||||
|
||||
return oldValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue