INT-1614 proper handling of parameterized method call

This commit is contained in:
Mark Fisher
2010-11-21 16:32:36 -05:00
parent 54ce478f4b
commit a62dece984
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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) {