polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2010 the original author or authors.
|
||||
* Copyright 2002-2011 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -30,8 +30,8 @@ public abstract class FileHeaders {
|
||||
|
||||
public static final String ORIGINAL_FILE = PREFIX + "originalFile";
|
||||
|
||||
public static final String REMOTE_DIR = PREFIX + "remote_dir";
|
||||
public static final String REMOTE_DIR = PREFIX + "remoteDir";
|
||||
|
||||
public static final String REMOTE_FILE = PREFIX + "remote_file";
|
||||
public static final String REMOTE_FILE = PREFIX + "remoteFile";
|
||||
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ public abstract class AbstractRemoteFileOutboundGateway<F> extends AbstractReply
|
||||
}
|
||||
return results;
|
||||
} else {
|
||||
List<AbstractFileInfo<F>> canonicalFiles = this.asFileInFoList(lsFiles);
|
||||
List<AbstractFileInfo<F>> canonicalFiles = this.asFileInfoList(lsFiles);
|
||||
for (AbstractFileInfo<F> file : canonicalFiles) {
|
||||
file.setRemoteDir(dir);
|
||||
}
|
||||
@@ -318,7 +318,7 @@ public abstract class AbstractRemoteFileOutboundGateway<F> extends AbstractReply
|
||||
|
||||
abstract protected long getModified(F file);
|
||||
|
||||
abstract protected List<AbstractFileInfo<F>> asFileInFoList(Collection<F> files);
|
||||
abstract protected List<AbstractFileInfo<F>> asFileInfoList(Collection<F> files);
|
||||
|
||||
/**
|
||||
* @param options the options to set
|
||||
|
||||
@@ -428,7 +428,7 @@ class TestRemoteFileOutboundGateway extends AbstractRemoteFileOutboundGateway<Te
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List<AbstractFileInfo<TestLsEntry>> asFileInFoList(
|
||||
protected List<AbstractFileInfo<TestLsEntry>> asFileInfoList(
|
||||
Collection<TestLsEntry> files) {
|
||||
return new ArrayList<AbstractFileInfo<TestLsEntry>>(files);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user