INT-2238 interim commit
INT-2238 fixing warning comments INT-2238 fixing warning comments INT-2238 fixing warning comments
This commit is contained in:
committed by
Mark Fisher
parent
dfd039b78e
commit
43f60dae08
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user