polishing

This commit is contained in:
Mark Fisher
2011-09-01 22:17:39 -04:00
parent 9fc834f92f
commit 874c3f518f
7 changed files with 17 additions and 19 deletions

View File

@@ -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";
}

View File

@@ -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

View File

@@ -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);
}