Sonar Fixes after Checkstyle Updates

https://sonar.spring.io/issues/search#componentRoots=org.springframework.integration%3Aspring-integration|createdAt=2016-04-07T03%3A04%3A31%2B0000|sort=UPDATE_DATE|asc=false
This commit is contained in:
Gary Russell
2016-04-07 09:01:17 -04:00
parent 57f96bb759
commit 020aa019a1
3 changed files with 5 additions and 8 deletions

View File

@@ -80,11 +80,9 @@ public abstract class AbstractPersistentAcceptOnceFileListFilter<F> extends Abst
return true;
}
// same value in store
if (!isEqual(file, oldValue)) {
if (this.store.replace(key, oldValue, newValue)) {
flushIfNeeded();
return true;
}
if (!isEqual(file, oldValue) && this.store.replace(key, oldValue, newValue)) {
flushIfNeeded();
return true;
}
return false;
}