Fix breaking change for PersistentFileListFilter
The `AbstractPersistentAcceptOnceFileListFilter` extends now an `AbstractDirectoryAwareFileListFilter` and makes all the implementors to implement its `isDirectory()` method. This is a breaking change in the point release which makes implementations outside of the core project not compilable The regression after: https://github.com/spring-projects/spring-integration/issues/3488 Related fix in the Spring Cloud GCP: https://github.com/spring-cloud/spring-cloud-gcp/pull/2654 * Implement an `isDirectory()` in the `AbstractPersistentAcceptOnceFileListFilter` to let other implementations do not worry during upgrade **Cherry-pick to `5.4.x` & `5.3.x`**
This commit is contained in:
committed by
Gary Russell
parent
3c541c52b4
commit
6d9bd59659
@@ -180,6 +180,11 @@ public abstract class AbstractPersistentAcceptOnceFileListFilter<F> extends Abst
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isDirectory(F file) {
|
||||
return false;
|
||||
}
|
||||
|
||||
protected abstract long modified(F file);
|
||||
|
||||
protected abstract String fileName(F file);
|
||||
|
||||
Reference in New Issue
Block a user