GH-3241: Fix Sonar issue

This commit is contained in:
Gary Russell
2020-04-07 10:32:01 -04:00
parent 7d7c273515
commit cc0c2fd2fe

View File

@@ -123,7 +123,7 @@ public class MetadataStoreSelector implements MessageSelector {
if (oldValue == null) {
return this.metadataStore.putIfAbsent(key, value) == null;
}
if (this.compareValues.test(oldValue, value)) {
if (this.compareValues.test(oldValue, value)) { // NOSONAR (null dereference)
return this.metadataStore.replace(key, oldValue, value);
}
return false;