diff --git a/spring-integration-core/src/main/java/org/springframework/integration/selector/MetadataStoreSelector.java b/spring-integration-core/src/main/java/org/springframework/integration/selector/MetadataStoreSelector.java index eac404647d..efcc998fc5 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/selector/MetadataStoreSelector.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/selector/MetadataStoreSelector.java @@ -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;