diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java index eb38261038..b42ca58dcc 100644 --- a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java +++ b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java @@ -61,7 +61,7 @@ public abstract class AbstractRemoteFileOutboundGateway extends AbstractReply protected Set options = new HashSet(); - public static final String OPTION_JUST_NAME = "-1"; + public static final String OPTION_NAME_ONLY = "-1"; public static final String OPTION_ALL = "-a"; @@ -199,7 +199,7 @@ public abstract class AbstractRemoteFileOutboundGateway extends AbstractReply if (!this.options.contains(OPTION_ALL)) { purgeDots(lsFiles); } - if (this.options.contains(OPTION_JUST_NAME)) { + if (this.options.contains(OPTION_NAME_ONLY)) { List results = new ArrayList(); for (F file : lsFiles) { results.add(getFilename(file)); diff --git a/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/gateway/SftpOutboundGateway.java b/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/gateway/SftpOutboundGateway.java index ad419b9993..a6cc62038e 100644 --- a/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/gateway/SftpOutboundGateway.java +++ b/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/gateway/SftpOutboundGateway.java @@ -29,7 +29,7 @@ import com.jcraft.jsch.ChannelSftp.LsEntry; /** * @author Gary Russell - * @since 2.0.4 + * @since 2.1 */ public class SftpOutboundGateway extends AbstractRemoteFileOutboundGateway {