INT-2238 interim commit

INT-2238 fixing warning comments

INT-2238 fixing warning comments

INT-2238 fixing warning comments
This commit is contained in:
Oleg Zhurakousky
2011-11-22 05:59:12 -05:00
committed by Mark Fisher
parent dfd039b78e
commit 43f60dae08
22 changed files with 51 additions and 61 deletions

View File

@@ -34,7 +34,7 @@ import org.springframework.integration.ftp.session.FtpFileInfo;
*/
public class FtpOutboundGateway extends AbstractRemoteFileOutboundGateway<FTPFile> {
public FtpOutboundGateway(SessionFactory sessionFactory, String command,
public FtpOutboundGateway(SessionFactory<FTPFile> sessionFactory, String command,
String expression) {
super(sessionFactory, command, expression);
}

View File

@@ -35,7 +35,7 @@ public class FtpInboundFileSynchronizer extends AbstractInboundFileSynchronizer<
/**
* Create a synchronizer with the {@link SessionFactory} used to acquire {@link Session} instances.
*/
public FtpInboundFileSynchronizer(SessionFactory sessionFactory) {
public FtpInboundFileSynchronizer(SessionFactory<FTPFile> sessionFactory) {
super(sessionFactory);
}

View File

@@ -35,7 +35,7 @@ import org.springframework.util.Assert;
* @author Oleg Zhurakousky
* @since 2.0
*/
class FtpSession implements Session {
class FtpSession implements Session<FTPFile> {
private final Log logger = LogFactory.getLog(this.getClass());
@@ -56,8 +56,7 @@ class FtpSession implements Session {
}
return completed;
}
@SuppressWarnings({"unchecked"})
public FTPFile[] list(String path) throws IOException {
Assert.hasText(path, "path must not be null");
return this.client.listFiles(path);