INT-1614 proper handling of parameterized method call
This commit is contained in:
@@ -121,7 +121,7 @@ public class CachingSessionFactory implements SessionFactory, DisposableBean {
|
||||
}
|
||||
|
||||
public <F> F[] ls(String path) {
|
||||
return this.targetSession.ls(path);
|
||||
return this.targetSession.<F>ls(path);
|
||||
}
|
||||
|
||||
public InputStream get(String source) {
|
||||
|
||||
@@ -108,7 +108,7 @@ public abstract class AbstractInboundFileSynchronizer<F> 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.<F>ls(this.remoteDirectory);
|
||||
if (!ObjectUtils.isEmpty(files)) {
|
||||
Collection<F> filteredFiles = this.filterFiles(files);
|
||||
for (F file : filteredFiles) {
|
||||
|
||||
Reference in New Issue
Block a user