diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/CachingSessionFactory.java b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/CachingSessionFactory.java index 46d8f5c9c2..1d6231a425 100644 --- a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/CachingSessionFactory.java +++ b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/CachingSessionFactory.java @@ -121,7 +121,7 @@ public class CachingSessionFactory implements SessionFactory, DisposableBean { } public F[] ls(String path) { - return this.targetSession.ls(path); + return this.targetSession.ls(path); } public InputStream get(String source) { diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/synchronizer/AbstractInboundFileSynchronizer.java b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/synchronizer/AbstractInboundFileSynchronizer.java index ea47957aa6..1252bafd7f 100644 --- a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/synchronizer/AbstractInboundFileSynchronizer.java +++ b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/synchronizer/AbstractInboundFileSynchronizer.java @@ -108,7 +108,7 @@ public abstract class AbstractInboundFileSynchronizer implements InboundFileS try { session = this.sessionFactory.getSession(); Assert.state(session != null, "failed to acquire a Session"); - F[] files = session.ls(this.remoteDirectory); + F[] files = session.ls(this.remoteDirectory); if (!ObjectUtils.isEmpty(files)) { Collection filteredFiles = this.filterFiles(files); for (F file : filteredFiles) {