This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
The following commit(s) were added to refs/heads/master by this push:
new 7a9aa828 (doc) Fix typos in javadoc and comments (#276)
7a9aa828 is described below
commit 7a9aa828054583c4452b865cf4a3fa9157557ec1
Author: Marc Wrobel <[email protected]>
AuthorDate: Fri Jul 15 19:41:53 2022 +0200
(doc) Fix typos in javadoc and comments (#276)
---
.../java/org/apache/commons/vfs2/FileContent.java | 4 ++--
.../commons/vfs2/FileContentInfoFactory.java | 2 +-
.../apache/commons/vfs2/FileExtensionSelector.java | 2 +-
.../java/org/apache/commons/vfs2/FileSystem.java | 4 ++--
.../org/apache/commons/vfs2/FileSystemManager.java | 10 ++++-----
.../main/java/org/apache/commons/vfs2/VfsLog.java | 2 +-
.../apache/commons/vfs2/cache/LRUFilesCache.java | 2 +-
.../commons/vfs2/cache/WeakRefFilesCache.java | 2 +-
.../apache/commons/vfs2/filter/AgeFileFilter.java | 8 ++++----
.../commons/vfs2/filter/HiddenFileFilter.java | 2 +-
.../org/apache/commons/vfs2/filter/IOCase.java | 10 ++++-----
.../apache/commons/vfs2/filter/NameFileFilter.java | 2 +-
.../commons/vfs2/filter/PrefixFileFilter.java | 2 +-
.../commons/vfs2/filter/SuffixFileFilter.java | 4 ++--
.../vfs2/filter/SymbolicLinkFileFilter.java | 2 +-
.../commons/vfs2/filter/WildcardFileFilter.java | 6 +++---
.../commons/vfs2/impl/DefaultFileMonitor.java | 2 +-
.../commons/vfs2/impl/DefaultFileReplicator.java | 2 +-
.../vfs2/impl/DefaultFileSystemConfigBuilder.java | 2 +-
.../vfs2/impl/DefaultFileSystemManager.java | 24 +++++++++++-----------
.../vfs2/impl/StandardFileSystemManager.java | 8 ++++----
.../commons/vfs2/impl/SynchronizedFileObject.java | 2 +-
.../commons/vfs2/impl/URLStreamHandlerProxy.java | 4 ++--
.../apache/commons/vfs2/impl/VFSClassLoader.java | 10 ++++-----
.../vfs2/operations/AbstractFileOperation.java | 4 ++--
.../operations/AbstractFileOperationProvider.java | 4 ++--
.../vfs2/operations/FileOperationProvider.java | 2 +-
.../commons/vfs2/operations/FileOperations.java | 10 ++++-----
.../commons/vfs2/operations/vcs/VcsCheckout.java | 2 +-
.../commons/vfs2/provider/AbstractFileObject.java | 16 +++++++--------
.../vfs2/provider/AbstractFileProvider.java | 2 +-
.../commons/vfs2/provider/AbstractFileSystem.java | 2 +-
.../vfs2/provider/AbstractVfsContainer.java | 8 ++++----
.../commons/vfs2/provider/DefaultFileContent.java | 6 +++---
.../apache/commons/vfs2/provider/FileProvider.java | 4 ++--
.../vfs2/provider/GenericURLFileNameParser.java | 2 +-
.../apache/commons/vfs2/provider/UriParser.java | 2 +-
.../vfs2/provider/bzip2/Bzip2FileSystem.java | 2 +-
.../compressed/CompressedFileFileObject.java | 2 +-
.../vfs2/provider/ftp/FTPClientWrapper.java | 2 +-
.../commons/vfs2/provider/ftp/FtpClient.java | 2 +-
.../commons/vfs2/provider/ftp/FtpFileObject.java | 4 ++--
.../commons/vfs2/provider/ftp/FtpFileSystem.java | 2 +-
.../provider/ftp/FtpFileSystemConfigBuilder.java | 2 +-
.../provider/hdfs/HdfsFileContentInfoFactory.java | 2 +-
.../vfs2/provider/http4/Http4FileProvider.java | 2 +-
.../http4/Http4FileSystemConfigBuilder.java | 8 ++++----
.../vfs2/provider/http5/Http5FileProvider.java | 2 +-
.../http5/Http5FileSystemConfigBuilder.java | 8 ++++----
.../commons/vfs2/provider/jar/JarFileSystem.java | 4 ++--
.../vfs2/provider/local/GenericFileNameParser.java | 2 +-
.../provider/ram/RamFileRandomAccessContent.java | 2 +-
.../vfs2/provider/res/ResourceFileNameParser.java | 2 +-
.../commons/vfs2/provider/sftp/SftpFileObject.java | 4 ++--
.../provider/sftp/SftpFileSystemConfigBuilder.java | 4 ++--
.../commons/vfs2/provider/url/UrlFileObject.java | 2 +-
.../commons/vfs2/tasks/AbstractSyncTask.java | 6 +++---
.../org/apache/commons/vfs2/tasks/DeleteTask.java | 2 +-
.../util/DelegatingFileSystemOptionsBuilder.java | 8 ++++----
.../main/java/org/apache/commons/vfs2/util/Os.java | 4 ++--
.../commons/vfs2/AbstractProviderTestCase.java | 2 +-
.../java/org/apache/commons/vfs2/NamingTests.java | 4 ++--
.../commons/vfs2/ProviderCacheStrategyTests.java | 8 ++++----
.../org/apache/commons/vfs2/ProviderReadTests.java | 4 ++--
.../apache/commons/vfs2/ProviderRenameTests.java | 2 +-
.../apache/commons/vfs2/ProviderWriteTests.java | 6 +++---
.../apache/commons/vfs2/VerifyingFileSelector.java | 2 +-
.../vfs2/cache/AbstractFilesCacheTestsBase.java | 4 ++--
.../commons/vfs2/cache/LRUFilesCacheTests.java | 14 ++++++-------
.../apache/commons/vfs2/filter/BaseFilterTest.java | 20 +++++++++---------
.../commons/vfs2/impl/DefaultFileMonitorTest.java | 2 +-
.../vfs2/operations/BasicOperationsTest.java | 4 ++--
.../provider/ftp/FtpProviderMdtmOffTestCase.java | 2 +-
.../vfs2/provider/hdfs/HdfsFileProviderTest.java | 2 +-
.../provider/hdfs/HdfsFileProviderTestCase.java | 2 +-
.../vfs2/provider/ram/CustomRamProviderTest.java | 12 +++++------
.../sftp/SftpPermissionExceptionTestCase.java | 4 ++--
.../DelegatingFileSystemOptionsBuilderTest.java | 2 +-
.../apache/commons/vfs2/util/NHttpFileServer.java | 2 +-
79 files changed, 179 insertions(+), 179 deletions(-)
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileContent.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileContent.java
index 27a6b207..6b7b7f80 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileContent.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileContent.java
@@ -60,7 +60,7 @@ public interface FileContent extends Closeable {
/**
* Gets the value of an attribute of the file's content.
*
- * @param attrName The name of the attribute. Attribute names are case
insensitive.
+ * @param attrName The name of the attribute. Attribute names are
case-insensitive.
* @return The value of the attribute, or null if the attribute value is
unknown.
* @throws FileSystemException If the file does not exist, or does not
support attributes.
*/
@@ -248,7 +248,7 @@ public interface FileContent extends Closeable {
}
/**
- * Gets an stream for reading/writing the file's content.
+ * Gets a stream for reading/writing the file's content.
* <p>
* If the file does not exist, and you use one of the write* methods, this
method creates it, and the parent folder,
* if necessary. If the file does exist, parts of the file are replaced
with whatever is written at a given
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileContentInfoFactory.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileContentInfoFactory.java
index 714379ae..96a00e13 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileContentInfoFactory.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileContentInfoFactory.java
@@ -22,7 +22,7 @@ package org.apache.commons.vfs2;
public interface FileContentInfoFactory {
/**
- * Creates a FileContentInfo for a the given FileContent.
+ * Creates a FileContentInfo for the given FileContent.
*
* @param fileContent Use this FileContent to create a matching
FileContentInfo
* @return a FileContentInfo for the given FileContent.
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileExtensionSelector.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileExtensionSelector.java
index 863e35b6..e3c01afd 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileExtensionSelector.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileExtensionSelector.java
@@ -82,7 +82,7 @@ public class FileExtensionSelector implements FileSelector {
* Determines whether a folder should be traversed.
*
* @param fileInfo The file selection information.
- * @return true if descendants should be traversed, fase otherwise.
+ * @return true if descendants should be traversed, false otherwise.
*/
@Override
public boolean traverseDescendents(final FileSelectInfo fileInfo) throws
Exception {
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystem.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystem.java
index cb839f7b..e7179fa3 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystem.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystem.java
@@ -60,7 +60,7 @@ public interface FileSystem {
Object getAttribute(String attrName) throws FileSystemException;
/**
- * Returns a reference to the FileSytemManager.
+ * Returns a reference to the FileSystemManager.
*
* @return The FileSystemManager.
*/
@@ -148,7 +148,7 @@ public interface FileSystem {
* Creates a temporary local copy of a file and its descendants. If this
file is already a local file, a copy is not
* made.
* <p>
- * Note that the local copy may include additonal files, that were not
selected by the given selector.
+ * Note that the local copy may include additional files, that were not
selected by the given selector.
* </p>
* <p>
* TODO - Add options to indicate whether the caller is happy to deal with
extra files being present locally (eg if
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemManager.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemManager.java
index bfadd594..13de93a6 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemManager.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemManager.java
@@ -59,7 +59,7 @@ public interface FileSystemManager extends AutoCloseable {
* we can register {@code SvnWsOperationProvider} and {@code
CvsOperationProvider.}
* </p>
*
- * @param scheme The scheme assoicated with this provider.
+ * @param scheme The scheme associated with this provider.
* @param operationProvider The FileOperationProvider to add.
* @throws FileSystemException if an error occurs.
*/
@@ -189,16 +189,16 @@ public interface FileSystemManager extends AutoCloseable {
/**
* Gets the configuration builder for the given scheme.
*
- * @param scheme The schem to use to obtain the FileSystemConfigBuidler.
+ * @param scheme The scheme to use to obtain the FileSystemConfigBuilder.
* @return A FileSystemConfigBuilder appropriate for the given scheme.
- * @throws FileSystemException if the given scheme is not konwn.
+ * @throws FileSystemException if the given scheme is not known.
*/
FileSystemConfigBuilder getFileSystemConfigBuilder(String scheme) throws
FileSystemException;
/**
* Gets Providers for file operations.
*
- * @param scheme the scheme for wich we want to get the list af registered
providers.
+ * @param scheme the scheme for which we want to get the list af
registered providers.
*
* @return the registered FileOperationProviders for the specified scheme.
If there were no providers registered for
* the scheme, it returns null.
@@ -212,7 +212,7 @@ public interface FileSystemManager extends AutoCloseable {
*
* @param scheme The scheme to use to locate the provider's capabilities.
* @return A Collection of the various capabilities.
- * @throws FileSystemException if the given scheme is not konwn.
+ * @throws FileSystemException if the given scheme is not known.
*/
Collection<Capability> getProviderCapabilities(String scheme) throws
FileSystemException;
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/VfsLog.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/VfsLog.java
index c4a5018e..7a11a5c3 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/VfsLog.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/VfsLog.java
@@ -20,7 +20,7 @@ import org.apache.commons.logging.Log;
/**
* This class is to keep the old logging behavior (for ant-task) and to be
able to correctly use commons-logging.
- * I hope i could remove it sometimes.
+ * I hope I could remove it sometimes.
*/
public final class VfsLog {
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/cache/LRUFilesCache.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/cache/LRUFilesCache.java
index aacf64f1..c6bf7ac2 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/cache/LRUFilesCache.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/cache/LRUFilesCache.java
@@ -114,7 +114,7 @@ public class LRUFilesCache extends AbstractFilesCache {
private final Lock writeLock = rwLock.writeLock();
/**
- * Default constructor. Uses a LRU size of 100 per file system.
+ * Default constructor. Uses an LRU size of 100 per file system.
*/
public LRUFilesCache() {
this(DEFAULT_LRU_SIZE);
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/cache/WeakRefFilesCache.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/cache/WeakRefFilesCache.java
index f8a90e5e..aee099f3 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/cache/WeakRefFilesCache.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/cache/WeakRefFilesCache.java
@@ -25,7 +25,7 @@ import org.apache.commons.vfs2.FileObject;
/**
* This implementation caches every file as long as it is strongly reachable
by the java vm. As soon as the object is no
* longer reachable it will be discarded. In contrast to the SoftRefFilesCache
this implementation might free resources
- * faster as it don't wait until a memory limitation.
+ * faster as it doesn't wait until a memory limitation.
*
* @see java.lang.ref.WeakReference
*/
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/AgeFileFilter.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/AgeFileFilter.java
index 04c02a01..09e71826 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/AgeFileFilter.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/AgeFileFilter.java
@@ -86,7 +86,7 @@ public class AgeFileFilter implements FileFilter,
Serializable {
* Constructs a new age file filter for files older than (at or before) a
* certain File (whose last modification time will be used as reference).
*
- * @param cutoffReference the file whose last modification time is usesd
as the
+ * @param cutoffReference the file whose last modification time is used as
the
* threshold age of the files
*
* @throws FileSystemException Error reading the last modification time
from the
@@ -100,7 +100,7 @@ public class AgeFileFilter implements FileFilter,
Serializable {
* Constructs a new age file filter for files on any one side of a certain
File
* (whose last modification time will be used as reference).
*
- * @param cutoffReference the file whose last modification time is usesd
as the
+ * @param cutoffReference the file whose last modification time is used as
the
* threshold age of the files
* @param acceptOlder if true, older files (at or before the cutoff)
are
* accepted, else newer ones (after the cutoff).
@@ -177,9 +177,9 @@ public class AgeFileFilter implements FileFilter,
Serializable {
}
/**
- * Provide a String representaion of this file filter.
+ * Provide a String representation of this file filter.
*
- * @return a String representaion
+ * @return a String representation
*/
@Override
public String toString() {
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/HiddenFileFilter.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/HiddenFileFilter.java
index 01360545..77fb7673 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/HiddenFileFilter.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/HiddenFileFilter.java
@@ -73,7 +73,7 @@ public class HiddenFileFilter implements FileFilter,
Serializable {
}
/**
- * Checks to see if the file is hidden. Non existing files won't be
accepted.
+ * Checks to see if the file is hidden. Non-existing files won't be
accepted.
*
* @param fileSelectInfo the File to check
*
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/IOCase.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/IOCase.java
index 06e5b553..9c830588 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/IOCase.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/IOCase.java
@@ -41,12 +41,12 @@ import java.io.File;
public enum IOCase {
/**
- * The constant for case sensitive regardless of operating system.
+ * The constant for case-sensitive regardless of operating system.
*/
SENSITIVE("Sensitive", true),
/**
- * The constant for case insensitive regardless of operating system.
+ * The constant for case-insensitive regardless of operating system.
*/
INSENSITIVE("Insensitive", false),
@@ -55,7 +55,7 @@ public enum IOCase {
* Windows is case-insensitive when comparing file names, Unix is
case-sensitive.
* <p>
* <strong>Note:</strong> This only caters for Windows and Unix. Other
operating
- * systems (e.g. OSX and OpenVMS) are treated as case sensitive if they
use the
+ * systems (e.g. OSX and OpenVMS) are treated as case-sensitive if they
use the
* Unix file separator and case-insensitive if they use the Windows file
* separator (see {@link java.io.File#separatorChar}).
* <p>
@@ -222,9 +222,9 @@ public enum IOCase {
}
/**
- * Does the object represent case sensitive comparison.
+ * Does the object represent case-sensitive comparison.
*
- * @return true if case sensitive
+ * @return true if case-sensitive
*/
public boolean isCaseSensitive() {
return sensitive;
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/NameFileFilter.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/NameFileFilter.java
index e86a5753..b4bae797 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/NameFileFilter.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/NameFileFilter.java
@@ -48,7 +48,7 @@ public class NameFileFilter implements FileFilter,
Serializable {
private static final long serialVersionUID = 1L;
- /** Whether the comparison is case sensitive. */
+ /** Whether the comparison is case-sensitive. */
private final IOCase caseSensitivity;
/** The file names to search for. */
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/PrefixFileFilter.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/PrefixFileFilter.java
index 4c17d0b5..6ae83257 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/PrefixFileFilter.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/PrefixFileFilter.java
@@ -48,7 +48,7 @@ public class PrefixFileFilter implements FileFilter,
Serializable {
private static final long serialVersionUID = 1L;
- /** Whether the comparison is case sensitive. */
+ /** Whether the comparison is case-sensitive. */
private final IOCase caseSensitivity;
/** The file name prefixes to search for. */
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/SuffixFileFilter.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/SuffixFileFilter.java
index a1095c42..449de963 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/SuffixFileFilter.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/SuffixFileFilter.java
@@ -49,7 +49,7 @@ public class SuffixFileFilter implements FileFilter,
Serializable {
private static final long serialVersionUID = 1L;
- /** Whether the comparison is case sensitive. */
+ /** Whether the comparison is case-sensitive. */
private final IOCase caseSensitivity;
/** The file name suffixes to search for. */
@@ -72,7 +72,7 @@ public class SuffixFileFilter implements FileFilter,
Serializable {
}
/**
- * Constructs a new Suffix file filter for an array of suffixs specifying
+ * Constructs a new Suffix file filter for an array of suffixes specifying
* case-sensitivity.
*
* @param suffixes the suffixes to allow, must not be null
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/SymbolicLinkFileFilter.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/SymbolicLinkFileFilter.java
index e524148c..925e4215 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/SymbolicLinkFileFilter.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/SymbolicLinkFileFilter.java
@@ -71,7 +71,7 @@ public class SymbolicLinkFileFilter implements FileFilter,
Serializable {
}
/**
- * Checks to see if the file is a symbolic link. Non existing files won't
be accepted.
+ * Checks to see if the file is a symbolic link. Non-existing files won't
be accepted.
*
* @param fileSelectInfo the file to check
*
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/WildcardFileFilter.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/WildcardFileFilter.java
index 65690bb7..b307210c 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/WildcardFileFilter.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/WildcardFileFilter.java
@@ -61,7 +61,7 @@ public class WildcardFileFilter implements FileFilter,
Serializable {
private static final long serialVersionUID = 1L;
- /** Whether the comparison is case sensitive. */
+ /** Whether the comparison is case-sensitive. */
private final IOCase caseSensitivity;
/** The wildcards that will be used to match file names. */
@@ -175,7 +175,7 @@ public class WildcardFileFilter implements FileFilter,
Serializable {
* @param caseSensitivity what case sensitivity rule to use, null means
* case-sensitive
*
- * @return true if the file name matches the wilcard string
+ * @return true if the file name matches the wildcard string
*/
// CHECKSTYLE:OFF TODO xxx Cyclomatic complexity of 19 should be refactored
static boolean wildcardMatch(final String fileName, final String
wildcardMatcher, IOCase caseSensitivity) {
@@ -236,7 +236,7 @@ public class WildcardFileFilter implements FileFilter,
Serializable {
}
} else if (!caseSensitivity.checkRegionMatches(fileName,
textIdx, wcs[wcsIdx])) {
// matching from current position
- // couldnt match token
+ // couldn't match token
break;
}
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java
index a7b04f6c..f2f47552 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java
@@ -518,7 +518,7 @@ public class DefaultFileMonitor implements Runnable,
FileMonitor, AutoCloseable
}
/**
- * Sets the number of files to check per run. a additional delay will be
added if there are more files to check
+ * Sets the number of files to check per run. An additional delay will be
added if there are more files to check.
*
* @param checksPerRun a value less than 1 will disable this feature
*/
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileReplicator.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileReplicator.java
index 01a668e6..4b0bb655 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileReplicator.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileReplicator.java
@@ -202,7 +202,7 @@ public class DefaultFileReplicator extends
AbstractVfsComponent implements FileR
}
/**
- * Removes a instance from the list of copies.
+ * Removes an instance from the list of copies.
*
* @param file The File to remove.
*/
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileSystemConfigBuilder.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileSystemConfigBuilder.java
index edc9051e..c3374ac7 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileSystemConfigBuilder.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileSystemConfigBuilder.java
@@ -58,7 +58,7 @@ public class DefaultFileSystemConfigBuilder extends
FileSystemConfigBuilder {
}
/**
- * Sets the user authenticator to get authentication informations.
+ * Sets the user authenticator to get authentication information.
*
* @param opts The FileSystemOptions.
* @param userAuthenticator The UserAuthenticator.
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileSystemManager.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileSystemManager.java
index b5036d22..f69afd3f 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileSystemManager.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileSystemManager.java
@@ -193,7 +193,7 @@ public class DefaultFileSystemManager implements
FileSystemManager {
}
/**
- * Adds an file name extension mapping.
+ * Adds a file name extension mapping.
*
* @param extension The file name extension.
* @param scheme The scheme to use for files with this extension.
@@ -419,7 +419,7 @@ public class DefaultFileSystemManager implements
FileSystemManager {
// inform the cache ...
getFilesCache().clear(fileSystem);
- // just in case the cache didnt call _closeFileSystem
+ // just in case the cache didn't call _closeFileSystem
_closeFileSystem(fileSystem);
}
@@ -563,7 +563,7 @@ public class DefaultFileSystemManager implements
FileSystemManager {
*
* @param scheme The scheme to locate.
* @return The FileSystemConfigBuilder for the scheme.
- * @throws FileSystemException if the given scheme is not konwn
+ * @throws FileSystemException if the given scheme is not known
*/
@Override
public FileSystemConfigBuilder getFileSystemConfigBuilder(final String
scheme) throws FileSystemException {
@@ -596,7 +596,7 @@ public class DefaultFileSystemManager implements
FileSystemManager {
}
/**
- * @param scheme the scheme for wich we want to get the list af registered
providers.
+ * @param scheme the scheme for which we want to get the list af
registered providers.
*
* @return the registered FileOperationProviders for the specified scheme.
If there were no providers registered for
* the scheme, it returns null.
@@ -616,9 +616,9 @@ public class DefaultFileSystemManager implements
FileSystemManager {
/**
* Get the capabilities for a given scheme.
*
- * @param scheme The scheme to located.
+ * @param scheme The scheme to locate.
* @return A Collection of capabilities.
- * @throws FileSystemException if the given scheme is not konwn
+ * @throws FileSystemException if the given scheme is not known
*/
@Override
public Collection<Capability> getProviderCapabilities(final String scheme)
throws FileSystemException {
@@ -745,7 +745,7 @@ public class DefaultFileSystemManager implements
FileSystemManager {
/**
* Resolves a URI, relative to a base file.
*
- * @param baseFile The base FileOjbect to use to locate the file.
+ * @param baseFile The base FileObject to use to locate the file.
* @param uri The URI of the file to locate.
* @return The FileObject for the located file.
* @throws FileSystemException if the file cannot be located or an error
occurs.
@@ -759,7 +759,7 @@ public class DefaultFileSystemManager implements
FileSystemManager {
* Resolves a URI, relative to a base file with specified FileSystem
configuration.
*
* @param baseFile The base file.
- * @param uri The file name. May be a fully qualified or relative path or
a url.
+ * @param uri The file name. May be a fully qualified or relative path or
an url.
* @param fileSystemOptions Options to pass to the file system.
* @return A FileObject representing the target file.
* @throws FileSystemException if an error occurs accessing the file.
@@ -1076,7 +1076,7 @@ public class DefaultFileSystemManager implements
FileSystemManager {
* Can only be set before the FileSystemManager is initialized.
* </p>
*
- * @param fileObjectDecorator must be inherted from {@link
DecoratedFileObject} a has to provide a constructor with
+ * @param fileObjectDecorator must be inherited from {@link
DecoratedFileObject} a has to provide a constructor with
* a single {@link FileObject} as argument
* @throws FileSystemException if an error occurs setting the decorator.
*/
@@ -1107,7 +1107,7 @@ public class DefaultFileSystemManager implements
FileSystemManager {
* </p>
*
* @param filesCache The FilesCache.
- * @throws FileSystemException if an error occurs setting the cache..
+ * @throws FileSystemException if an error occurs setting the cache.
*/
public void setFilesCache(final FilesCache filesCache) throws
FileSystemException {
if (init) {
@@ -1162,7 +1162,7 @@ public class DefaultFileSystemManager implements
FileSystemManager {
/**
* Initializes a component, if it has not already been initialized.
*
- * @param component The component to setup.
+ * @param component The component to set up.
* @throws FileSystemException if an error occurs.
*/
private void setupComponent(final Object component) throws
FileSystemException {
@@ -1181,7 +1181,7 @@ public class DefaultFileSystemManager implements
FileSystemManager {
* Converts a local file into a {@link FileObject}.
*
* @param file The input File.
- * @return the create FileObject
+ * @return the created FileObject
* @throws FileSystemException if an error occurs creating the file.
*/
@Override
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/StandardFileSystemManager.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/StandardFileSystemManager.java
index e6919edb..73db5cb3 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/StandardFileSystemManager.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/StandardFileSystemManager.java
@@ -138,7 +138,7 @@ public class StandardFileSystemManager extends
DefaultFileSystemManager {
}
/**
- * Configures this manager from an parsed XML configuration file
+ * Configures this manager from a parsed XML configuration file
*
* @param config The configuration Element.
* @throws FileSystemException if an error occurs.
@@ -185,7 +185,7 @@ public class StandardFileSystemManager extends
DefaultFileSystemManager {
* Configures this manager from an XML configuration file.
*
* @param configUri The URI of the configuration.
- * @throws FileSystemException if an error occus.
+ * @throws FileSystemException if an error occurs.
*/
private void configure(final URL configUri) throws FileSystemException {
InputStream configStream = null;
@@ -211,7 +211,7 @@ public class StandardFileSystemManager extends
DefaultFileSystemManager {
}
/**
- * Scans the classpath to find any droped plugin.
+ * Scans the classpath to find any dropped plugin.
* <p>
* The plugin-description has to be in {@code /META-INF/vfs-providers.xml}.
* </p>
@@ -419,7 +419,7 @@ public class StandardFileSystemManager extends
DefaultFileSystemManager {
/**
* Sets the configuration file for this manager.
*
- * @param configUri The URI forthis manager.
+ * @param configUri The URI for this manager.
*/
public void setConfiguration(final URL configUri) {
this.configUri = configUri;
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/SynchronizedFileObject.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/SynchronizedFileObject.java
index 27df9ad3..fdb015bd 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/SynchronizedFileObject.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/SynchronizedFileObject.java
@@ -26,7 +26,7 @@ import org.apache.commons.vfs2.FileType;
import org.apache.commons.vfs2.NameScope;
/**
- * This decorator synchronize all access to the FileObject.
+ * This decorator synchronizes all access to the FileObject.
*/
public class SynchronizedFileObject extends DecoratedFileObject {
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/URLStreamHandlerProxy.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/URLStreamHandlerProxy.java
index c547bc27..acde392c 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/URLStreamHandlerProxy.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/URLStreamHandlerProxy.java
@@ -39,8 +39,8 @@ final class URLStreamHandlerProxy extends URLStreamHandler {
setURL(u, url.getProtocol(), url.getHost(), url.getPort(),
url.getAuthority(), url.getUserInfo(),
url.getFile(), url.getQuery(), url.getRef());
} catch (final MalformedURLException mue) {
- // We retrow this as a simple runtime exception.
- // It is retrown in URL as a MalformedURLException anyway.
+ // We rethrow this as a simple runtime exception.
+ // It is rethrown in URL as a MalformedURLException anyway.
throw new RuntimeException(mue.getMessage());
}
}
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/VFSClassLoader.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/VFSClassLoader.java
index 39faa397..ab7ab875 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/VFSClassLoader.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/VFSClassLoader.java
@@ -56,7 +56,7 @@ public class VFSClassLoader extends SecureClassLoader {
* Constructors a new VFSClassLoader for the given file.
*
* @param file the file to load the classes and resources from.
- * @param manager the FileManager to use when trying create a layered Jar
file system.
+ * @param manager the FileManager to use when trying to create a layered
Jar file system.
* @throws FileSystemException if an error occurs.
*/
public VFSClassLoader(final FileObject file, final FileSystemManager
manager) throws FileSystemException {
@@ -67,7 +67,7 @@ public class VFSClassLoader extends SecureClassLoader {
* Constructors a new VFSClassLoader for the given file.
*
* @param file the file to load the classes and resources from.
- * @param manager the FileManager to use when trying create a layered Jar
file system.
+ * @param manager the FileManager to use when trying to create a layered
Jar file system.
* @param parent the parent class loader for delegation.
* @throws FileSystemException if an error occurs.
*/
@@ -80,7 +80,7 @@ public class VFSClassLoader extends SecureClassLoader {
* Constructors a new VFSClassLoader for the given files. The files will
be searched in the order specified.
*
* @param files the files to load the classes and resources from.
- * @param manager the FileManager to use when trying create a layered Jar
file system.
+ * @param manager the FileManager to use when trying to create a layered
Jar file system.
* @throws FileSystemException if an error occurs.
*/
public VFSClassLoader(final FileObject[] files, final FileSystemManager
manager) throws FileSystemException {
@@ -92,7 +92,7 @@ public class VFSClassLoader extends SecureClassLoader {
* specified.
*
* @param files the FileObjects to load the classes and resources from.
- * @param manager the FileManager to use when trying create a layered Jar
file system.
+ * @param manager the FileManager to use when trying to create a layered
Jar file system.
* @param parent the parent class loader for delegation.
* @throws FileSystemException if an error occurs.
*/
@@ -297,7 +297,7 @@ public class VFSClassLoader extends SecureClassLoader {
}
/**
- * Returns true if the we should seal the package where res resides.
+ * Returns true if we should seal the package where res resides.
*/
private boolean isSealed(final Resource res) throws FileSystemException {
final String sealed = res.getPackageAttribute(Attributes.Name.SEALED);
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/AbstractFileOperation.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/AbstractFileOperation.java
index b7b93e68..1b6649d9 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/AbstractFileOperation.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/AbstractFileOperation.java
@@ -25,7 +25,7 @@ import org.apache.commons.vfs2.FileObject;
public abstract class AbstractFileOperation implements FileOperation {
/**
- * FileObject which the FileOperation is operate on.
+ * FileObject which the FileOperation is operated on.
*/
private final FileObject fileObject;
@@ -37,7 +37,7 @@ public abstract class AbstractFileOperation implements
FileOperation {
}
/**
- * @return an instance of FileObject which this FileOperation is operate
on.
+ * @return an instance of FileObject which this FileOperation is operated
on.
*/
protected FileObject getFileObject() {
return fileObject;
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/AbstractFileOperationProvider.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/AbstractFileOperationProvider.java
index c88b5106..312359b6 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/AbstractFileOperationProvider.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/AbstractFileOperationProvider.java
@@ -78,7 +78,7 @@ public abstract class AbstractFileOperationProvider
implements FileOperationProv
Collection<Class<? extends FileOperation>> resultList, FileObject
file) throws FileSystemException;
/**
- * @param file the FileObject for which we need a operation.
+ * @param file the FileObject for which we need an operation.
* @param operationClass the Class which instance we are needed.
* @return the required operation instance.
* @throws FileSystemException if operation cannot be retrieved.
@@ -93,7 +93,7 @@ public abstract class AbstractFileOperationProvider
implements FileOperationProv
* Get operation instance for specified FileOperation subclass.
*
* @param file the file this operation should act on.
- * @param operationClass the class of an file operation interface to
instantiate.
+ * @param operationClass the class of a file operation interface to
instantiate.
* @return a new file operation
* @throws FileSystemException if operation cannot be instantiated.
*/
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/FileOperationProvider.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/FileOperationProvider.java
index 9c30dd78..19afbf6e 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/FileOperationProvider.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/FileOperationProvider.java
@@ -49,7 +49,7 @@ public interface FileOperationProvider {
/**
* Get implementation for a given FileObject and FileOperation interface.
*
- * @param file the FileObject for which we need a operation.
+ * @param file the FileObject for which we need an operation.
* @param operationClass the Class which instance we are needed.
* @return the required operation instance.
*
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/FileOperations.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/FileOperations.java
index ede79482..6e8c989d 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/FileOperations.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/FileOperations.java
@@ -21,15 +21,15 @@ import org.apache.commons.vfs2.FileSystemException;
/**
* FileOperations interface provides API to work with operations.
*
- * @see FileOperation on what a operation in the context of VFS is.
+ * @see FileOperation on what an operation in the context of VFS is.
*
* @since 0.1
*/
public interface FileOperations {
/**
* @param operationClass the operation Class.
- * @return a operation implementing the given {@code operationClass}
- * @throws FileSystemException if an error occus.
+ * @return an operation implementing the given {@code operationClass}
+ * @throws FileSystemException if an error occurs.
*/
FileOperation getOperation(Class<? extends FileOperation> operationClass)
throws FileSystemException;
@@ -41,8 +41,8 @@ public interface FileOperations {
/**
* @param operationClass the operation Class.
- * @return if a operation {@code operationClass} is available
- * @throws FileSystemException if an error ocurs.
+ * @return if an operation {@code operationClass} is available
+ * @throws FileSystemException if an error occurs.
*/
boolean hasOperation(Class<? extends FileOperation> operationClass) throws
FileSystemException;
}
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsCheckout.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsCheckout.java
index e14cc12c..bd69e315 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsCheckout.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsCheckout.java
@@ -26,7 +26,7 @@ import org.apache.commons.vfs2.operations.FileOperation;
public interface VcsCheckout extends FileOperation {
/**
- * @param export if true, administrative .svn directoies will not be
created on the retrieved tree. The checkout
+ * @param export if true, administrative .svn directories will not be
created on the retrieved tree. The checkout
* operation in this case is equivalent to export function.
*/
void setExport(boolean export);
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
index 561ca43f..856feca9 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
@@ -162,7 +162,7 @@ public abstract class AbstractFileObject<AFS extends
AbstractFileSystem> impleme
// Attach and determine the file type
doAttach();
attached = true;
- // now the type could already be injected by doAttach (e.g
from parent to child)
+ // now the type could already be injected by doAttach (e.g.
from parent to child)
/*
* VFS-210: determine the type when really asked fore if (type
== null) { setFileType(doGetType()); } if
@@ -454,7 +454,7 @@ public abstract class AbstractFileObject<AFS extends
AbstractFileSystem> impleme
*/
private boolean deleteSelf() throws FileSystemException {
synchronized (fileSystem) {
- // Its possible to delete a read-only file if you have
write-execute access to the directory
+ // It's possible to delete a read-only file if you have
write-execute access to the directory
/*
* VFS-210 if (getType() == FileType.IMAGINARY) { // File does not
exist return false; }
@@ -747,8 +747,8 @@ public abstract class AbstractFileObject<AFS extends
AbstractFileSystem> impleme
}
/**
- * Checks if this fileObject is the same file as {@code destFile} just
with a different name. E.g. for case
- * insensitive file systems like windows.
+ * Checks if this fileObject is the same file as {@code destFile} just
with a different name. E.g. for
+ * case-insensitive file systems like Windows.
*
* @param destFile The file to compare to.
* @return true if the FileObjects are the same.
@@ -1476,7 +1476,7 @@ public abstract class AbstractFileObject<AFS extends
AbstractFileSystem> impleme
}
/**
- * This method is meant to add an object where this object holds a strong
reference then. E.g. a archive-file system
+ * This method is meant to add an object where this object holds a strong
reference then. E.g. an archive-file system
* creates a list of all children and they shouldn't get garbage collected
until the container is garbage collected
*
* @param strongRef The Object to add.
@@ -1591,8 +1591,8 @@ public abstract class AbstractFileObject<AFS extends
AbstractFileSystem> impleme
}
/**
- * Checks if this fileObject is the same file as {@code destFile} just
with a different name. E.g. for case
- * insensitive file systems like windows.
+ * Checks if this fileObject is the same file as {@code destFile} just
with a different name. E.g. for
+ * case-insensitive file systems like windows.
*
* @param destFile The file to compare to.
* @return true if the FileObjects are the same.
@@ -1731,7 +1731,7 @@ public abstract class AbstractFileObject<AFS extends
AbstractFileSystem> impleme
}
/**
- * Clled after this file-object closed all its streams.
+ * Called after this file-object closed all its streams.
*/
protected void notifyAllStreamsClosed() {
// noop
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileProvider.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileProvider.java
index 3892ce1c..c7996d2a 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileProvider.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileProvider.java
@@ -149,7 +149,7 @@ public abstract class AbstractFileProvider extends
AbstractVfsContainer implemen
}
/**
- * Gets the FileSystemConfigBuidler.
+ * Gets the FileSystemConfigBuilder.
*
* @return the FileSystemConfigBuilder.
*/
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileSystem.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileSystem.java
index 2521630f..b42ef2f1 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileSystem.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileSystem.java
@@ -210,7 +210,7 @@ public abstract class AbstractFileSystem extends
AbstractVfsComponent implements
* Creates a temporary local copy of a file and its descendants.
*
* @param file the start of the tree.
- * @param selector selection what to do with childs.
+ * @param selector selection what to do with children.
* @return replicated root file.
* @throws Exception any Exception is wrapped as FileSystemException.
*/
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractVfsContainer.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractVfsContainer.java
index 1f484e97..e5d11df5 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractVfsContainer.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractVfsContainer.java
@@ -22,7 +22,7 @@ import java.util.stream.Stream;
import org.apache.commons.vfs2.FileSystemException;
/**
- * A {@link VfsComponent} that contains a set of sub-components.
+ * A {@link VfsComponent} that contains a set of subcomponents.
*/
public abstract class AbstractVfsContainer extends AbstractVfsComponent {
@@ -32,7 +32,7 @@ public abstract class AbstractVfsContainer extends
AbstractVfsComponent {
private final ArrayList<Object> components = new ArrayList<>(); //
@GuardedBy("self")
/**
- * Adds a sub-component to this component.
+ * Adds a subcomponent to this component.
* <p>
* If the sub-component implements {@link VfsComponent}, it is
initialized. All sub-components are closed when this
* component is closed.
@@ -59,7 +59,7 @@ public abstract class AbstractVfsContainer extends
AbstractVfsComponent {
}
/**
- * Closes the sub-components of this component.
+ * Closes the subcomponents of this component.
*/
@Override
public void close() {
@@ -75,7 +75,7 @@ public abstract class AbstractVfsContainer extends
AbstractVfsComponent {
}
/**
- * Removes a sub-component from this component.
+ * Removes a subcomponent from this component.
*
* @param component the component to remove.
*/
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
index dfa09b94..5f7b39ad 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
@@ -611,7 +611,7 @@ public final class DefaultFileContent implements
FileContent {
}
/**
- * Returns an input/output stream to use to read and write the content of
the file in an random manner.
+ * Returns an input/output stream to use to read and write the content of
the file in a random manner.
*
* @param mode The RandomAccessMode.
* @return A RandomAccessContent object to access the file.
@@ -678,7 +678,7 @@ public final class DefaultFileContent implements
FileContent {
}
/**
- * Checks if a input and/or output stream is open.
+ * Checks if an input and/or output stream is open.
* <p>
* This checks only the scope of the current thread.
* </p>
@@ -732,7 +732,7 @@ public final class DefaultFileContent implements
FileContent {
}
/**
- * Used internally to flag situations where the file attributes should be
reretrieved.
+ * Used internally to flag situations where the file attributes should be
retrieved again.
*
* @since 2.0
*/
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileProvider.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileProvider.java
index 0bc4ade5..e32f04ab 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileProvider.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileProvider.java
@@ -58,7 +58,7 @@ public interface FileProvider {
/**
* Gets the file system capabilities.
* <p>
- * These are the same as on the file system, but available before the
first file system was instanciated.
+ * These are the same as on the file system, but available before the
first file system was instantiated.
* </p>
*
* @return a Collection of the file systems Capabilities.
@@ -66,7 +66,7 @@ public interface FileProvider {
Collection<Capability> getCapabilities();
/**
- * Gets the configbuilder useable to collect the needed fileSystemOptions.
+ * Gets the configbuilder usable to collect the needed fileSystemOptions.
*
* @return a FileSystemConfigBuilder for the particular file system.
*/
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/GenericURLFileNameParser.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/GenericURLFileNameParser.java
index 2c434679..0b6f17b3 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/GenericURLFileNameParser.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/GenericURLFileNameParser.java
@@ -21,7 +21,7 @@ import org.apache.commons.vfs2.FileSystemException;
import org.apache.commons.vfs2.FileType;
/**
- * Generic implementation for any URL based file system, without depending a
specific library.
+ * Generic implementation for any URL based file system, without depending on
a specific library.
* <p>
* Parses the URL into user/password/host/port/path/queryString.
* </p>
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/UriParser.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/UriParser.java
index 5eb024b5..484b9334 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/UriParser.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/UriParser.java
@@ -379,7 +379,7 @@ public final class UriParser {
break;
}
// A scheme character (these are not allowed as the first
- // character of the scheme, but can be used as subsequent
+ // character of the scheme), but can be used as subsequent
// characters.
}
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/bzip2/Bzip2FileSystem.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/bzip2/Bzip2FileSystem.java
index df8b7e56..12fbb389 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/bzip2/Bzip2FileSystem.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/bzip2/Bzip2FileSystem.java
@@ -27,7 +27,7 @@ import org.apache.commons.vfs2.provider.AbstractFileName;
import org.apache.commons.vfs2.provider.compressed.CompressedFileFileSystem;
/**
- * Filesytem to handle compressed files using the bzip2 method.
+ * File system to handle compressed files using the bzip2 method.
*/
public class Bzip2FileSystem extends CompressedFileFileSystem {
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/compressed/CompressedFileFileObject.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/compressed/CompressedFileFileObject.java
index 10507f8a..0b161774 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/compressed/CompressedFileFileObject.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/compressed/CompressedFileFileObject.java
@@ -35,7 +35,7 @@ import org.apache.commons.vfs2.provider.AbstractFileObject;
public abstract class CompressedFileFileObject<FS extends
CompressedFileFileSystem> extends AbstractFileObject<FS> {
/**
- * The value returned by {@link #doGetContentSize()} when not overriden by
a subclass.
+ * The value returned by {@link #doGetContentSize()} when not overridden
by a subclass.
*
* @since 2.5.0
*/
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FTPClientWrapper.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FTPClientWrapper.java
index 37cb1adf..2d232461 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FTPClientWrapper.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FTPClientWrapper.java
@@ -61,7 +61,7 @@ public class FTPClientWrapper implements FtpClient {
try {
// [email protected]: 2005-02-14
// it should be better to really "abort" the transfer, but
- // currently I didnt manage to make it work - so lets "abort" the
hard way.
+ // currently I didn't manage to make it work - so lets "abort" the
hard way.
// return getFtpClient().abort();
disconnect();
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpClient.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpClient.java
index 88038eaa..46add9bd 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpClient.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpClient.java
@@ -128,7 +128,7 @@ public interface FtpClient {
FTPFile[] listFiles(String relPath) throws IOException;
/**
- * Creates a new sub-directory on the FTP server in the current directory
(if a relative pathname is given) or where
+ * Creates a new subdirectory on the FTP server in the current directory
(if a relative pathname is given) or where
* specified (if an absolute pathname is given).
*
* @param relPath The pathname of the directory to create.
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileObject.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileObject.java
index b7199aa7..47f51890 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileObject.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileObject.java
@@ -456,7 +456,7 @@ public class FtpFileObject extends
AbstractFileObject<FtpFileSystem> {
/**
* Called by child file objects, to locate their FTP file info.
*
- * @param name the file name in its native form ie. without URI stuff (%nn)
+ * @param name the file name in its native form i.e. without URI stuff
(%nn)
* @param flush recreate children cache
*/
private FTPFile getChildFile(final String name, final boolean flush)
throws IOException {
@@ -498,7 +498,7 @@ public class FtpFileObject extends
AbstractFileObject<FtpFileSystem> {
try {
/*
* Wrap our parent implementation, noting that we're refreshing so
that we don't refresh() ourselves and
- * each of our parents for each children. Note that refresh() will
list children. Meaning, if if this file
+ * each of our parents for each child. Note that refresh() will
list children. Meaning, if this file
* has C children, P parents, there will be (C * P) listings made
with (C * (P + 1)) refreshes, when there
* should really only be 1 listing and C refreshes.
*/
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileSystem.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileSystem.java
index 8baf6943..02d7cfcd 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileSystem.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileSystem.java
@@ -117,7 +117,7 @@ public class FtpFileSystem extends AbstractFileSystem {
/**
* Creates an FTP client to use.
*
- * @return An FTPCleint.
+ * @return An FTPClient.
* @throws FileSystemException if an error occurs.
*/
public FtpClient getClient() throws FileSystemException {
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileSystemConfigBuilder.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileSystemConfigBuilder.java
index fe3c0920..549072d2 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileSystemConfigBuilder.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileSystemConfigBuilder.java
@@ -205,7 +205,7 @@ public class FtpFileSystemConfigBuilder extends
FileSystemConfigBuilder {
}
/**
- * @param options The FlleSystemOptions.
+ * @param options The FileSystemOptions.
* @see #setEntryParserFactory
* @return An FTPFileEntryParserFactory.
*/
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileContentInfoFactory.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileContentInfoFactory.java
index 7b954da0..9e1c8633 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileContentInfoFactory.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileContentInfoFactory.java
@@ -33,7 +33,7 @@ public class HdfsFileContentInfoFactory implements
FileContentInfoFactory {
private static final String ENCODING = "UTF-8";
/**
- * Creates a FileContentInfo for a the given FileContent.
+ * Creates a FileContentInfo for the given FileContent.
*
* @param fileContent Use this FileContent to create a matching
FileContentInfo
* @return a FileContentInfo for the given FileContent with content set to
"text/plain" and encoding set to "UTF-8"
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileProvider.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileProvider.java
index a2305edc..636f5528 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileProvider.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileProvider.java
@@ -227,7 +227,7 @@ public class Http4FileProvider extends
AbstractOriginatingFileProvider {
* @param builder Configuration options builder for http4 provider
* @param rootName The root path
* @param fileSystemOptions The FileSystem options
- * @param authData The {@code UserAuthentiationData} object
+ * @param authData The {@code UserAuthenticationData} object
* @return an {@link HttpClientContext} object
*/
protected HttpClientContext createHttpClientContext(final
Http4FileSystemConfigBuilder builder,
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystemConfigBuilder.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystemConfigBuilder.java
index 6ca3e73f..8a74df25 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystemConfigBuilder.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystemConfigBuilder.java
@@ -389,7 +389,7 @@ public class Http4FileSystemConfigBuilder extends
FileSystemConfigBuilder {
* Determines if the hostname should be verified in SSL context.
*
* @param opts The FileSystemOptions.
- * @return true if if the FileSystemOptions indicate that HTTP Keep-Alive
is respected.
+ * @return true if the FileSystemOptions indicate that HTTP Keep-Alive is
respected.
*/
public boolean isHostnameVerificationEnabled(final FileSystemOptions opts)
{
return getBoolean(opts, HOSTNAME_VERIFICATION_ENABLED,
DEFAULT_HOSTNAME_VERIFICATION_ENABLED);
@@ -399,7 +399,7 @@ public class Http4FileSystemConfigBuilder extends
FileSystemConfigBuilder {
* Determines if the FileSystemOptions indicate that HTTP Keep-Alive is
respected.
*
* @param opts The FileSystemOptions.
- * @return true if if the FileSystemOptions indicate that HTTP Keep-Alive
is respected.
+ * @return true if the FileSystemOptions indicate that HTTP Keep-Alive is
respected.
*/
public boolean isKeepAlive(final FileSystemOptions opts) {
return getBoolean(opts, KEEP_ALIVE, DEFAULT_KEEP_ALIVE);
@@ -489,9 +489,9 @@ public class Http4FileSystemConfigBuilder extends
FileSystemConfigBuilder {
}
/**
- * Set keystore pass phrase for SSL connecdtions.
+ * Set keystore pass phrase for SSL connections.
* @param opts the file system options to modify
- * @param keyStorePass keystore pass phrase for SSL connecdtions
+ * @param keyStorePass keystore pass phrase for SSL connections
*/
public void setKeyStorePass(final FileSystemOptions opts, final String
keyStorePass) {
setParam(opts, KEYSTORE_PASS, keyStorePass);
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileProvider.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileProvider.java
index d6e105a7..a1d9284a 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileProvider.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileProvider.java
@@ -223,7 +223,7 @@ public class Http5FileProvider extends
AbstractOriginatingFileProvider {
* @param builder Configuration options builder for http4 provider
* @param rootName The root path
* @param fileSystemOptions The FileSystem options
- * @param authData The {@code UserAuthentiationData} object
+ * @param authData The {@code UserAuthenticationData} object
* @return an {@link HttpClientContext} object
*/
protected HttpClientContext createHttpClientContext(final
Http5FileSystemConfigBuilder builder,
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileSystemConfigBuilder.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileSystemConfigBuilder.java
index 014e95d7..170ae9a6 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileSystemConfigBuilder.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileSystemConfigBuilder.java
@@ -422,7 +422,7 @@ public class Http5FileSystemConfigBuilder extends
FileSystemConfigBuilder {
* Determines if the hostname should be verified in SSL context.
*
* @param opts The FileSystemOptions.
- * @return true if if the FileSystemOptions indicate that HTTP Keep-Alive
is respected.
+ * @return true if the FileSystemOptions indicate that HTTP Keep-Alive is
respected.
*/
public boolean isHostnameVerificationEnabled(final FileSystemOptions opts)
{
return getBoolean(opts, HOSTNAME_VERIFICATION_ENABLED,
DEFAULT_HOSTNAME_VERIFICATION_ENABLED);
@@ -432,7 +432,7 @@ public class Http5FileSystemConfigBuilder extends
FileSystemConfigBuilder {
* Determines if the FileSystemOptions indicate that HTTP Keep-Alive is
respected.
*
* @param opts The FileSystemOptions.
- * @return true if if the FileSystemOptions indicate that HTTP Keep-Alive
is respected.
+ * @return true if the FileSystemOptions indicate that HTTP Keep-Alive is
respected.
*/
public boolean isKeepAlive(final FileSystemOptions opts) {
return getBoolean(opts, KEEP_ALIVE, DEFAULT_KEEP_ALIVE);
@@ -522,9 +522,9 @@ public class Http5FileSystemConfigBuilder extends
FileSystemConfigBuilder {
}
/**
- * Set keystore pass phrase for SSL connecdtions.
+ * Set keystore pass phrase for SSL connections.
* @param opts the file system options to modify
- * @param keyStorePass keystore pass phrase for SSL connecdtions
+ * @param keyStorePass keystore pass phrase for SSL connections
*/
public void setKeyStorePass(final FileSystemOptions opts, final String
keyStorePass) {
setParam(opts, KEYSTORE_PASS, keyStorePass);
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/jar/JarFileSystem.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/jar/JarFileSystem.java
index 3d29b1db..1b606133 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/jar/JarFileSystem.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/jar/JarFileSystem.java
@@ -85,9 +85,9 @@ public class JarFileSystem extends ZipFileSystem {
}
/**
- * Retrives the attribute with the specified name. The default
implementation simply throws an exception.
+ * Retrieves the attribute with the specified name. The default
implementation simply throws an exception.
*
- * @param attrName The attiribute's name.
+ * @param attrName The attribute's name.
* @return The value of the attribute.
* @throws FileSystemException if an error occurs.
*/
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/GenericFileNameParser.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/GenericFileNameParser.java
index 519eb7a8..f47d1780 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/GenericFileNameParser.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/GenericFileNameParser.java
@@ -38,7 +38,7 @@ public class GenericFileNameParser extends
LocalFileNameParser {
}
/*
- * ... this is why why need this: here the rootFilename can only be "/"
(see above) put this "/" is also in the
+ * ... this is why need this: here the rootFilename can only be "/" (see
above) put this "/" is also in the
* pathname so its of no value for the LocalFileName instance
*/
@Override
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileRandomAccessContent.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileRandomAccessContent.java
index 5fbd2ed4..5b0a1978 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileRandomAccessContent.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileRandomAccessContent.java
@@ -126,7 +126,7 @@ public class RamFileRandomAccessContent implements
RandomAccessContent {
}
/**
- * Build a 8-byte array from a long. No check is performed on the array
length.
+ * Build an 8-byte array from a long. No check is performed on the array
length.
*
* @param n The number to convert.
* @param b The array to fill.
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileNameParser.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileNameParser.java
index 79c9def1..512216b1 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileNameParser.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileNameParser.java
@@ -30,7 +30,7 @@ public class ResourceFileNameParser extends
GenericFileNameParser {
private static final ResourceFileNameParser INSTANCE = new
ResourceFileNameParser();
/**
- * retrieve a instance to this parser.
+ * retrieve an instance to this parser.
*
* @return the parser
*/
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java
index 7093493f..1d1236ff 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java
@@ -212,7 +212,7 @@ public class SftpFileObject extends
AbstractFileObject<SftpFileSystem> {
try {
return new SftpOutputStream(channel, channel.put(relPath, bAppend
? ChannelSftp.APPEND : ChannelSftp.OVERWRITE));
} catch (Exception ex) {
- // when channel.put throw exception eg.
com.jcraft.jsch.SftpException: Permission denied
+ // when channel.put throw exception e.g.
com.jcraft.jsch.SftpException: Permission denied
// returns the channel to the pool
getAbstractFileSystem().putChannel(channel);
throw ex;
@@ -285,7 +285,7 @@ public class SftpFileObject extends
AbstractFileObject<SftpFileSystem> {
final ChannelSftp channel = getAbstractFileSystem().getChannel();
try {
- // try the direct way to list the directory on the server to avoid
too many roundtrips
+ // try the direct way to list the directory on the server to avoid
too many round trips
vector = channel.ls(relPath);
} catch (final SftpException e) {
String workingDirectory = null;
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystemConfigBuilder.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystemConfigBuilder.java
index 984c8478..e1be428c 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystemConfigBuilder.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystemConfigBuilder.java
@@ -91,7 +91,7 @@ public final class SftpFileSystemConfigBuilder extends
FileSystemConfigBuilder {
* </p>
* <p>
* When used, the proxy username ({@linkplain #setProxyUser}) and hostname
({@linkplain #setProxyHost}) <b>must</b>
- * be set. Optionnaly, the command ({@linkplain #setProxyCommand}),
password ({@linkplain #setProxyPassword}) and
+ * be set. Optionally, the command ({@linkplain #setProxyCommand}),
password ({@linkplain #setProxyPassword}) and
* connection options ({@linkplain #setProxyOptions}) can be set.
* </p>
*/
@@ -601,7 +601,7 @@ public final class SftpFileSystemConfigBuilder extends
FileSystemConfigBuilder {
}
/**
- * Configures Key exchange algorithm explicitly e.g
diffie-hellman-group14-sha1,
+ * Configures Key exchange algorithm explicitly e.g.
diffie-hellman-group14-sha1,
* diffie-hellman-group-exchange-sha256,
diffie-hellman-group-exchange-sha1, diffie-hellman-group1-sha1.
*
* @param options The FileSystem options.
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/url/UrlFileObject.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/url/UrlFileObject.java
index 0b92b72d..0d3776da 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/url/UrlFileObject.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/url/UrlFileObject.java
@@ -59,7 +59,7 @@ public class UrlFileObject extends
AbstractFileObject<UrlFileSystem> {
/**
* Attaches this file object to its file resource. This method is called
before any of the doBlah() or onBlah()
- * methods. Sub-classes can use this method to perform lazy initialization.
+ * methods. Subclasses can use this method to perform lazy initialization.
*/
@Override
protected void doAttach() throws Exception {
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/tasks/AbstractSyncTask.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/tasks/AbstractSyncTask.java
index 80825b11..f1c59a1b 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/tasks/AbstractSyncTask.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/tasks/AbstractSyncTask.java
@@ -45,7 +45,7 @@ import org.apache.tools.ant.Project;
* <li>TODO - Deal with case where dest file already exists and is incorrect
type (not file, not a folder).</li>
* <li>TODO - Use visitors.</li>
* <li>TODO - Add default excludes.</li>
- * <li>TOOD - Allow selector, mapper, filters, etc to be specified.</li>
+ * <li>TODO - Allow selector, mapper, filters, etc to be specified.</li>
* <li>TODO - Handle source/dest directories as well.</li>
* <li>TODO - Allow selector to be specified for choosing which dest files to
sync.</li>
* </ul>
@@ -235,7 +235,7 @@ public abstract class AbstractSyncTask extends VfsTask {
handleFile(destFiles, rootFile, destFile);
} else {
// Find matching files
- // If srcDirIsBase is true, select also the sub-directories
+ // If srcDirIsBase is true, select also the subdirectories
final FileObject[] files = rootFile
.findFiles(srcDirIsBase ? Selectors.SELECT_ALL :
Selectors.SELECT_FILES);
@@ -414,7 +414,7 @@ public abstract class AbstractSyncTask extends VfsTask {
}
/**
- * Sets whether the source directory should be consider as the base
directory.
+ * Sets whether the source directory should be considered as the base
directory.
*
* @param srcDirIsBase true if the source directory is the base directory.
*/
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/tasks/DeleteTask.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/tasks/DeleteTask.java
index 5a0f38e8..7e07ea8c 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/tasks/DeleteTask.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/tasks/DeleteTask.java
@@ -25,7 +25,7 @@ import org.apache.tools.ant.BuildException;
/**
* An Ant task that deletes matching files.
* <p>
- * TOOD - Allow selector to be specified.
+ * TODO - Allow selector to be specified.
* </p>
*/
public class DeleteTask extends VfsTask {
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilder.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilder.java
index 2af17ea1..0a9d68fd 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilder.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilder.java
@@ -95,7 +95,7 @@ public class DelegatingFileSystemOptionsBuilder {
* Pass in your fileSystemManager instance.
* </p>
*
- * @param manager the manager to use to get the fileSystemConfigBuilder
assocated to a scheme
+ * @param manager the manager to use to get the fileSystemConfigBuilder
associated to a scheme
*/
public DelegatingFileSystemOptionsBuilder(final FileSystemManager manager)
{
this.manager = manager;
@@ -283,7 +283,7 @@ public class DelegatingFileSystemOptionsBuilder {
* @param name name
* @param className className
* @throws FileSystemException if an error occurs.
- * @throws IllegalAccessException if a class canoot be accessed.
+ * @throws IllegalAccessException if a class cannot be accessed.
* @throws InstantiationException if a class cannot be instantiated.
*/
public void setConfigClass(final FileSystemOptions fso, final String
scheme, final String name,
@@ -302,7 +302,7 @@ public class DelegatingFileSystemOptionsBuilder {
* @param name name
* @param classNames classNames
* @throws FileSystemException if an error occurs.
- * @throws IllegalAccessException if a class canoot be accessed.
+ * @throws IllegalAccessException if a class cannot be accessed.
* @throws InstantiationException if a class cannot be instantiated.
*/
public void setConfigClasses(final FileSystemOptions fso, final String
scheme, final String name,
@@ -348,7 +348,7 @@ public class DelegatingFileSystemOptionsBuilder {
}
/**
- * Sets the values using the informations of the given context.
+ * Sets the values using the information of the given context.
*/
private void setValues(final Context ctx) throws FileSystemException {
// find all setter methods suitable for the given "name"
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/Os.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/Os.java
index 77273d8c..cccd2d4f 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/Os.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/Os.java
@@ -27,7 +27,7 @@ import java.util.Set;
import org.apache.commons.lang3.SystemUtils;
/**
- * Class to help determining the OS.
+ * Class to help to determine the OS.
*
* @deprecated Use Apache Commons Lang's {@link SystemUtils}. Remove in 3.0.
*/
@@ -182,7 +182,7 @@ public final class Os {
* Determines if the OS on which Ant is executing matches the given OS
architecture.
*
* @param arch The architecture to check.
- * @return true if the architecture mataches.
+ * @return true if the architecture matches.
*/
public static boolean isArch(final String arch) {
return isOs((OsFamily) null, null, arch, null);
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/AbstractProviderTestCase.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/AbstractProviderTestCase.java
index 2709c5ba..cda51e1b 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/AbstractProviderTestCase.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/AbstractProviderTestCase.java
@@ -156,7 +156,7 @@ public abstract class AbstractProviderTestCase extends
TestCase {
// ask it to normalize the name
// todo: move this into the FileInfo class to do it generally?
/*
- * webdav-bug?: didnt manage to get the "?" correctly through
webdavlib FileSystemManager fsm =
+ * webdav-bug?: didn't manage to get the "?" correctly through
webdavlib FileSystemManager fsm =
* getReadFolder().getFileSystem().getFileSystemManager(); FileName fn
=
* fsm.resolveName(getReadFolder().getName(), "file%3ftest.txt");
String baseName = fn.getBaseName();
* base.addFile(baseName, FILE1_CONTENT);
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/NamingTests.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/NamingTests.java
index 42cc4c3d..03d3ccbb 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/NamingTests.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/NamingTests.java
@@ -364,7 +364,7 @@ public class NamingTests extends AbstractProviderTestCase {
// §5 Encode \
file = getManager().resolveFile("dir%5cchild");
// 18-6-2005 [email protected]: all file separators normalized to "/"
- // decided to do this to get the same behavior as in §4 on windows
+ // decided to do this to get the same behavior as in §4 on Windows
// platforms
// assertEquals(path + "/dir\\child", file.getName().getPathDecoded());
assertEquals(path + "/dir/child", file.getName().getPathDecoded());
@@ -404,7 +404,7 @@ public class NamingTests extends AbstractProviderTestCase {
// Test that the root path is "/"
assertEquals("root path", "/", rootName.getPath());
- // Test that the root basname is ""
+ // Test that the root base name is ""
assertEquals("root base name", "", rootName.getBaseName());
// Test that the root name has no parent
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderCacheStrategyTests.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderCacheStrategyTests.java
index af81da3e..05584964 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderCacheStrategyTests.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderCacheStrategyTests.java
@@ -23,7 +23,7 @@ import org.apache.commons.vfs2.util.FileObjectUtils;
import org.junit.Test;
/**
- * Test the cache stragey
+ * Test the cache strategy
*/
public class ProviderCacheStrategyTests extends AbstractProviderTestCase {
@@ -61,7 +61,7 @@ public class ProviderCacheStrategyTests extends
AbstractProviderTestCase {
final FileObject scratchFolder = getWriteFolder();
if (FileObjectUtils.isInstanceOf(getBaseFolder(), RamFileObject.class)
|| scratchFolder.getFileSystem() instanceof VirtualFileSystem)
{
- // cant check ram filesystem as every manager holds its own ram
filesystem data
+ // can't check ram filesystem as every manager holds its own ram
filesystem data
return;
}
@@ -95,7 +95,7 @@ public class ProviderCacheStrategyTests extends
AbstractProviderTestCase {
final FileObject scratchFolder = getWriteFolder();
if (FileObjectUtils.isInstanceOf(getBaseFolder(), RamFileObject.class)
|| scratchFolder.getFileSystem() instanceof VirtualFileSystem)
{
- // cant check ram filesystem as every manager holds its own ram
filesystem data
+ // can't check ram filesystem as every manager holds its own ram
filesystem data
return;
}
@@ -125,7 +125,7 @@ public class ProviderCacheStrategyTests extends
AbstractProviderTestCase {
final FileObject scratchFolder = getWriteFolder();
if (FileObjectUtils.isInstanceOf(getBaseFolder(), RamFileObject.class)
|| scratchFolder.getFileSystem() instanceof VirtualFileSystem)
{
- // cant check ram filesystem as every manager holds its own ram
filesystem data
+ // can't check ram filesystem as every manager holds its own ram
filesystem data
return;
}
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderReadTests.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderReadTests.java
index b9e742fe..682e9316 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderReadTests.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderReadTests.java
@@ -37,7 +37,7 @@ public class ProviderReadTests extends
AbstractProviderTestCase {
* Walks a folder structure, asserting it contains exactly the expected
files and folders.
*/
protected void assertSameStructure(final FileObject folder, final FileInfo
expected) throws Exception {
- // Setup the structure
+ // Set up the structure
final List<FileInfo> queueExpected = new ArrayList<>();
queueExpected.add(expected);
@@ -188,7 +188,7 @@ public class ProviderReadTests extends
AbstractProviderTestCase {
@Test
public void testFolderContent() throws Exception {
if (getFileSystem().hasCapability(Capability.DIRECTORY_READ_CONTENT)) {
- // test wont fail
+ // test won't fail
return;
}
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderRenameTests.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderRenameTests.java
index a6e7ad50..d8c466b6 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderRenameTests.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderRenameTests.java
@@ -135,7 +135,7 @@ public class ProviderRenameTests extends
AbstractProviderTestCase {
final FileObject destFolder =
scratchFolder.resolveFile("empty-target-folder");
destFolder.createFolder();
assertTrue("new destination must be folder",
destFolder.getType().hasChildren());
- assertEquals("new destination must be emty", 0,
destFolder.getChildren().length);
+ assertEquals("new destination must be empty", 0,
destFolder.getChildren().length);
moveFile(destFolder, file, content);
}
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderWriteTests.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderWriteTests.java
index 3a98274d..f00e0e1a 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderWriteTests.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderWriteTests.java
@@ -280,7 +280,7 @@ public class ProviderWriteTests extends
AbstractProviderTestCase {
*/
@Test
public void testDelete() throws Exception {
- // Set-up the test structure
+ // Set up the test structure
final FileObject folder = createScratchFolder();
folder.resolveFile("file1.txt").createFile();
folder.resolveFile("file%25.txt").createFile();
@@ -327,7 +327,7 @@ public class ProviderWriteTests extends
AbstractProviderTestCase {
*/
@Test
public void testDeleteAllDescendents() throws Exception {
- // Set-up the test structure
+ // Set up the test structure
final FileObject folder = createScratchFolder();
folder.resolveFile("file1.txt").createFile();
folder.resolveFile("file%25.txt").createFile();
@@ -507,7 +507,7 @@ public class ProviderWriteTests extends
AbstractProviderTestCase {
}
/**
- * Tests that test folder iswritable.
+ * Tests that test folder is writable.
*/
@Test
public void testFolderIsWritable() throws Exception {
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/VerifyingFileSelector.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/VerifyingFileSelector.java
index e26c7efc..9e12224f 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/VerifyingFileSelector.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/VerifyingFileSelector.java
@@ -47,7 +47,7 @@ public class VerifyingFileSelector extends Assertions
implements FileSelector {
/**
* Asserts that the selector has seen all the files.
*
- * @return The files in the order they where visited.
+ * @return The files in the order they were visited.
*/
public List<FileObject> finish() {
assertEquals(0, children.size());
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/cache/AbstractFilesCacheTestsBase.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/cache/AbstractFilesCacheTestsBase.java
index e3a1f91e..93e1fa2e 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/cache/AbstractFilesCacheTestsBase.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/cache/AbstractFilesCacheTestsBase.java
@@ -69,7 +69,7 @@ public abstract class AbstractFilesCacheTestsBase extends
AbstractProviderTestCa
}
/**
- * Will test if the cache is cleared and if it is still useable
afterwards. It will actually ensure the test is
+ * Will test if the cache is cleared and if it is still usable afterwards.
It will actually ensure the test is
* hitting the cache.
*/
@Test
@@ -80,7 +80,7 @@ public abstract class AbstractFilesCacheTestsBase extends
AbstractProviderTestCa
// clean the cache for this file system
cache.clear(fo1.getFileSystem());
- // make sure a empty cache clean does not fail
+ // make sure an empty cache clean does not fail
cache.clear(fo1.getFileSystem());
final FileObject fo2 = getWriteFolder().resolveFile("dir1");
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/cache/LRUFilesCacheTests.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/cache/LRUFilesCacheTests.java
index 8dc452a4..6009e159 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/cache/LRUFilesCacheTests.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/cache/LRUFilesCacheTests.java
@@ -43,34 +43,34 @@ public class LRUFilesCacheTests extends
AbstractFilesCacheTestsBase {
final FileObject scratchFolder = getWriteFolder();
Assertions.assertNotNull(scratchFolder, "scratchFolder");
- // releaseable
+ // releasable
final FileObject dir1 = scratchFolder.resolveFile("dir1");
// avoid cache removal
final FileObject dir2 = scratchFolder.resolveFile("dir2");
dir2.getContent();
- // releaseable
+ // releasable
@SuppressWarnings("unused")
final FileObject dir3 = scratchFolder.resolveFile("dir3");
- // releaseable
+ // releasable
@SuppressWarnings("unused")
final FileObject dir4 = scratchFolder.resolveFile("dir4");
- // releaseable
+ // releasable
@SuppressWarnings("unused")
final FileObject dir5 = scratchFolder.resolveFile("dir5");
- // releaseable
+ // releasable
@SuppressWarnings("unused")
final FileObject dir6 = scratchFolder.resolveFile("dir6");
- // releaseable
+ // releasable
@SuppressWarnings("unused")
final FileObject dir7 = scratchFolder.resolveFile("dir7");
- // releaseable
+ // releasable
@SuppressWarnings("unused")
final FileObject dir8 = scratchFolder.resolveFile("dir8");
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/BaseFilterTest.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/BaseFilterTest.java
index 5925015f..470c9d43 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/BaseFilterTest.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/BaseFilterTest.java
@@ -158,11 +158,11 @@ public abstract class BaseFilterTest {
}
/**
- * Returns a sub directory of the temporary directory.
+ * Returns a subdirectory of the temporary directory.
*
- * @param name Name of the sub directory.
+ * @param name Name of the subdirectory.
*
- * @return Sub directory of java.io.tmpdir.
+ * @return Subdirectory of java.io.tmpdir.
*/
protected static File getTestDir(final String name) {
return new File(getTempDir(), name);
@@ -203,15 +203,15 @@ public abstract class BaseFilterTest {
}
/**
- * Creates a ZIP file and adds all files in a directory and all it's sub
- * directories to the archive. Only entries are added that comply to the
file
+ * Creates a ZIP file and adds all files in a directory and all it's
+ * subdirectories to the archive. Only entries are added that comply to
the file
* filter.
*
* @param srcDir Directory to add - Cannot be {@code null} and must be a
* valid directory.
* @param filter Filter or {@code null} for all files/directories.
* @param destPath Path to use for the ZIP archive - May be {@code null} or
- * an empyt string.
+ * an empty string.
* @param destFile Target ZIP file - Cannot be {@code null}.
*
* @throws IOException Error writing to the output stream.
@@ -245,7 +245,7 @@ public abstract class BaseFilterTest {
* valid directory.
* @param filter Filter or {@code null} for all files.
* @param destPath Path to use for the ZIP archive - May be {@code null} or
- * an empyt string.
+ * an empty string.
* @param out Destination stream - Cannot be {@code null}.
*
* @throws IOException Error writing to the output stream.
@@ -265,13 +265,13 @@ public abstract class BaseFilterTest {
}
/**
- * Creates a ZIP file and adds all files in a directory and all it's sub
- * directories to the archive.
+ * Creates a ZIP file and adds all files in a directory and all it's
+ * subdirectories to the archive.
*
* @param srcDir Directory to add - Cannot be {@code null} and must be a
* valid directory.
* @param destPath Path to use for the ZIP archive - May be {@code null} or
- * an empyt string.
+ * an empty string.
* @param destFile Target ZIP file - Cannot be {@code null}.
*
* @throws IOException Error writing to the output stream.
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/DefaultFileMonitorTest.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/DefaultFileMonitorTest.java
index 448824c6..012dc5fe 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/DefaultFileMonitorTest.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/DefaultFileMonitorTest.java
@@ -283,7 +283,7 @@ public class DefaultFileMonitorTest {
monitor.addFile(fileObject);
monitor.start();
// Need a long delay to insure the new timestamp doesn't
truncate to be the same as
- // the current timestammp. Java only guarantees the timestamp
will be to 1 second.
+ // the current timestamp. Java only guarantees the timestamp
will be to 1 second.
Thread.sleep(DELAY_MILLIS * 10);
final long valueMillis = System.currentTimeMillis();
final boolean rcMillis = testFile.setLastModified(valueMillis);
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/operations/BasicOperationsTest.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/operations/BasicOperationsTest.java
index 8ed32165..da60ab1f 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/operations/BasicOperationsTest.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/operations/BasicOperationsTest.java
@@ -75,7 +75,7 @@ public class BasicOperationsTest {
* Base class for different Test Providers. This is also a compile test to
ensure interface stability.
*/
static class MyFileOprationProviderBase implements FileOperationProvider {
- int ops; // bit array to record invocations (poor mans mock)
+ int ops; // bit array to record invocations (poor man's mock)
@Override
public void collectOperations(final Collection<Class<? extends
FileOperation>> operationsList,
@@ -142,7 +142,7 @@ public class BasicOperationsTest {
}
/**
- * Ensure you can use FileOperationProvider which is not a VfsComponnt.
+ * Ensure you can use FileOperationProvider which is not a VfsComponent.
*
* @throws FileSystemException for runtime problems
*/
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftp/FtpProviderMdtmOffTestCase.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftp/FtpProviderMdtmOffTestCase.java
index 31d6b670..b3f95ece 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftp/FtpProviderMdtmOffTestCase.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftp/FtpProviderMdtmOffTestCase.java
@@ -31,7 +31,7 @@ public class FtpProviderMdtmOffTestCase extends
FtpProviderTestCase {
}
/**
- * Explicitly remove MDTM feature from underlying Apache MINA FTP server
so we can fallback to LIST timestamp
+ * Explicitly remove MDTM feature from underlying Apache MINA FTP server
so we can fall back to LIST timestamp
* (existing default behavior).
*/
@Override
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTest.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTest.java
index 27c0cc60..7a02222c 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTest.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTest.java
@@ -117,7 +117,7 @@ public class HdfsFileProviderTest {
conf = new Configuration();
conf.set(FileSystem.FS_DEFAULT_NAME_KEY, HDFS_URI);
conf.set("hadoop.security.token.service.use_ip", "true");
- conf.setLong(DFSConfigKeys.DFS_BLOCK_SIZE_KEY, 1024 * 1024); // 1M
blocksize
+ conf.setLong(DFSConfigKeys.DFS_BLOCK_SIZE_KEY, 1024 * 1024); // 1M
block size
setUmask(conf);
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTestCase.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTestCase.java
index d1316eee..34a3fbe4 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTestCase.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTestCase.java
@@ -91,7 +91,7 @@ public class HdfsFileProviderTestCase extends
AbstractProviderTestConfig {
conf = new Configuration();
conf.set(FileSystem.FS_DEFAULT_NAME_KEY, HDFS_URI);
conf.set("hadoop.security.token.service.use_ip", "true");
- conf.setLong(DFSConfigKeys.DFS_BLOCK_SIZE_KEY, 1024 * 1024); // 1M
blocksize
+ conf.setLong(DFSConfigKeys.DFS_BLOCK_SIZE_KEY, 1024 * 1024); // 1M
block size
HdfsFileProviderTest.setUmask(conf);
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ram/CustomRamProviderTest.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ram/CustomRamProviderTest.java
index cc728267..fbfb17e5 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ram/CustomRamProviderTest.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ram/CustomRamProviderTest.java
@@ -97,7 +97,7 @@ public class CustomRamProviderTest {
/** Create directory structure for {@link #testSpecialName()} and {@link
#testSchemePrefix()} */
private FileObject prepareSpecialFile(final String dirname, final String
testFileName) throws FileSystemException
{
- // set up a folder containing an filename with special characters:
+ // set up a folder containing a filename with special characters:
final FileObject dir = manager.resolveFile("ram:" + dirname);
dir.createFolder();
// construct the absolute name to make sure the relative name is not
miss-interpreted
@@ -171,7 +171,7 @@ public class CustomRamProviderTest {
@Test
public void testReadEmptyFileByteByByte() throws FileSystemException,
IOException {
final InputStream input = this.createEmptyFile();
- assertEquals("Empty file didnt return EOF -1", -1, input.read());
+ assertEquals("Empty file didn't return EOF -1", -1, input.read());
}
@Test
@@ -179,7 +179,7 @@ public class CustomRamProviderTest {
final InputStream input = this.createEmptyFile();
final byte[] buffer = new byte[100];
- assertEquals("Empty file didnt return when filling buffer", -1,
input.read(buffer));
+ assertEquals("Empty file didn't return when filling buffer", -1,
input.read(buffer));
assertArrayEquals("Buffer was written too", new byte[100], buffer);
}
@@ -187,7 +187,7 @@ public class CustomRamProviderTest {
public void testReadEmptyFileIntoBufferWithOffsetAndLength() throws
FileSystemException, IOException {
final InputStream input = this.createEmptyFile();
final byte[] buffer = new byte[100];
- assertEquals("Empty file didnt return when filling buffer", -1,
input.read(buffer, 10, 90));
+ assertEquals("Empty file didn't return when filling buffer", -1,
input.read(buffer, 10, 90));
assertArrayEquals("Buffer was written too", new byte[100], buffer);
}
@@ -196,7 +196,7 @@ public class CustomRamProviderTest {
final InputStream input = this.createNonEmptyFile();
assertEquals("Read 1st byte failed", 1, input.read());
- assertEquals("Rread 2st byte failed", 2, input.read());
+ assertEquals("Read 2st byte failed", 2, input.read());
assertEquals("Read 3st byte failed", 3, input.read());
assertEquals("File should be empty", -1, input.read());
}
@@ -344,7 +344,7 @@ public class CustomRamProviderTest {
{
// we test with this file name
// does not work with '!'
- final String testDir = "/spacialtest/";
+ final String testDir = "/specialtest/";
final String testFileName = "test:+-_ \"()<>%#.txt";
final String expectedName = testDir + testFileName;
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/sftp/SftpPermissionExceptionTestCase.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/sftp/SftpPermissionExceptionTestCase.java
index fcbd5169..51a7dc12 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/sftp/SftpPermissionExceptionTestCase.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/sftp/SftpPermissionExceptionTestCase.java
@@ -76,7 +76,7 @@ public class SftpPermissionExceptionTestCase extends
AbstractSftpProviderTestCas
}
/**
- * Test SftpFileObject.doGetOutputStream return the channel to pool, when
there is a exception in channel.put .
+ * Test SftpFileObject.doGetOutputStream return the channel to pool, when
there is an exception in channel.put .
*/
@Test
public void testGetOutputStreamException() throws Exception {
@@ -101,7 +101,7 @@ public class SftpPermissionExceptionTestCase extends
AbstractSftpProviderTestCas
fileObjectCopy.copyFrom(localFileObject,
Selectors.SELECT_SELF);
Assertions.fail("permission fail");
} catch (Exception ex) {
- // ignore no perminison
+ // ignore no permission
}
}
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilderTest.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilderTest.java
index 0ab7d8c5..3a83df8e 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilderTest.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilderTest.java
@@ -48,7 +48,7 @@ public class DelegatingFileSystemOptionsBuilderTest {
@BeforeEach
public void setUp() throws Exception {
- // get a full blown, fully functional manager
+ // get a full-blown, fully functional manager
fsm = new StandardFileSystemManager();
fsm.init();
}
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java
index 3f12609c..d4ae9f7c 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java
@@ -125,7 +125,7 @@ public class NHttpFileServer {
ContentType contentType;
final String filename =
file.getName().toLowerCase(Locale.ROOT);
-// The following causes a failure on Linux and Macos in HttpProviderTestCase:
+// The following causes a failure on Linux and macOS in HttpProviderTestCase:
// org.apache.commons.vfs2.FileSystemException: GET method failed for
"http://localhost:37637/read-tests/file1.txt" range "10" with HTTP status 200.
// at
org.apache.commons.vfs2.provider.http.HttpRandomAccessContent.getDataInputStream(HttpRandomAccessContent.java:80)
// if (filename.endsWith(".txt")) {