You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/12/19 02:33:47 UTC
[commons-vfs] branch master updated (b6fb9a3 -> a62149b)
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git.
from b6fb9a3 Share FileContentInfo in FileContentInfoFilenameFactory.
new 2da0353 Javadoc: Use {@code} instead of <code></code>.
new a62149b Remove unnecessary array creation for varargs.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../org/apache/commons/vfs2/example/Shell.java | 2 +-
.../example/filter/PrefixFileFilterExample.java | 2 +-
.../vfs2/provider/webdav/WebdavFileProvider.java | 8 ++---
.../vfs2/provider/mime/MimeFileProvider.java | 4 +--
.../commons/vfs2/provider/smb/SmbFileProvider.java | 10 +++---
.../apache/commons/vfs2/filter/AgeFileFilter.java | 6 ++--
.../apache/commons/vfs2/filter/AndFileFilter.java | 2 +-
.../commons/vfs2/filter/CanExecuteFileFilter.java | 2 +-
.../commons/vfs2/filter/CanReadFileFilter.java | 2 +-
.../commons/vfs2/filter/CanWriteFileFilter.java | 4 +--
.../commons/vfs2/filter/DirectoryFileFilter.java | 2 +-
.../commons/vfs2/filter/EmptyFileFilter.java | 2 +-
.../apache/commons/vfs2/filter/FileFileFilter.java | 2 +-
.../commons/vfs2/filter/HiddenFileFilter.java | 2 +-
.../org/apache/commons/vfs2/filter/IOCase.java | 2 +-
.../apache/commons/vfs2/filter/NameFileFilter.java | 2 +-
.../apache/commons/vfs2/filter/OrFileFilter.java | 2 +-
.../commons/vfs2/filter/PrefixFileFilter.java | 2 +-
.../commons/vfs2/filter/SuffixFileFilter.java | 2 +-
.../vfs2/filter/SymbolicLinkFileFilter.java | 2 +-
.../vfs2/provider/bzip2/Bzip2FileProvider.java | 5 ++-
.../commons/vfs2/provider/ftp/FtpFileProvider.java | 7 ++--
.../provider/ftp/FtpFileSystemConfigBuilder.java | 4 +--
.../vfs2/provider/gzip/GzipFileProvider.java | 5 ++-
.../vfs2/provider/hdfs/HdfsFileProvider.java | 6 ++--
.../vfs2/provider/http/HttpFileProvider.java | 5 ++-
.../http4/Http4FileContentInfoFactory.java | 2 +-
.../vfs2/provider/http4/Http4FileNameParser.java | 2 +-
.../vfs2/provider/http4/Http4FileObject.java | 26 +++++++-------
.../vfs2/provider/http4/Http4FileProvider.java | 4 +--
.../vfs2/provider/http4/Http4FileSystem.java | 10 +++---
.../http4/Http4FileSystemConfigBuilder.java | 2 +-
.../provider/http4/Http4RandomAccessContent.java | 2 +-
.../MonitoredHttpResponseContentInputStream.java | 2 +-
.../vfs2/provider/http4s/Http4sFileNameParser.java | 2 +-
.../vfs2/provider/http4s/Http4sFileProvider.java | 2 +-
.../http5/Http5FileContentInfoFactory.java | 2 +-
.../vfs2/provider/http5/Http5FileNameParser.java | 2 +-
.../vfs2/provider/http5/Http5FileObject.java | 26 +++++++-------
.../vfs2/provider/http5/Http5FileProvider.java | 4 +--
.../vfs2/provider/http5/Http5FileSystem.java | 10 +++---
.../http5/Http5FileSystemConfigBuilder.java | 10 +++---
.../provider/http5/Http5RandomAccessContent.java | 2 +-
.../MonitoredHttpResponseContentInputStream.java | 2 +-
.../vfs2/provider/http5s/Http5sFileNameParser.java | 2 +-
.../vfs2/provider/http5s/Http5sFileProvider.java | 2 +-
.../commons/vfs2/provider/jar/JarFileProvider.java | 4 +--
.../provider/local/DefaultLocalFileProvider.java | 6 ++--
.../commons/vfs2/provider/ram/RamFileProvider.java | 6 ++--
.../vfs2/provider/res/ResourceFileProvider.java | 2 +-
.../vfs2/provider/sftp/SftpFileProvider.java | 9 +++--
.../provider/sftp/SftpFileSystemConfigBuilder.java | 8 ++---
.../vfs2/provider/sftp/SftpStreamProxy.java | 4 +--
.../commons/vfs2/provider/tar/TarFileProvider.java | 4 +--
.../commons/vfs2/provider/url/UrlFileProvider.java | 2 +-
.../commons/vfs2/provider/zip/ZipFileProvider.java | 5 ++-
.../org/apache/commons/vfs2/util/URIBitSets.java | 2 +-
.../org/apache/commons/vfs2/util/URIUtils.java | 10 +++---
.../apache/commons/vfs2/filter/BaseFilterTest.java | 40 +++++++++++-----------
.../provider/sftp/test/SftpProviderTestCase.java | 6 ++--
60 files changed, 156 insertions(+), 162 deletions(-)
[commons-vfs] 01/02: Javadoc: Use {@code} instead of .
Posted by gg...@apache.org.
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
commit 2da0353e05c98fb2ff565ad1374ad35f2294b50b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Dec 18 16:48:59 2019 -0500
Javadoc: Use {@code} instead of <code></code>.
---
.../org/apache/commons/vfs2/example/Shell.java | 2 +-
.../example/filter/PrefixFileFilterExample.java | 2 +-
.../apache/commons/vfs2/filter/AgeFileFilter.java | 6 ++--
.../apache/commons/vfs2/filter/AndFileFilter.java | 2 +-
.../commons/vfs2/filter/CanExecuteFileFilter.java | 2 +-
.../commons/vfs2/filter/CanReadFileFilter.java | 2 +-
.../commons/vfs2/filter/CanWriteFileFilter.java | 4 +--
.../commons/vfs2/filter/DirectoryFileFilter.java | 2 +-
.../commons/vfs2/filter/EmptyFileFilter.java | 2 +-
.../apache/commons/vfs2/filter/FileFileFilter.java | 2 +-
.../commons/vfs2/filter/HiddenFileFilter.java | 2 +-
.../org/apache/commons/vfs2/filter/IOCase.java | 2 +-
.../apache/commons/vfs2/filter/NameFileFilter.java | 2 +-
.../apache/commons/vfs2/filter/OrFileFilter.java | 2 +-
.../commons/vfs2/filter/PrefixFileFilter.java | 2 +-
.../commons/vfs2/filter/SuffixFileFilter.java | 2 +-
.../vfs2/filter/SymbolicLinkFileFilter.java | 2 +-
.../provider/ftp/FtpFileSystemConfigBuilder.java | 4 +--
.../http4/Http4FileContentInfoFactory.java | 2 +-
.../vfs2/provider/http4/Http4FileNameParser.java | 2 +-
.../vfs2/provider/http4/Http4FileObject.java | 26 +++++++-------
.../vfs2/provider/http4/Http4FileProvider.java | 4 +--
.../vfs2/provider/http4/Http4FileSystem.java | 10 +++---
.../http4/Http4FileSystemConfigBuilder.java | 2 +-
.../provider/http4/Http4RandomAccessContent.java | 2 +-
.../MonitoredHttpResponseContentInputStream.java | 2 +-
.../vfs2/provider/http4s/Http4sFileNameParser.java | 2 +-
.../vfs2/provider/http4s/Http4sFileProvider.java | 2 +-
.../http5/Http5FileContentInfoFactory.java | 2 +-
.../vfs2/provider/http5/Http5FileNameParser.java | 2 +-
.../vfs2/provider/http5/Http5FileObject.java | 26 +++++++-------
.../vfs2/provider/http5/Http5FileProvider.java | 4 +--
.../vfs2/provider/http5/Http5FileSystem.java | 10 +++---
.../http5/Http5FileSystemConfigBuilder.java | 10 +++---
.../provider/http5/Http5RandomAccessContent.java | 2 +-
.../MonitoredHttpResponseContentInputStream.java | 2 +-
.../vfs2/provider/http5s/Http5sFileNameParser.java | 2 +-
.../vfs2/provider/http5s/Http5sFileProvider.java | 2 +-
.../provider/sftp/SftpFileSystemConfigBuilder.java | 8 ++---
.../vfs2/provider/sftp/SftpStreamProxy.java | 4 +--
.../org/apache/commons/vfs2/util/URIBitSets.java | 2 +-
.../org/apache/commons/vfs2/util/URIUtils.java | 10 +++---
.../apache/commons/vfs2/filter/BaseFilterTest.java | 40 +++++++++++-----------
.../provider/sftp/test/SftpProviderTestCase.java | 6 ++--
44 files changed, 115 insertions(+), 115 deletions(-)
diff --git a/commons-vfs2-examples/src/main/java/org/apache/commons/vfs2/example/Shell.java b/commons-vfs2-examples/src/main/java/org/apache/commons/vfs2/example/Shell.java
index f73f2ee..015be71 100644
--- a/commons-vfs2-examples/src/main/java/org/apache/commons/vfs2/example/Shell.java
+++ b/commons-vfs2-examples/src/main/java/org/apache/commons/vfs2/example/Shell.java
@@ -254,7 +254,7 @@ public final class Shell {
}
/**
- * Does a 'cd' command. If the taget directory does not exist, a message is printed to <code>System.err</code>.
+ * Does a 'cd' command. If the taget directory does not exist, a message is printed to {@code System.err}.
*/
private void cd(final String[] cmd) throws Exception {
final String path;
diff --git a/commons-vfs2-examples/src/main/java/org/apache/commons/vfs2/example/filter/PrefixFileFilterExample.java b/commons-vfs2-examples/src/main/java/org/apache/commons/vfs2/example/filter/PrefixFileFilterExample.java
index cc3f9ad..6152960 100644
--- a/commons-vfs2-examples/src/main/java/org/apache/commons/vfs2/example/filter/PrefixFileFilterExample.java
+++ b/commons-vfs2-examples/src/main/java/org/apache/commons/vfs2/example/filter/PrefixFileFilterExample.java
@@ -33,7 +33,7 @@ public class PrefixFileFilterExample {
public static void main(final String[] args) throws Exception {
// Example, to print all files and directories in the current directory
- // whose name starts with a <code>.</code>
+ // whose name starts with a {@code .}
final FileSystemManager fsManager = VFS.getManager();
final FileObject dir = fsManager.toFileObject(new File("."));
final FileObject[] files = dir.findFiles(new FileFilterSelector(new PrefixFileFilter(".")));
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 368b5ca..761f59f 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
@@ -60,14 +60,14 @@ public class AgeFileFilter implements FileFilter, Serializable {
private final long cutoff;
/**
- * Tests if the specified <code>File</code> is newer than the specified time
+ * Tests if the specified {@code File} is newer than the specified time
* reference.
*
- * @param fileObject the <code>File</code> of which the modification date must
+ * @param fileObject the {@code File} of which the modification date must
* be compared, must not be {@code null}
* @param timeMillis the time reference measured in milliseconds since the epoch
* (00:00:00 GMT, January 1, 1970)
- * @return true if the <code>File</code> exists and has been modified after the
+ * @return true if the {@code File} exists and has been modified after the
* given time reference.
* @throws FileSystemException Thrown for file system errors.
* @throws IllegalArgumentException if the file is {@code null}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/AndFileFilter.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/AndFileFilter.java
index 556e0b5..ed8a616 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/AndFileFilter.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/AndFileFilter.java
@@ -68,7 +68,7 @@ public class AndFileFilter implements FileFilter, ConditionalFileFilter, Seriali
}
/**
- * Constructs a new instance of <code>AndFileFilter</code> with the specified
+ * Constructs a new instance of {@code AndFileFilter} with the specified
* list of filters.
*
* @param fileFilters a List of FileFilter instances, copied, null ignored
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/CanExecuteFileFilter.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/CanExecuteFileFilter.java
index 101fd35..435677e 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/CanExecuteFileFilter.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/CanExecuteFileFilter.java
@@ -23,7 +23,7 @@ import org.apache.commons.vfs2.FileSelectInfo;
import org.apache.commons.vfs2.FileSystemException;
/**
- * This filter accepts <code>File</code>s that can be executed.
+ * This filter accepts {@code File}s that can be executed.
* <p>
* Example, showing how to print out a list of the current directory's
* <i>executable</i> files:
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/CanReadFileFilter.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/CanReadFileFilter.java
index c7f2c01..8b0de97 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/CanReadFileFilter.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/CanReadFileFilter.java
@@ -23,7 +23,7 @@ import org.apache.commons.vfs2.FileSelectInfo;
import org.apache.commons.vfs2.FileSystemException;
/**
- * This filter accepts <code>File</code>s that can be read.
+ * This filter accepts {@code File}s that can be read.
* <p>
* Example, showing how to print out a list of the current directory's
* <i>readable</i> files:
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/CanWriteFileFilter.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/CanWriteFileFilter.java
index 0d5df78..f639e33 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/CanWriteFileFilter.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/CanWriteFileFilter.java
@@ -26,7 +26,7 @@ import org.apache.commons.vfs2.FileSystem;
import org.apache.commons.vfs2.FileSystemException;
/**
- * This filter accepts <code>File</code>s that can be written to.
+ * This filter accepts {@code File}s that can be written to.
* <p>
* Example, showing how to print out a list of the current directory's
* <i>writable</i> files:
@@ -57,7 +57,7 @@ import org.apache.commons.vfs2.FileSystemException;
*
* <p>
* <b>N.B.</b> For read-only files, use
- * <code>CanReadFileFilter.READ_ONLY</code>.
+ * {@code CanReadFileFilter.READ_ONLY}.
* </p>
*
* @author This code was originally ported from Apache Commons IO File Filter
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/DirectoryFileFilter.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/DirectoryFileFilter.java
index 34b3acb..143df8f 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/DirectoryFileFilter.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/DirectoryFileFilter.java
@@ -24,7 +24,7 @@ import org.apache.commons.vfs2.FileSystemException;
import org.apache.commons.vfs2.FileType;
/**
- * This filter accepts <code>File</code>s that are directories.
+ * This filter accepts {@code File}s that are directories.
* <p>
* For example, here is how to print out a list of the current directory's sub
* directories:
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/EmptyFileFilter.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/EmptyFileFilter.java
index df6db58..d0b9a09 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/EmptyFileFilter.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/EmptyFileFilter.java
@@ -28,7 +28,7 @@ import org.apache.commons.vfs2.FileType;
/**
* This filter accepts files or directories that are empty.
* <p>
- * If the <code>File</code> is a directory it checks that it contains no files.
+ * If the {@code File} is a directory it checks that it contains no files.
* </p>
* <p>
* Example, showing how to print out a list of the current directory's empty files/directories:
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/FileFileFilter.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/FileFileFilter.java
index 294b23c..e29129d 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/FileFileFilter.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/FileFileFilter.java
@@ -24,7 +24,7 @@ import org.apache.commons.vfs2.FileSystemException;
import org.apache.commons.vfs2.FileType;
/**
- * This filter accepts <code>File</code>s that are files (not directories).
+ * This filter accepts {@code File}s that are files (not directories).
* <p>
* For example, here is how to print out a list of the real files within the
* current directory:
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 f8ff229..27d2ee2 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
@@ -23,7 +23,7 @@ import org.apache.commons.vfs2.FileSelectInfo;
import org.apache.commons.vfs2.FileSystemException;
/**
- * This filter accepts <code>File</code>s that are hidden.
+ * This filter accepts {@code File}s that are hidden.
* <p>
* Example, showing how to print out a list of the current directory's
* <i>hidden</i> files:
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 e0f9314..34bd5b6 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
@@ -30,7 +30,7 @@ import java.io.File;
* the enumeration to perform comparisons.
* </p>
* <p>
- * Wherever possible, you should use the <code>check</code> methods in this
+ * Wherever possible, you should use the {@code check} methods in this
* class to compare file names.
* </p>
*
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 29d6a4a..3b9324f 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
@@ -28,7 +28,7 @@ import org.apache.commons.vfs2.FileSelectInfo;
* Filters file names for a certain name.
* <p>
* For example, to print all files and directories in the current directory
- * whose name is <code>Test</code>:
+ * whose name is {@code Test}:
* </p>
*
* <pre>
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/OrFileFilter.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/OrFileFilter.java
index 6c8b438..e1ec063 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/OrFileFilter.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/filter/OrFileFilter.java
@@ -68,7 +68,7 @@ public class OrFileFilter implements FileFilter, ConditionalFileFilter, Serializ
}
/**
- * Constructs a new instance of <code>OrFileFilter</code> with the specified
+ * Constructs a new instance of {@code OrFileFilter} with the specified
* filters.
*
* @param fileFilters the file filters for this filter, copied, null ignored
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 8cedf85..9053ec2 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
@@ -28,7 +28,7 @@ import org.apache.commons.vfs2.FileSelectInfo;
* Filters file names for a certain prefix.
* <p>
* For example, to print all files and directories in the current directory
- * whose name starts with a <code>.</code>:
+ * whose name starts with a {@code .}:
* </p>
*
* <pre>
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 fbb2eb6..8b2a82f 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
@@ -28,7 +28,7 @@ import org.apache.commons.vfs2.FileSelectInfo;
* Filters files based on the suffix (what the file name ends with). This is used
* in retrieving all the files of a particular type.
* <p>
- * For example, to retrieve and print all <code>*.java</code> files in the
+ * For example, to retrieve and print all {@code *.java} files in the
* current directory:
* </p>
*
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 4ca078c..bdafd6e 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
@@ -23,7 +23,7 @@ import org.apache.commons.vfs2.FileSelectInfo;
import org.apache.commons.vfs2.FileSystemException;
/**
- * This filter accepts <code>File</code>s that are symbolic links.
+ * This filter accepts {@code File}s that are symbolic links.
* <p>
* Example, showing how to print out a list of the current directory's
* <i>symbolic link</i> files:
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 af0f818..d60a349 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
@@ -250,11 +250,11 @@ public class FtpFileSystemConfigBuilder extends FileSystemConfigBuilder {
/**
* Returns {@link Boolean#TRUE} if VFS should treat the user directory as the root directory. Defaults to
- * <code>Boolean.TRUE</code> if the method {@link #setUserDirIsRoot(FileSystemOptions, boolean)} has not been
+ * {@code Boolean.TRUE} if the method {@link #setUserDirIsRoot(FileSystemOptions, boolean)} has not been
* invoked.
*
* @param opts The FileSystemOptions.
- * @return <code>Boolean.TRUE</code> if VFS treats the user directory as the root directory.
+ * @return {@code Boolean.TRUE} if VFS treats the user directory as the root directory.
* @see #setUserDirIsRoot
*/
public Boolean getUserDirIsRoot(final FileSystemOptions opts) {
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileContentInfoFactory.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileContentInfoFactory.java
index b75d074..8a28dd4 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileContentInfoFactory.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileContentInfoFactory.java
@@ -30,7 +30,7 @@ import org.apache.http.entity.ContentType;
import org.apache.http.protocol.HTTP;
/**
- * Creates <code>FileContentInfoFactory</code> instances for http4 provider.
+ * Creates {@code FileContentInfoFactory} instances for http4 provider.
*
* @since 2.3
*/
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileNameParser.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileNameParser.java
index 1eb578d..1eca6f3 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileNameParser.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileNameParser.java
@@ -20,7 +20,7 @@ import org.apache.commons.vfs2.provider.FileNameParser;
import org.apache.commons.vfs2.provider.GenericURLFileNameParser;
/**
- * <code>FileNameParser</code> implementation for http4 provider, setting default port to 80.
+ * {@code FileNameParser} implementation for http4 provider, setting default port to 80.
*
* @since 2.3
*/
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileObject.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileObject.java
index 6bd7e71..4e6049f 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileObject.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileObject.java
@@ -58,18 +58,18 @@ public class Http4FileObject<FS extends Http4FileSystem> extends AbstractFileObj
private final String urlCharset;
/**
- * Internal URI mapped to this <code>FileObject</code>.
- * For example, the internal URI of <code>http4://example.com/a.txt</code> is <code>http://example.com/a.txt</code>.
+ * Internal URI mapped to this {@code FileObject}.
+ * For example, the internal URI of {@code http4://example.com/a.txt} is {@code http://example.com/a.txt}.
*/
private final URI internalURI;
/**
- * The last executed HEAD <code>HttpResponse</code> object.
+ * The last executed HEAD {@code HttpResponse} object.
*/
private HttpResponse lastHeadResponse;
/**
- * Construct <code>Http4FileObject</code>.
+ * Construct {@code Http4FileObject}.
*
* @param name file name
* @param fileSystem file system
@@ -82,11 +82,11 @@ public class Http4FileObject<FS extends Http4FileSystem> extends AbstractFileObj
}
/**
- * Construct <code>Http4FileObject</code>.
+ * Construct {@code Http4FileObject}.
*
* @param name file name
* @param fileSystem file system
- * @param builder <code>Http4FileSystemConfigBuilder</code> object
+ * @param builder {@code Http4FileSystemConfigBuilder} object
* @throws FileSystemException if any error occurs
* @throws URISyntaxException if given file name cannot be converted to a URI due to URI syntax error
*/
@@ -193,9 +193,9 @@ public class Http4FileObject<FS extends Http4FileSystem> extends AbstractFileObj
}
/**
- * Return the internal <code>URI</code> object mapped to this file object.
+ * Return the internal {@code URI} object mapped to this file object.
*
- * @return the internal <code>URI</code> object mapped to this file object
+ * @return the internal {@code URI} object mapped to this file object
* @throws FileSystemException if any error occurs
*/
protected URI getInternalURI() throws FileSystemException {
@@ -203,9 +203,9 @@ public class Http4FileObject<FS extends Http4FileSystem> extends AbstractFileObj
}
/**
- * Return the last executed HEAD <code>HttpResponse</code> object.
+ * Return the last executed HEAD {@code HttpResponse} object.
*
- * @return the last executed HEAD <code>HttpResponse</code> object
+ * @return the last executed HEAD {@code HttpResponse} object
* @throws IOException if IO error occurs
*/
HttpResponse getLastHeadResponse() throws IOException {
@@ -217,10 +217,10 @@ public class Http4FileObject<FS extends Http4FileSystem> extends AbstractFileObj
}
/**
- * Execute the request using the given {@code httpRequest} and return a <code>HttpResponse</code> from the execution.
+ * Execute the request using the given {@code httpRequest} and return a {@code HttpResponse} from the execution.
*
- * @param httpRequest <code>HttpUriRequest</code> object
- * @return <code>HttpResponse</code> from the execution
+ * @param httpRequest {@code HttpUriRequest} object
+ * @return {@code HttpResponse} from the execution
* @throws IOException if IO error occurs
*
* @since 2.5.0
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 67ad6f3..ddb501a 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
@@ -77,7 +77,7 @@ import org.apache.http.protocol.HTTP;
import org.apache.http.ssl.SSLContextBuilder;
/**
- * <code>FileProvider</code> implementation using HttpComponents HttpClient library.
+ * {@code FileProvider} implementation using HttpComponents HttpClient library.
*
* @since 2.3
*/
@@ -241,7 +241,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</code> object
+ * @param authData The {@code UserAuthentiationData} object
* @return an {@link HttpClientContext} object
* @throws FileSystemException if an error occurs
*/
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystem.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystem.java
index 9274b7e..b3e1c3e 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystem.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystem.java
@@ -43,17 +43,17 @@ public class Http4FileSystem extends AbstractFileSystem {
private final URI internalBaseURI;
/**
- * Internal <code>HttpClient</code> instance of this file system.
+ * Internal {@code HttpClient} instance of this file system.
*/
private final HttpClient httpClient;
/**
- * Internal <code>HttpClientContext</code> instance of this file system.
+ * Internal {@code HttpClientContext} instance of this file system.
*/
private final HttpClientContext httpClientContext;
/**
- * Construct <code>Http4FileSystem</code>.
+ * Construct {@code Http4FileSystem}.
*
* @param rootName root base name
* @param fileSystemOptions file system options
@@ -119,9 +119,9 @@ public class Http4FileSystem extends AbstractFileSystem {
}
/**
- * Return the internal base <code>URI</code> instance.
+ * Return the internal base {@code URI} instance.
*
- * @return the internal base <code>URI</code> instance
+ * @return the internal base {@code URI} instance
*/
protected URI getInternalBaseURI() {
return internalBaseURI;
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 d2da590..4a26f27 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
@@ -160,7 +160,7 @@ public class Http4FileSystemConfigBuilder extends FileSystemConfigBuilder {
private static final boolean DEFAULT_HOSTNAME_VERIFICATION_ENABLED = true;
/**
- * Construct an <code>Http4FileSystemConfigBuilder</code>.
+ * Construct an {@code Http4FileSystemConfigBuilder}.
*
* @param prefix String for properties of this file system.
*/
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4RandomAccessContent.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4RandomAccessContent.java
index 181511c..28a62fe 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4RandomAccessContent.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4RandomAccessContent.java
@@ -29,7 +29,7 @@ import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
/**
- * RandomAccess content using <code>Http4FileObject</code>.
+ * RandomAccess content using {@code Http4FileObject}.
*/
class Http4RandomAccessContent<FS extends Http4FileSystem> extends AbstractRandomAccessStreamContent {
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/MonitoredHttpResponseContentInputStream.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/MonitoredHttpResponseContentInputStream.java
index ddefdb3..2f8b621 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/MonitoredHttpResponseContentInputStream.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/MonitoredHttpResponseContentInputStream.java
@@ -23,7 +23,7 @@ import org.apache.http.HttpResponse;
import org.apache.http.client.methods.CloseableHttpResponse;
/**
- * An InputStream that cleans up the <code>org.apache.http.client.methods.CloseableHttpResponse</code> on close.
+ * An InputStream that cleans up the {@code org.apache.http.client.methods.CloseableHttpResponse} on close.
*/
class MonitoredHttpResponseContentInputStream extends MonitorInputStream {
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4s/Http4sFileNameParser.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4s/Http4sFileNameParser.java
index 50284e8..48de477 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4s/Http4sFileNameParser.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4s/Http4sFileNameParser.java
@@ -20,7 +20,7 @@ import org.apache.commons.vfs2.provider.FileNameParser;
import org.apache.commons.vfs2.provider.GenericURLFileNameParser;
/**
- * <code>FileNameParser</code> implementation for http4s provider, setting default port to 443.
+ * {@code FileNameParser} implementation for http4s provider, setting default port to 443.
*
* @since 2.3
*/
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4s/Http4sFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4s/Http4sFileProvider.java
index 4f2f40d..071c645 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4s/Http4sFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4s/Http4sFileProvider.java
@@ -26,7 +26,7 @@ import org.apache.commons.vfs2.provider.http4.Http4FileProvider;
public class Http4sFileProvider extends Http4FileProvider {
/**
- * Construct a <code>Http4sFileProvider</code>.
+ * Construct a {@code Http4sFileProvider}.
*/
public Http4sFileProvider() {
super();
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileContentInfoFactory.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileContentInfoFactory.java
index 9a5aa6c..2acc3cf 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileContentInfoFactory.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileContentInfoFactory.java
@@ -30,7 +30,7 @@ import org.apache.hc.core5.http.HttpHeaders;
import org.apache.hc.core5.http.HttpResponse;
/**
- * Creates <code>FileContentInfoFactory</code> instances for http5 provider.
+ * Creates {@code FileContentInfoFactory} instances for http5 provider.
*
* @since 2.5.0
*/
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileNameParser.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileNameParser.java
index 0ba13f1..4eeb8ba 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileNameParser.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileNameParser.java
@@ -20,7 +20,7 @@ import org.apache.commons.vfs2.provider.FileNameParser;
import org.apache.commons.vfs2.provider.GenericURLFileNameParser;
/**
- * <code>FileNameParser</code> implementation for http5 provider, setting default port to 80.
+ * {@code FileNameParser} implementation for http5 provider, setting default port to 80.
*
* @since 2.5.0
*/
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileObject.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileObject.java
index a43a661..a48891d 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileObject.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileObject.java
@@ -59,18 +59,18 @@ public class Http5FileObject<FS extends Http5FileSystem> extends AbstractFileObj
private final String urlCharset;
/**
- * Internal URI mapped to this <code>FileObject</code>.
- * For example, the internal URI of <code>http4://example.com/a.txt</code> is <code>http://example.com/a.txt</code>.
+ * Internal URI mapped to this {@code FileObject}.
+ * For example, the internal URI of {@code http4://example.com/a.txt} is {@code http://example.com/a.txt}.
*/
private final URI internalURI;
/**
- * The last executed HEAD <code>HttpResponse</code> object.
+ * The last executed HEAD {@code HttpResponse} object.
*/
private HttpResponse lastHeadResponse;
/**
- * Construct <code>Http4FileObject</code>.
+ * Construct {@code Http4FileObject}.
*
* @param name file name
* @param fileSystem file system
@@ -83,11 +83,11 @@ public class Http5FileObject<FS extends Http5FileSystem> extends AbstractFileObj
}
/**
- * Construct <code>Http4FileObject</code>.
+ * Construct {@code Http4FileObject}.
*
* @param name file name
* @param fileSystem file system
- * @param builder <code>Http4FileSystemConfigBuilder</code> object
+ * @param builder {@code Http4FileSystemConfigBuilder} object
* @throws FileSystemException if any error occurs
* @throws URISyntaxException if given file name cannot be converted to a URI due to URI syntax error
*/
@@ -194,9 +194,9 @@ public class Http5FileObject<FS extends Http5FileSystem> extends AbstractFileObj
}
/**
- * Return the internal <code>URI</code> object mapped to this file object.
+ * Return the internal {@code URI} object mapped to this file object.
*
- * @return the internal <code>URI</code> object mapped to this file object
+ * @return the internal {@code URI} object mapped to this file object
* @throws FileSystemException if any error occurs
*/
protected URI getInternalURI() throws FileSystemException {
@@ -204,9 +204,9 @@ public class Http5FileObject<FS extends Http5FileSystem> extends AbstractFileObj
}
/**
- * Return the last executed HEAD <code>HttpResponse</code> object.
+ * Return the last executed HEAD {@code HttpResponse} object.
*
- * @return the last executed HEAD <code>HttpResponse</code> object
+ * @return the last executed HEAD {@code HttpResponse} object
* @throws IOException if IO error occurs
*/
HttpResponse getLastHeadResponse() throws IOException {
@@ -218,10 +218,10 @@ public class Http5FileObject<FS extends Http5FileSystem> extends AbstractFileObj
}
/**
- * Execute the request using the given {@code httpRequest} and return a <code>ClassicHttpResponse</code> from the execution.
+ * Execute the request using the given {@code httpRequest} and return a {@code ClassicHttpResponse} from the execution.
*
- * @param httpRequest <code>HttpUriRequest</code> object
- * @return <code>ClassicHttpResponse</code> from the execution
+ * @param httpRequest {@code HttpUriRequest} object
+ * @return {@code ClassicHttpResponse} from the execution
* @throws IOException if IO error occurs
*/
protected ClassicHttpResponse executeHttpUriRequest(final HttpUriRequest httpRequest) throws IOException {
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 ea7922e..51ae198 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
@@ -82,7 +82,7 @@ import org.apache.hc.core5.http.ssl.TLS;
import org.apache.hc.core5.ssl.SSLContextBuilder;
/**
- * <code>FileProvider</code> implementation using HttpComponents HttpClient v5 library.
+ * {@code FileProvider} implementation using HttpComponents HttpClient v5 library.
*
* @since 2.5.0
*/
@@ -250,7 +250,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</code> object
+ * @param authData The {@code UserAuthentiationData} object
* @return an {@link HttpClientContext} object
* @throws FileSystemException if an error occurs
*/
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileSystem.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileSystem.java
index a7e2be1..5c5aabd 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileSystem.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileSystem.java
@@ -43,17 +43,17 @@ public class Http5FileSystem extends AbstractFileSystem {
private final URI internalBaseURI;
/**
- * Internal <code>HttpClient</code> instance of this file system.
+ * Internal {@code HttpClient} instance of this file system.
*/
private final HttpClient httpClient;
/**
- * Internal <code>HttpClientContext</code> instance of this file system.
+ * Internal {@code HttpClientContext} instance of this file system.
*/
private final HttpClientContext httpClientContext;
/**
- * Construct <code>Http4FileSystem</code>.
+ * Construct {@code Http4FileSystem}.
*
* @param rootName root base name
* @param fileSystemOptions file system options
@@ -119,9 +119,9 @@ public class Http5FileSystem extends AbstractFileSystem {
}
/**
- * Return the internal base <code>URI</code> instance.
+ * Return the internal base {@code URI} instance.
*
- * @return the internal base <code>URI</code> instance
+ * @return the internal base {@code URI} instance
*/
protected URI getInternalBaseURI() {
return internalBaseURI;
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 cde0ee7..4a0341c 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
@@ -123,7 +123,7 @@ public class Http5FileSystemConfigBuilder extends FileSystemConfigBuilder {
* Defines the enabled TLS versions for the underlying HttpClient.
* <p>
* This parameter expects a value of type {@link String} as a comma separated string, each token of
- * which is the name of <code>org.apache.hc.core5.http.ssl.TLS</code> enum. e.g, "V_1_2, V_1_3".
+ * which is the name of {@code org.apache.hc.core5.http.ssl.TLS} enum. e.g, "V_1_2, V_1_3".
* </p>
*/
private static final String KEY_TLS_VERSIONS = "tlsVersions";
@@ -170,12 +170,12 @@ public class Http5FileSystemConfigBuilder extends FileSystemConfigBuilder {
/**
* The default value for {@link #KEY_TLS_VERSIONS} configuration as a comma separated string, each token of
- * which is the name of <code>org.apache.hc.core5.http.ssl.TLS</code> enum. e.g, "V_1_2, V_1_3".
+ * which is the name of {@code org.apache.hc.core5.http.ssl.TLS} enum. e.g, "V_1_2, V_1_3".
*/
private static final String DEFAULT_TLS_VERSIONS = "V_1_2";
/**
- * Construct an <code>Http4FileSystemConfigBuilder</code>.
+ * Construct an {@code Http4FileSystemConfigBuilder}.
*
* @param prefix String for properties of this file system.
*/
@@ -529,7 +529,7 @@ public class Http5FileSystemConfigBuilder extends FileSystemConfigBuilder {
/**
* Sets the enabled TLS versions as a comma separated string, each token of which is the name of
- * <code>org.apache.hc.core5.http.ssl.TLS</code> enum. e.g, "V_1_2, V_1_3".
+ * {@code org.apache.hc.core5.http.ssl.TLS} enum. e.g, "V_1_2, V_1_3".
*
* @param opts the file system options to modify
* @param tlsVersions enabled TLS versions
@@ -540,7 +540,7 @@ public class Http5FileSystemConfigBuilder extends FileSystemConfigBuilder {
/**
* Gets the enabled TLS versions as a comma separated string, each token of which is the name of
- * <code>org.apache.hc.core5.http.ssl.TLS</code> enum. e.g, "V_1_2, V_1_3".
+ * {@code org.apache.hc.core5.http.ssl.TLS} enum. e.g, "V_1_2, V_1_3".
*
* @param opts the file system options to modify
* @return enabled TLS versions
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5RandomAccessContent.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5RandomAccessContent.java
index 2751836..d72bb75 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5RandomAccessContent.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5RandomAccessContent.java
@@ -29,7 +29,7 @@ import org.apache.hc.client5.http.classic.methods.HttpGet;
import org.apache.hc.core5.http.ClassicHttpResponse;
/**
- * RandomAccess content using <code>Http5FileObject</code>.
+ * RandomAccess content using {@code Http5FileObject}.
*/
class Http5RandomAccessContent<FS extends Http5FileSystem> extends AbstractRandomAccessStreamContent {
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/MonitoredHttpResponseContentInputStream.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/MonitoredHttpResponseContentInputStream.java
index e1dda19..98fa632 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/MonitoredHttpResponseContentInputStream.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/MonitoredHttpResponseContentInputStream.java
@@ -22,7 +22,7 @@ import org.apache.commons.vfs2.util.MonitorInputStream;
import org.apache.hc.core5.http.ClassicHttpResponse;
/**
- * An InputStream that cleans up the <code>org.apache.hc.core5.http.ClassicHttpResponse</code> on close.
+ * An InputStream that cleans up the {@code org.apache.hc.core5.http.ClassicHttpResponse} on close.
*/
class MonitoredHttpResponseContentInputStream extends MonitorInputStream {
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5s/Http5sFileNameParser.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5s/Http5sFileNameParser.java
index ed95d4e..13a5f44 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5s/Http5sFileNameParser.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5s/Http5sFileNameParser.java
@@ -20,7 +20,7 @@ import org.apache.commons.vfs2.provider.FileNameParser;
import org.apache.commons.vfs2.provider.GenericURLFileNameParser;
/**
- * <code>FileNameParser</code> implementation for http5s provider, setting default port to 443.
+ * {@code FileNameParser} implementation for http5s provider, setting default port to 443.
*
* @since 2.5.0
*/
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5s/Http5sFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5s/Http5sFileProvider.java
index f8a246d..967cad2 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5s/Http5sFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5s/Http5sFileProvider.java
@@ -26,7 +26,7 @@ import org.apache.commons.vfs2.provider.http5.Http5FileProvider;
public class Http5sFileProvider extends Http5FileProvider {
/**
- * Construct a <code>Http4sFileProvider</code>.
+ * Construct a {@code Http4sFileProvider}.
*/
public Http5sFileProvider() {
super();
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 f41c397..98362e1 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
@@ -258,11 +258,11 @@ public final class SftpFileSystemConfigBuilder extends FileSystemConfigBuilder {
}
/**
- * Returns {@link Boolean#TRUE} if VFS should load the OpenSSH config. Defaults to <code>Boolean.FALSE</code> if the
+ * Returns {@link Boolean#TRUE} if VFS should load the OpenSSH config. Defaults to {@code Boolean.FALSE} if the
* method {@link #setLoadOpenSSHConfig(FileSystemOptions, boolean)} has not been invoked.
*
* @param opts The FileSystemOptions.
- * @return <code>Boolean.TRUE</code> if VFS should load the OpenSSH config.
+ * @return {@code Boolean.TRUE} if VFS should load the OpenSSH config.
* @see #setLoadOpenSSHConfig
*/
public boolean isLoadOpenSSHConfig(final FileSystemOptions opts) {
@@ -417,11 +417,11 @@ public final class SftpFileSystemConfigBuilder extends FileSystemConfigBuilder {
/**
* Returns {@link Boolean#TRUE} if VFS should treat the user directory as the root directory. Defaults to
- * <code>Boolean.TRUE</code> if the method {@link #setUserDirIsRoot(FileSystemOptions, boolean)} has not been
+ * {@code Boolean.TRUE} if the method {@link #setUserDirIsRoot(FileSystemOptions, boolean)} has not been
* invoked.
*
* @param opts The FileSystemOptions.
- * @return <code>Boolean.TRUE</code> if VFS treats the user directory as the root directory.
+ * @return {@code Boolean.TRUE} if VFS treats the user directory as the root directory.
* @see #setUserDirIsRoot
*/
public Boolean getUserDirIsRoot(final FileSystemOptions opts) {
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpStreamProxy.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpStreamProxy.java
index 38392b1..e2a0d44 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpStreamProxy.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpStreamProxy.java
@@ -66,8 +66,8 @@ public class SftpStreamProxy implements Proxy {
* Here are two examples (that can be easily used by using the static members of this class):
* </p>
* <ul>
- * <li><code>nc -q 0 %s %d</code> to use the netcat command ({@linkplain #NETCAT_COMMAND})</li>
- * <li><code>/bin/bash -c 'exec 3<>/dev/tcp/%s/%d; cat <&3 & cat >&3; kill $!</code> will use bash built-in TCP
+ * <li>{@code nc -q 0 %s %d} to use the netcat command ({@linkplain #NETCAT_COMMAND})</li>
+ * <li>{@code /bin/bash -c 'exec 3<>/dev/tcp/%s/%d; cat <&3 & cat >&3; kill $!} will use bash built-in TCP
* stream, which can be useful when there is no netcat available. ({@linkplain #BASH_TCP_COMMAND})</li>
* </ul>
*/
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIBitSets.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIBitSets.java
index edb1069..7887a03 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIBitSets.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIBitSets.java
@@ -23,7 +23,7 @@ import org.apache.commons.vfs2.provider.GenericURLFileName;
/**
* Internal URI encoding {@link BitSet} definitions.
* <P>
- * This was forked from the {@link BitSet}s in <code>org.apache.commons.httpclient.URI</code>,
+ * This was forked from the {@link BitSet}s in {@code org.apache.commons.httpclient.URI},
* in order to not be dependent on HttpClient v3 API, when generating and handling {@link GenericURLFileName}s,
* but it should work with any different HTTP backend provider implementations.
* </p>
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIUtils.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIUtils.java
index 8c26aee..3a80a29 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIUtils.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIUtils.java
@@ -28,7 +28,7 @@ import org.apache.commons.vfs2.provider.GenericURLFileName;
/**
* The URI escape and character encoding and decoding utility.
* <p>
- * This was forked from some needed methods such as <code>#encodePath(...)</code> in <code>org.apache.commons.httpclient.util.URIUtil</code>,
+ * This was forked from some needed methods such as {@code #encodePath(...)} in {@code org.apache.commons.httpclient.util.URIUtil},
* in order to not be dependent on HttpClient v3 API, when generating and handling {@link GenericURLFileName}s,
* but it should work with any different HTTP backend provider implementations.
* </p>
@@ -84,8 +84,8 @@ public class URIUtils {
/**
* Internal URL codec utilities.
* <p>
- * This was forked from some needed methods such as <code>#encodeUrl(...)</code> and <code>#hexDigit(int)</code>
- * in <code>org.apache.commons.codec.net.URLCodec</code>, as commons-codec library cannot be pulled in transitively
+ * This was forked from some needed methods such as {@code #encodeUrl(...)} and {@code #hexDigit(int)}
+ * in {@code org.apache.commons.codec.net.URLCodec}, as commons-codec library cannot be pulled in transitively
* via Http Client v3 library any more.
* </p>
*/
@@ -163,8 +163,8 @@ public class URIUtils {
/**
* Internal character encoding utilities.
* <p>
- * This was forked from some needed methods such as <code>#getBytes(...)</code> and <code>#getAsciiString(...)</code>
- * in <code>org.apache.commons.httpclient.util.EncodingUtil</code>,
+ * This was forked from some needed methods such as {@code #getBytes(...)} and {@code #getAsciiString(...)}
+ * in {@code org.apache.commons.httpclient.util.EncodingUtil},
* in order to not be dependent on HttpClient v3 API, when generating and handling {@link GenericURLFileName}s,
* but it should work with any different HTTP backend provider implementations.
* </p>
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 12807f9..b64111e 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
@@ -171,9 +171,9 @@ public abstract class BaseFilterTest {
/**
* Adds a file to a ZIP output stream.
*
- * @param srcFile File to add - Cannot be <code>null</code>.
- * @param destPath Path to use for the file - May be <code>null</code> or empty.
- * @param out Destination stream - Cannot be <code>null</code>.
+ * @param srcFile File to add - Cannot be {@code null}.
+ * @param destPath Path to use for the file - May be {@code null} or empty.
+ * @param out Destination stream - Cannot be {@code null}.
*
* @throws IOException Error writing to the output stream.
*/
@@ -196,12 +196,12 @@ public abstract class BaseFilterTest {
/**
* Add a directory to a ZIP output stream.
*
- * @param srcDir Directory to add - Cannot be <code>null</code> and must be a
+ * @param srcDir Directory to add - Cannot be {@code null} and must be a
* valid directory.
- * @param filter Filter or <code>null</code> for all files.
- * @param destPath Path to use for the ZIP archive - May be <code>null</code> or
+ * @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.
- * @param out Destination stream - Cannot be <code>null</code>.
+ * @param out Destination stream - Cannot be {@code null}.
*
* @throws IOException Error writing to the output stream.
*/
@@ -224,12 +224,12 @@ public abstract class BaseFilterTest {
* directories to the archive. Only entries are added that comply to the file
* filter.
*
- * @param srcDir Directory to add - Cannot be <code>null</code> and must be a
+ * @param srcDir Directory to add - Cannot be {@code null} and must be a
* valid directory.
- * @param filter Filter or <code>null</code> for all files/directories.
- * @param destPath Path to use for the ZIP archive - May be <code>null</code> or
+ * @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.
- * @param destFile Target ZIP file - Cannot be <code>null</code>.
+ * @param destFile Target ZIP file - Cannot be {@code null}.
*
* @throws IOException Error writing to the output stream.
*/
@@ -259,11 +259,11 @@ public abstract class BaseFilterTest {
* Creates a ZIP file and adds all files in a directory and all it's sub
* directories to the archive.
*
- * @param srcDir Directory to add - Cannot be <code>null</code> and must be a
+ * @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</code> or
+ * @param destPath Path to use for the ZIP archive - May be {@code null} or
* an empyt string.
- * @param destFile Target ZIP file - Cannot be <code>null</code>.
+ * @param destFile Target ZIP file - Cannot be {@code null}.
*
* @throws IOException Error writing to the output stream.
*/
@@ -274,12 +274,12 @@ public abstract class BaseFilterTest {
}
/**
- * Concatenate a path and a file name taking <code>null</code> and empty string
+ * Concatenate a path and a file name taking {@code null} and empty string
* values into account.
*
- * @param path Path - Can be <code>null</code> or an empty string.
- * @param fileName Filename - Cannot be <code>null</code>.
- * @param separator Separator for directories - Can be <code>null</code> or an
+ * @param path Path - Can be {@code null} or an empty string.
+ * @param fileName Filename - Cannot be {@code null}.
+ * @param separator Separator for directories - Can be {@code null} or an
* empty string.
*
* @return Path and file name divided by the separator.
@@ -317,9 +317,9 @@ public abstract class BaseFilterTest {
/**
* List all files for a directory.
*
- * @param srcDir Directory to list the files for - Cannot be <code>null</code>
+ * @param srcDir Directory to list the files for - Cannot be {@code null}
* and must be a valid directory.
- * @param filter Filter or <code>null</code> for all files.
+ * @param filter Filter or {@code null} for all files.
*
* @return List of child entries of the directory.
*/
diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/sftp/test/SftpProviderTestCase.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/sftp/test/SftpProviderTestCase.java
index fceb168..35aec44 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/sftp/test/SftpProviderTestCase.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/sftp/test/SftpProviderTestCase.java
@@ -406,9 +406,9 @@ public class SftpProviderTestCase extends AbstractProviderTestConfig {
/**
* The command factory for the SSH server: Handles these commands
* <p>
- * <li><code>id -u</code> (permissions test)</li>
- * <li><code>id -G</code> (permission tests)</li>
- * <li><code>nc -q 0 localhost port</code> (Stream proxy tests)</li>
+ * <li>{@code id -u} (permissions test)</li>
+ * <li>{@code id -G} (permission tests)</li>
+ * <li>{@code nc -q 0 localhost port} (Stream proxy tests)</li>
* </p>
*/
private static class TestCommandFactory extends ScpCommandFactory {
[commons-vfs] 02/02: Remove unnecessary array creation for varargs.
Posted by gg...@apache.org.
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
commit a62149bf5bd4f304abab90b90a46d41d07cd32ec
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Dec 18 21:33:42 2019 -0500
Remove unnecessary array creation for varargs.
---
.../commons/vfs2/provider/webdav/WebdavFileProvider.java | 8 ++++----
.../apache/commons/vfs2/provider/mime/MimeFileProvider.java | 4 ++--
.../org/apache/commons/vfs2/provider/smb/SmbFileProvider.java | 10 +++++-----
.../apache/commons/vfs2/provider/bzip2/Bzip2FileProvider.java | 5 ++---
.../org/apache/commons/vfs2/provider/ftp/FtpFileProvider.java | 7 +++----
.../apache/commons/vfs2/provider/gzip/GzipFileProvider.java | 5 ++---
.../apache/commons/vfs2/provider/hdfs/HdfsFileProvider.java | 6 +++---
.../apache/commons/vfs2/provider/http/HttpFileProvider.java | 5 ++---
.../org/apache/commons/vfs2/provider/jar/JarFileProvider.java | 4 ++--
.../commons/vfs2/provider/local/DefaultLocalFileProvider.java | 6 +++---
.../org/apache/commons/vfs2/provider/ram/RamFileProvider.java | 6 +++---
.../apache/commons/vfs2/provider/res/ResourceFileProvider.java | 2 +-
.../apache/commons/vfs2/provider/sftp/SftpFileProvider.java | 9 ++++-----
.../org/apache/commons/vfs2/provider/tar/TarFileProvider.java | 4 ++--
.../org/apache/commons/vfs2/provider/url/UrlFileProvider.java | 2 +-
.../org/apache/commons/vfs2/provider/zip/ZipFileProvider.java | 5 ++---
16 files changed, 41 insertions(+), 47 deletions(-)
diff --git a/commons-vfs2-jackrabbit1/src/main/java/org/apache/commons/vfs2/provider/webdav/WebdavFileProvider.java b/commons-vfs2-jackrabbit1/src/main/java/org/apache/commons/vfs2/provider/webdav/WebdavFileProvider.java
index bfc40b8..4708b95 100644
--- a/commons-vfs2-jackrabbit1/src/main/java/org/apache/commons/vfs2/provider/webdav/WebdavFileProvider.java
+++ b/commons-vfs2-jackrabbit1/src/main/java/org/apache/commons/vfs2/provider/webdav/WebdavFileProvider.java
@@ -51,10 +51,10 @@ public class WebdavFileProvider extends HttpFileProvider {
/** The capabilities of the WebDAV provider */
protected static final Collection<Capability> capabilities = Collections
- .unmodifiableCollection(Arrays.asList(new Capability[] { Capability.CREATE, Capability.DELETE,
- Capability.RENAME, Capability.GET_TYPE, Capability.LIST_CHILDREN, Capability.READ_CONTENT,
- Capability.URI, Capability.WRITE_CONTENT, Capability.GET_LAST_MODIFIED, Capability.ATTRIBUTES,
- Capability.RANDOM_ACCESS_READ, Capability.DIRECTORY_READ_CONTENT, }));
+ .unmodifiableCollection(Arrays.asList(Capability.CREATE, Capability.DELETE, Capability.RENAME, Capability.GET_TYPE,
+ Capability.LIST_CHILDREN, Capability.READ_CONTENT, Capability.URI, Capability.WRITE_CONTENT,
+ Capability.GET_LAST_MODIFIED, Capability.ATTRIBUTES, Capability.RANDOM_ACCESS_READ,
+ Capability.DIRECTORY_READ_CONTENT));
public WebdavFileProvider() {
super();
diff --git a/commons-vfs2-sandbox/src/main/java/org/apache/commons/vfs2/provider/mime/MimeFileProvider.java b/commons-vfs2-sandbox/src/main/java/org/apache/commons/vfs2/provider/mime/MimeFileProvider.java
index a7888ad..8a226f2 100644
--- a/commons-vfs2-sandbox/src/main/java/org/apache/commons/vfs2/provider/mime/MimeFileProvider.java
+++ b/commons-vfs2-sandbox/src/main/java/org/apache/commons/vfs2/provider/mime/MimeFileProvider.java
@@ -36,8 +36,8 @@ import org.apache.commons.vfs2.provider.LayeredFileName;
*/
public class MimeFileProvider extends AbstractLayeredFileProvider implements FileProvider {
static final Collection<Capability> capabilities = Collections
- .unmodifiableCollection(Arrays.asList(new Capability[] { Capability.GET_TYPE, Capability.GET_LAST_MODIFIED,
- Capability.LIST_CHILDREN, Capability.READ_CONTENT, Capability.URI, Capability.ATTRIBUTES }));
+ .unmodifiableCollection(Arrays.asList(Capability.GET_TYPE, Capability.GET_LAST_MODIFIED, Capability.LIST_CHILDREN,
+ Capability.READ_CONTENT, Capability.URI, Capability.ATTRIBUTES));
public MimeFileProvider() {
super();
diff --git a/commons-vfs2-sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileProvider.java b/commons-vfs2-sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileProvider.java
index 1949f48..660af64 100644
--- a/commons-vfs2-sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileProvider.java
+++ b/commons-vfs2-sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileProvider.java
@@ -38,11 +38,11 @@ public class SmbFileProvider extends AbstractOriginatingFileProvider implements
UserAuthenticationData.USERNAME, UserAuthenticationData.PASSWORD, UserAuthenticationData.DOMAIN };
static final Collection<Capability> capabilities = Collections
- .unmodifiableCollection(Arrays.asList(new Capability[] { Capability.CREATE, Capability.DELETE,
- Capability.RENAME, Capability.GET_TYPE, Capability.GET_LAST_MODIFIED,
- Capability.SET_LAST_MODIFIED_FILE, Capability.SET_LAST_MODIFIED_FOLDER, Capability.LIST_CHILDREN,
- Capability.READ_CONTENT, Capability.URI, Capability.WRITE_CONTENT, Capability.APPEND_CONTENT,
- Capability.RANDOM_ACCESS_READ, Capability.RANDOM_ACCESS_WRITE }));
+ .unmodifiableCollection(Arrays.asList(Capability.CREATE, Capability.DELETE, Capability.RENAME, Capability.GET_TYPE,
+ Capability.GET_LAST_MODIFIED, Capability.SET_LAST_MODIFIED_FILE,
+ Capability.SET_LAST_MODIFIED_FOLDER, Capability.LIST_CHILDREN, Capability.READ_CONTENT,
+ Capability.URI, Capability.WRITE_CONTENT, Capability.APPEND_CONTENT, Capability.RANDOM_ACCESS_READ,
+ Capability.RANDOM_ACCESS_WRITE));
public SmbFileProvider() {
super();
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/bzip2/Bzip2FileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/bzip2/Bzip2FileProvider.java
index e979224..8d476d1 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/bzip2/Bzip2FileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/bzip2/Bzip2FileProvider.java
@@ -34,9 +34,8 @@ import org.apache.commons.vfs2.provider.compressed.CompressedFileFileProvider;
public class Bzip2FileProvider extends CompressedFileFileProvider {
/** The provider's capabilities */
- protected static final Collection<Capability> capabilities = Collections.unmodifiableCollection(Arrays
- .asList(new Capability[] { Capability.GET_LAST_MODIFIED, Capability.GET_TYPE, Capability.LIST_CHILDREN,
- Capability.READ_CONTENT, Capability.WRITE_CONTENT, Capability.URI, Capability.COMPRESS }));
+ protected static final Collection<Capability> capabilities = Collections.unmodifiableCollection(Arrays.asList(Capability.GET_LAST_MODIFIED, Capability.GET_TYPE, Capability.LIST_CHILDREN, Capability.READ_CONTENT,
+ Capability.WRITE_CONTENT, Capability.URI, Capability.COMPRESS));
public Bzip2FileProvider() {
super();
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileProvider.java
index 24ac874..ba04b7d 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileProvider.java
@@ -46,10 +46,9 @@ public class FtpFileProvider extends AbstractOriginatingFileProvider {
public static final UserAuthenticationData.Type[] AUTHENTICATOR_TYPES = new UserAuthenticationData.Type[] {
UserAuthenticationData.USERNAME, UserAuthenticationData.PASSWORD };
- static final Collection<Capability> capabilities = Collections.unmodifiableCollection(Arrays
- .asList(new Capability[] { Capability.CREATE, Capability.DELETE, Capability.RENAME, Capability.GET_TYPE,
- Capability.LIST_CHILDREN, Capability.READ_CONTENT, Capability.GET_LAST_MODIFIED, Capability.URI,
- Capability.WRITE_CONTENT, Capability.APPEND_CONTENT, Capability.RANDOM_ACCESS_READ, }));
+ static final Collection<Capability> capabilities = Collections.unmodifiableCollection(Arrays.asList(Capability.CREATE, Capability.DELETE, Capability.RENAME, Capability.GET_TYPE,
+ Capability.LIST_CHILDREN, Capability.READ_CONTENT, Capability.GET_LAST_MODIFIED, Capability.URI,
+ Capability.WRITE_CONTENT, Capability.APPEND_CONTENT, Capability.RANDOM_ACCESS_READ));
/**
* Constructs a new provider.
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/gzip/GzipFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/gzip/GzipFileProvider.java
index 20e00c2..fe48769 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/gzip/GzipFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/gzip/GzipFileProvider.java
@@ -36,9 +36,8 @@ public class GzipFileProvider extends CompressedFileFileProvider {
/**
* Capabilities.
*/
- protected static final Collection<Capability> capabilities = Collections.unmodifiableCollection(Arrays
- .asList(new Capability[] { Capability.GET_LAST_MODIFIED, Capability.GET_TYPE, Capability.LIST_CHILDREN,
- Capability.WRITE_CONTENT, Capability.READ_CONTENT, Capability.URI, Capability.COMPRESS }));
+ protected static final Collection<Capability> capabilities = Collections.unmodifiableCollection(Arrays.asList(Capability.GET_LAST_MODIFIED, Capability.GET_TYPE, Capability.LIST_CHILDREN, Capability.WRITE_CONTENT,
+ Capability.READ_CONTENT, Capability.URI, Capability.COMPRESS));
public GzipFileProvider() {
super();
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProvider.java
index 6e80898..983647a 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProvider.java
@@ -37,9 +37,9 @@ import org.apache.commons.vfs2.provider.http.HttpFileNameParser;
public class HdfsFileProvider extends AbstractOriginatingFileProvider {
static final Collection<Capability> CAPABILITIES = Collections
- .unmodifiableCollection(Arrays.asList(new Capability[] { Capability.GET_TYPE, Capability.READ_CONTENT,
- Capability.URI, Capability.GET_LAST_MODIFIED, Capability.ATTRIBUTES, Capability.RANDOM_ACCESS_READ,
- Capability.DIRECTORY_READ_CONTENT, Capability.LIST_CHILDREN }));
+ .unmodifiableCollection(Arrays.asList(Capability.GET_TYPE, Capability.READ_CONTENT, Capability.URI, Capability.GET_LAST_MODIFIED,
+ Capability.ATTRIBUTES, Capability.RANDOM_ACCESS_READ, Capability.DIRECTORY_READ_CONTENT,
+ Capability.LIST_CHILDREN));
/**
* Constructs a new HdfsFileProvider.
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http/HttpFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http/HttpFileProvider.java
index 726e76c..ebef618 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http/HttpFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http/HttpFileProvider.java
@@ -42,9 +42,8 @@ public class HttpFileProvider extends AbstractOriginatingFileProvider {
UserAuthenticationData.USERNAME, UserAuthenticationData.PASSWORD };
static final Collection<Capability> capabilities = Collections
- .unmodifiableCollection(Arrays.asList(new Capability[] { Capability.GET_TYPE, Capability.READ_CONTENT,
- Capability.URI, Capability.GET_LAST_MODIFIED, Capability.ATTRIBUTES, Capability.RANDOM_ACCESS_READ,
- Capability.DIRECTORY_READ_CONTENT, }));
+ .unmodifiableCollection(Arrays.asList(Capability.GET_TYPE, Capability.READ_CONTENT, Capability.URI, Capability.GET_LAST_MODIFIED,
+ Capability.ATTRIBUTES, Capability.RANDOM_ACCESS_READ, Capability.DIRECTORY_READ_CONTENT));
/**
* Constructs a new provider.
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/jar/JarFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/jar/JarFileProvider.java
index c2def68..eec19f7 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/jar/JarFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/jar/JarFileProvider.java
@@ -43,8 +43,8 @@ public class JarFileProvider extends ZipFileProvider {
static {
final Collection<Capability> combined = new ArrayList<>();
combined.addAll(ZipFileProvider.capabilities);
- combined.addAll(Arrays.asList(new Capability[] { Capability.ATTRIBUTES, Capability.FS_ATTRIBUTES,
- Capability.SIGNING, Capability.MANIFEST_ATTRIBUTES, Capability.VIRTUAL }));
+ combined.addAll(Arrays.asList(Capability.ATTRIBUTES, Capability.FS_ATTRIBUTES, Capability.SIGNING,
+ Capability.MANIFEST_ATTRIBUTES, Capability.VIRTUAL));
capabilities = Collections.unmodifiableCollection(combined);
}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/DefaultLocalFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/DefaultLocalFileProvider.java
index 032a6c8..ac3305e 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/DefaultLocalFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/DefaultLocalFileProvider.java
@@ -39,11 +39,11 @@ public class DefaultLocalFileProvider extends AbstractOriginatingFileProvider im
/** The provider's capabilities. */
public static final Collection<Capability> capabilities = Collections.unmodifiableCollection(
- Arrays.asList(new Capability[] { Capability.CREATE, Capability.DELETE, Capability.RENAME,
- Capability.GET_TYPE, Capability.GET_LAST_MODIFIED, Capability.SET_LAST_MODIFIED_FILE,
+ Arrays.asList(Capability.CREATE, Capability.DELETE, Capability.RENAME, Capability.GET_TYPE,
+ Capability.GET_LAST_MODIFIED, Capability.SET_LAST_MODIFIED_FILE,
Capability.SET_LAST_MODIFIED_FOLDER, Capability.LIST_CHILDREN, Capability.READ_CONTENT,
Capability.URI, Capability.WRITE_CONTENT, Capability.APPEND_CONTENT, Capability.RANDOM_ACCESS_READ,
- Capability.RANDOM_ACCESS_SET_LENGTH, Capability.RANDOM_ACCESS_WRITE }));
+ Capability.RANDOM_ACCESS_SET_LENGTH, Capability.RANDOM_ACCESS_WRITE));
/**
* Constructs a new provider.
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileProvider.java
index 071ca89..d060382 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileProvider.java
@@ -34,11 +34,11 @@ public class RamFileProvider extends AbstractOriginatingFileProvider {
/** The provider's capabilities. */
public static final Collection<Capability> capabilities = Collections.unmodifiableCollection(
- Arrays.asList(new Capability[] { Capability.CREATE, Capability.DELETE, Capability.RENAME,
- Capability.GET_TYPE, Capability.GET_LAST_MODIFIED, Capability.SET_LAST_MODIFIED_FILE,
+ Arrays.asList(Capability.CREATE, Capability.DELETE, Capability.RENAME, Capability.GET_TYPE,
+ Capability.GET_LAST_MODIFIED, Capability.SET_LAST_MODIFIED_FILE,
Capability.SET_LAST_MODIFIED_FOLDER, Capability.LIST_CHILDREN, Capability.READ_CONTENT,
Capability.URI, Capability.WRITE_CONTENT, Capability.APPEND_CONTENT, Capability.RANDOM_ACCESS_READ,
- Capability.RANDOM_ACCESS_SET_LENGTH, Capability.RANDOM_ACCESS_WRITE }));
+ Capability.RANDOM_ACCESS_SET_LENGTH, Capability.RANDOM_ACCESS_WRITE));
/**
* Constructs a new provider.
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileProvider.java
index 18faa7d..e89a8e7 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileProvider.java
@@ -37,7 +37,7 @@ public class ResourceFileProvider extends AbstractFileProvider {
/** The provider's capabilities */
protected static final Collection<Capability> capabilities = Collections
- .unmodifiableCollection(Arrays.asList(new Capability[] { Capability.DISPATCHER }));
+ .unmodifiableCollection(Arrays.asList(Capability.DISPATCHER));
private static final int BUFFER_SIZE = 80;
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileProvider.java
index 1d2a58c..27141cc 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileProvider.java
@@ -46,11 +46,10 @@ public class SftpFileProvider extends AbstractOriginatingFileProvider {
UserAuthenticationData.USERNAME, UserAuthenticationData.PASSWORD };
/** The provider's capabilities. */
- protected static final Collection<Capability> capabilities = Collections.unmodifiableCollection(Arrays
- .asList(new Capability[] { Capability.CREATE, Capability.DELETE, Capability.RENAME, Capability.GET_TYPE,
- Capability.LIST_CHILDREN, Capability.READ_CONTENT, Capability.URI, Capability.WRITE_CONTENT,
- Capability.GET_LAST_MODIFIED, Capability.SET_LAST_MODIFIED_FILE, Capability.RANDOM_ACCESS_READ,
- Capability.APPEND_CONTENT }));
+ protected static final Collection<Capability> capabilities = Collections.unmodifiableCollection(Arrays.asList(Capability.CREATE, Capability.DELETE, Capability.RENAME, Capability.GET_TYPE,
+ Capability.LIST_CHILDREN, Capability.READ_CONTENT, Capability.URI, Capability.WRITE_CONTENT,
+ Capability.GET_LAST_MODIFIED, Capability.SET_LAST_MODIFIED_FILE, Capability.RANDOM_ACCESS_READ,
+ Capability.APPEND_CONTENT));
/**
* Creates a new Session.
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/tar/TarFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/tar/TarFileProvider.java
index d4485aa..9aaccbc 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/tar/TarFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/tar/TarFileProvider.java
@@ -38,8 +38,8 @@ public class TarFileProvider extends AbstractLayeredFileProvider {
/** The provider's capabilities */
protected static final Collection<Capability> capabilities = Collections
- .unmodifiableCollection(Arrays.asList(new Capability[] { Capability.GET_LAST_MODIFIED, Capability.GET_TYPE,
- Capability.LIST_CHILDREN, Capability.READ_CONTENT, Capability.URI, Capability.VIRTUAL }));
+ .unmodifiableCollection(Arrays.asList(Capability.GET_LAST_MODIFIED, Capability.GET_TYPE, Capability.LIST_CHILDREN,
+ Capability.READ_CONTENT, Capability.URI, Capability.VIRTUAL));
public TarFileProvider() {
super();
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/url/UrlFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/url/UrlFileProvider.java
index 4e1a81d..7b45015 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/url/UrlFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/url/UrlFileProvider.java
@@ -37,7 +37,7 @@ public class UrlFileProvider extends AbstractFileProvider {
/** The provider's capabilities */
protected static final Collection<Capability> capabilities = Collections.unmodifiableCollection(
- Arrays.asList(new Capability[] { Capability.READ_CONTENT, Capability.URI, Capability.GET_LAST_MODIFIED }));
+ Arrays.asList(Capability.READ_CONTENT, Capability.URI, Capability.GET_LAST_MODIFIED));
public UrlFileProvider() {
super();
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/zip/ZipFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/zip/ZipFileProvider.java
index e6122fa..3500676 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/zip/ZipFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/zip/ZipFileProvider.java
@@ -38,9 +38,8 @@ import org.apache.commons.vfs2.provider.LayeredFileName;
public class ZipFileProvider extends AbstractLayeredFileProvider {
/** The list of capabilities this provider supports */
- protected static final Collection<Capability> capabilities = Collections.unmodifiableCollection(Arrays
- .asList(new Capability[] { Capability.GET_LAST_MODIFIED, Capability.GET_TYPE, Capability.LIST_CHILDREN,
- Capability.READ_CONTENT, Capability.URI, Capability.COMPRESS, Capability.VIRTUAL }));
+ protected static final Collection<Capability> capabilities = Collections.unmodifiableCollection(Arrays.asList(Capability.GET_LAST_MODIFIED, Capability.GET_TYPE, Capability.LIST_CHILDREN, Capability.READ_CONTENT,
+ Capability.URI, Capability.COMPRESS, Capability.VIRTUAL));
public ZipFileProvider() {
super();