removed test compile warnings

INT-2267
removed test compile warnings(2)
This commit is contained in:
Oleg Zhurakousky
2011-11-29 12:34:52 -05:00
parent 5c606dfcb4
commit 634e190f5c
24 changed files with 124 additions and 116 deletions

View File

@@ -23,6 +23,7 @@ import org.apache.commons.logging.LogFactory;
import org.apache.commons.net.ftp.FTP;
import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPClientConfig;
import org.apache.commons.net.ftp.FTPFile;
import org.apache.commons.net.ftp.FTPReply;
import org.springframework.integration.MessagingException;
@@ -38,7 +39,7 @@ import org.springframework.util.Assert;
* @author Oleg Zhurakousky
* @since 2.0
*/
public abstract class AbstractFtpSessionFactory<T extends FTPClient> implements SessionFactory {
public abstract class AbstractFtpSessionFactory<T extends FTPClient> implements SessionFactory<FTPFile> {
public static final String DEFAULT_REMOTE_WORKING_DIRECTORY = "/";
@@ -123,7 +124,7 @@ public abstract class AbstractFtpSessionFactory<T extends FTPClient> implements
this.clientMode = clientMode;
}
public Session getSession() {
public Session<FTPFile> getSession() {
try {
T client = this.createClient();
if (client == null) {