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 2021/11/27 14:15:17 UTC
[commons-vfs] branch master updated: Fix Checkstyle: Redundant 'final' modifier.
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 f7916a9 Fix Checkstyle: Redundant 'final' modifier.
f7916a9 is described below
commit f7916a938f1f0e61b93d97bf50e788a3a43c936b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 27 09:15:13 2021 -0500
Fix Checkstyle: Redundant 'final' modifier.
Update line length.
---
checkstyle.xml | 2 +-
.../src/main/java/org/apache/commons/vfs2/FileContent.java | 2 +-
.../src/main/java/org/apache/commons/vfs2/FileFilter.java | 2 +-
.../src/main/java/org/apache/commons/vfs2/FileMonitor.java | 4 ++--
.../src/main/java/org/apache/commons/vfs2/FilesCache.java | 10 +++++-----
.../apache/commons/vfs2/events/AbstractFileChangeEvent.java | 2 +-
.../commons/vfs2/operations/AbstractFileOperationProvider.java | 8 +++-----
.../apache/commons/vfs2/operations/FileOperationProvider.java | 6 ++----
.../java/org/apache/commons/vfs2/operations/vcs/VcsAdd.java | 4 ++--
.../org/apache/commons/vfs2/operations/vcs/VcsCheckout.java | 10 +++++-----
.../java/org/apache/commons/vfs2/operations/vcs/VcsCommit.java | 8 ++++----
.../apache/commons/vfs2/operations/vcs/VcsCommitListener.java | 2 +-
.../java/org/apache/commons/vfs2/operations/vcs/VcsDelete.java | 2 +-
.../java/org/apache/commons/vfs2/operations/vcs/VcsLog.java | 6 +++---
.../apache/commons/vfs2/operations/vcs/VcsLogEntryHandler.java | 2 +-
.../apache/commons/vfs2/operations/vcs/VcsModifyListener.java | 2 +-
.../java/org/apache/commons/vfs2/operations/vcs/VcsRevert.java | 6 +++---
.../java/org/apache/commons/vfs2/operations/vcs/VcsUpdate.java | 8 ++++----
.../apache/commons/vfs2/operations/vcs/VcsUpdateListener.java | 2 +-
.../org/apache/commons/vfs2/provider/AbstractFileSystem.java | 2 +-
.../commons/vfs2/provider/AbstractLayeredFileProvider.java | 3 +--
.../commons/vfs2/provider/AbstractOriginatingFileProvider.java | 3 +--
.../java/org/apache/commons/vfs2/provider/FileNameParser.java | 3 +--
.../java/org/apache/commons/vfs2/provider/FileProvider.java | 6 ++----
.../org/apache/commons/vfs2/provider/LocalFileProvider.java | 6 +++---
.../vfs2/provider/compressed/CompressedFileFileProvider.java | 3 +--
.../vfs2/provider/compressed/CompressedFileFileSystem.java | 4 ++--
.../java/org/apache/commons/vfs2/provider/ftp/FtpClient.java | 2 +-
.../commons/vfs2/provider/local/LocalFileNameParser.java | 5 ++---
.../apache/commons/vfs2/provider/sftp/IdentityProvider.java | 2 +-
30 files changed, 58 insertions(+), 69 deletions(-)
diff --git a/checkstyle.xml b/checkstyle.xml
index cdf8b3a..bbbb47f 100644
--- a/checkstyle.xml
+++ b/checkstyle.xml
@@ -70,7 +70,7 @@
<!-- Checks for Size Violations. -->
<!-- See http://checkstyle.sf.net/config_sizes.html -->
<module name="LineLength">
- <property name="max" value="120" />
+ <property name="max" value="160" />
</module>
<!-- Exceptions -->
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 c7c338c..8d97ce6 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
@@ -263,7 +263,7 @@ public interface FileContent extends Closeable {
* @throws FileSystemException If the file is read-only, or is being read, or is being written, or on error opening
* the stream.
*/
- RandomAccessContent getRandomAccessContent(final RandomAccessMode mode) throws FileSystemException;
+ RandomAccessContent getRandomAccessContent(RandomAccessMode mode) throws FileSystemException;
/**
* Gets the size of the file, in bytes.
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileFilter.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileFilter.java
index 216d9f4..1c073ff 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileFilter.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileFilter.java
@@ -28,5 +28,5 @@ public interface FileFilter {
* @return true if the file should be selected.
* @throws FileSystemException Thrown for file system errors (since 2.4.)
*/
- boolean accept(final FileSelectInfo fileSelectInfo) throws FileSystemException;
+ boolean accept(FileSelectInfo fileSelectInfo) throws FileSystemException;
}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileMonitor.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileMonitor.java
index 03ba46f..83b741a 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileMonitor.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileMonitor.java
@@ -26,12 +26,12 @@ public interface FileMonitor {
*
* @param file The FileObject to monitor.
*/
- void addFile(final FileObject file);
+ void addFile(FileObject file);
/**
* Removes a file from being monitored.
*
* @param file The FileObject to stop monitoring.
*/
- void removeFile(final FileObject file);
+ void removeFile(FileObject file);
}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FilesCache.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FilesCache.java
index 6eec3e5..05017f6 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FilesCache.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FilesCache.java
@@ -26,7 +26,7 @@ public interface FilesCache {
*
* @param fileSystem The FileSystem.
*/
- void clear(final FileSystem fileSystem);
+ void clear(FileSystem fileSystem);
/**
* Purges the whole cache.
@@ -40,14 +40,14 @@ public interface FilesCache {
* @param fileName the name
* @return the file object or null if file is not cached
*/
- FileObject getFile(final FileSystem fileSystem, final FileName fileName);
+ FileObject getFile(FileSystem fileSystem, FileName fileName);
/**
* Adds a FileObject to the cache.
*
* @param file the file
*/
- void putFile(final FileObject file);
+ void putFile(FileObject file);
/**
* Adds a FileObject to the cache if it isn't already present.
@@ -55,7 +55,7 @@ public interface FilesCache {
* @param file the file
* @return true if the file was stored, false otherwise.
*/
- boolean putFileIfAbsent(final FileObject file);
+ boolean putFileIfAbsent(FileObject file);
/**
* Removes a file from cache.
@@ -63,7 +63,7 @@ public interface FilesCache {
* @param fileSystem file system
* @param name file name
*/
- void removeFile(final FileSystem fileSystem, final FileName name);
+ void removeFile(FileSystem fileSystem, FileName name);
/*
If the cache uses timestamps it could use this method to handle updates of them.
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/events/AbstractFileChangeEvent.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/events/AbstractFileChangeEvent.java
index 1e9e360..ef7a439 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/events/AbstractFileChangeEvent.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/events/AbstractFileChangeEvent.java
@@ -40,5 +40,5 @@ public abstract class AbstractFileChangeEvent extends FileChangeEvent {
* @param fileListener The file listener to notify.
* @throws Exception Anything can happen.
*/
- public abstract void notify(final FileListener fileListener) throws Exception;
+ public abstract void notify(FileListener fileListener) throws Exception;
}
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 de2ff56..977bc3c 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
@@ -58,9 +58,8 @@ public abstract class AbstractFileOperationProvider implements FileOperationProv
* @throws FileSystemException if list of operations cannot be retrieved.
* @see #collectOperations(Collection operationsList, FileObject file)
*/
- protected abstract void doCollectOperations(final Collection<Class<? extends FileOperation>> availableOperations,
- final Collection<Class<? extends FileOperation>> resultList, final FileObject file)
- throws FileSystemException;
+ protected abstract void doCollectOperations(Collection<Class<? extends FileOperation>> availableOperations,
+ Collection<Class<? extends FileOperation>> resultList, FileObject file) throws FileSystemException;
/**
* @param file the FileObject for which we need a operation.
@@ -82,8 +81,7 @@ public abstract class AbstractFileOperationProvider implements FileOperationProv
* @return a new file operation
* @throws FileSystemException if operation cannot be instantiated.
*/
- protected abstract FileOperation instantiateOperation(final FileObject file,
- final Class<? extends FileOperation> operationClass) throws FileSystemException;
+ protected abstract FileOperation instantiateOperation(FileObject file, Class<? extends FileOperation> operationClass) throws FileSystemException;
/**
* Find class implementing a specific operation interface.
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 bd6f016..9c30dd7 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
@@ -44,8 +44,7 @@ public interface FileOperationProvider {
*
* @throws FileSystemException if list of operations cannot be retrieved.
*/
- void collectOperations(final Collection<Class<? extends FileOperation>> operationsList, final FileObject file)
- throws FileSystemException;
+ void collectOperations(Collection<Class<? extends FileOperation>> operationsList, FileObject file) throws FileSystemException;
/**
* Get implementation for a given FileObject and FileOperation interface.
@@ -56,6 +55,5 @@ public interface FileOperationProvider {
*
* @throws FileSystemException if operation cannot be retrieved.
*/
- FileOperation getOperation(final FileObject file, final Class<? extends FileOperation> operationClass)
- throws FileSystemException;
+ FileOperation getOperation(FileObject file, Class<? extends FileOperation> operationClass) throws FileSystemException;
}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsAdd.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsAdd.java
index 198fdb6..17e18e3 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsAdd.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsAdd.java
@@ -28,11 +28,11 @@ public interface VcsAdd extends FileOperation {
*
* @param makedir true if directories should be created, false otherwise.
*/
- void setMakedir(final boolean makedir);
+ void setMakedir(boolean makedir);
/**
*
* @param recursive true if subdirectories should be processed.
*/
- void setRecursive(final boolean recursive);
+ void setRecursive(boolean recursive);
}
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 7fca97e..9167963 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
@@ -29,23 +29,23 @@ public interface VcsCheckout extends FileOperation {
*
* @param revision The revision number.
*/
- void setRevision(final long revision);
+ void setRevision(long revision);
/**
*
* @param recursive true if directories should be traversed.
*/
- void setRecursive(final boolean recursive);
+ void setRecursive(boolean recursive);
/**
*
* @param targetDir directory under which retrieved files should be placed.
*/
- void setTargetDirectory(final FileObject targetDir);
+ void setTargetDirectory(FileObject targetDir);
/**
* @param export if true, administrative .svn directoies will not be created on the retrieved tree. The checkout
- * operation in this case is equivalent to export function.
+ * operation in this case is equivalent to export function.
*/
- void setExport(final boolean export);
+ void setExport(boolean export);
}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsCommit.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsCommit.java
index 7df5f1f..b4a8765 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsCommit.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsCommit.java
@@ -28,23 +28,23 @@ public interface VcsCommit extends FileOperation {
*
* @param isRecursive true if directories should be traversed.
*/
- void setRecursive(final boolean isRecursive);
+ void setRecursive(boolean isRecursive);
/**
*
* @param message The message.
*/
- void setMessage(final String message);
+ void setMessage(String message);
/**
*
* @param listener Listener that is given control when a commit occurs.
*/
- void addCommitListener(final VcsCommitListener listener);
+ void addCommitListener(VcsCommitListener listener);
/**
*
* @param listener The Listener.
*/
- void removeCommitListener(final VcsCommitListener listener);
+ void removeCommitListener(VcsCommitListener listener);
}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsCommitListener.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsCommitListener.java
index e5f8384..533c771 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsCommitListener.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsCommitListener.java
@@ -27,5 +27,5 @@ public interface VcsCommitListener {
* @param path The path.
* @param contentStatus The status;
*/
- void commited(final String path, final VcsStatus contentStatus);
+ void commited(String path, VcsStatus contentStatus);
}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsDelete.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsDelete.java
index 8bba91b..9cf6948 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsDelete.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsDelete.java
@@ -28,5 +28,5 @@ public interface VcsDelete extends FileOperation {
*
* @param force true if the delete should be unconditional.
*/
- void setForce(final boolean force);
+ void setForce(boolean force);
}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsLog.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsLog.java
index 94c6740..1cbfbd3 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsLog.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsLog.java
@@ -28,17 +28,17 @@ public interface VcsLog extends FileOperation {
*
* @param startRev The start revision.
*/
- void setStartRevision(final long startRev);
+ void setStartRevision(long startRev);
/**
*
* @param endRev The end revision.
*/
- void setEndRevision(final long endRev);
+ void setEndRevision(long endRev);
/**
*
* @param handler The LogEntry handler.
*/
- void setLogEntryHandler(final VcsLogEntryHandler handler);
+ void setLogEntryHandler(VcsLogEntryHandler handler);
}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsLogEntryHandler.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsLogEntryHandler.java
index acf97a3..4f2b17c 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsLogEntryHandler.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsLogEntryHandler.java
@@ -29,5 +29,5 @@ public interface VcsLogEntryHandler {
* @param entry The log entry.
* @throws FileSystemException if an error occurs.
*/
- void handleLogEntry(final VcsLogEntry entry) throws FileSystemException;
+ void handleLogEntry(VcsLogEntry entry) throws FileSystemException;
}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsModifyListener.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsModifyListener.java
index 6133b9d..223173a 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsModifyListener.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsModifyListener.java
@@ -27,5 +27,5 @@ public interface VcsModifyListener {
* @param path The path String.
* @param contentStatus The content status.
*/
- void modified(final String path, final VcsStatus contentStatus);
+ void modified(String path, VcsStatus contentStatus);
}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsRevert.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsRevert.java
index 9b52470..9f9b803 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsRevert.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsRevert.java
@@ -32,17 +32,17 @@ public interface VcsRevert extends FileOperation {
*
* @param recursive true if children should be processed.
*/
- void setRecursive(final boolean recursive);
+ void setRecursive(boolean recursive);
/**
*
* @param listener The Listener to add.
*/
- void addModifyListener(final VcsModifyListener listener);
+ void addModifyListener(VcsModifyListener listener);
/**
*
* @param listener The Listener to remove.
*/
- void removeModifyListener(final VcsModifyListener listener);
+ void removeModifyListener(VcsModifyListener listener);
}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsUpdate.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsUpdate.java
index 7f63d0a..fa4fa30 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsUpdate.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsUpdate.java
@@ -28,23 +28,23 @@ public interface VcsUpdate extends FileOperation {
*
* @param revision The revision number.
*/
- void setRevision(final long revision);
+ void setRevision(long revision);
/**
*
* @param isRecursive true if recursive.
*/
- void setRecursive(final boolean isRecursive);
+ void setRecursive(boolean isRecursive);
/**
*
* @param listener The UpdateListener.
*/
- void addUpdateListener(final VcsUpdateListener listener);
+ void addUpdateListener(VcsUpdateListener listener);
/**
*
* @param listener The UpdateListener.
*/
- void removeUpdateListener(final VcsUpdateListener listener);
+ void removeUpdateListener(VcsUpdateListener listener);
}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsUpdateListener.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsUpdateListener.java
index 7fc830e..f4b88c2 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsUpdateListener.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/operations/vcs/VcsUpdateListener.java
@@ -28,5 +28,5 @@ public interface VcsUpdateListener {
* @param revision The revision number.
* @param contentStatus The status.
*/
- void updated(final String path, final long revision, final VcsStatus contentStatus);
+ void updated(String path, long revision, VcsStatus contentStatus);
}
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 819b185..408e5f1 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
@@ -158,7 +158,7 @@ public abstract class AbstractFileSystem extends AbstractVfsComponent implements
* @return new created FileObject.
* @throws Exception might throw an Exception, which is then wrapped in FileSystemException.
*/
- protected abstract FileObject createFile(final AbstractFileName name) throws Exception;
+ protected abstract FileObject createFile(AbstractFileName name) throws Exception;
/**
* Adds the capabilities of this file system.
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractLayeredFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractLayeredFileProvider.java
index f2a550f..d3e32d3 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractLayeredFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractLayeredFileProvider.java
@@ -94,7 +94,6 @@ public abstract class AbstractLayeredFileProvider extends AbstractFileProvider {
* @return The file system, never null. Might implement {@link VfsComponent}.
* @throws FileSystemException if the file system cannot be created.
*/
- protected abstract FileSystem doCreateFileSystem(final String scheme, final FileObject file,
- final FileSystemOptions fileSystemOptions) throws FileSystemException;
+ protected abstract FileSystem doCreateFileSystem(String scheme, FileObject file, FileSystemOptions fileSystemOptions) throws FileSystemException;
}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractOriginatingFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractOriginatingFileProvider.java
index 6df5a9b..f491667 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractOriginatingFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractOriginatingFileProvider.java
@@ -103,6 +103,5 @@ public abstract class AbstractOriginatingFileProvider extends AbstractFileProvid
* @return The FileSystem.
* @throws FileSystemException if an error occurs.
*/
- protected abstract FileSystem doCreateFileSystem(final FileName rootFileName, final FileSystemOptions fileSystemOptions)
- throws FileSystemException;
+ protected abstract FileSystem doCreateFileSystem(FileName rootFileName, FileSystemOptions fileSystemOptions) throws FileSystemException;
}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileNameParser.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileNameParser.java
index 1b71f08..a9dca13 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileNameParser.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileNameParser.java
@@ -41,6 +41,5 @@ public interface FileNameParser {
* @return A FileName that represents the taret file.
* @throws FileSystemException if an error occurs parsing the URI.
*/
- FileName parseUri(final VfsComponentContext context, final FileName base, final String uri)
- throws FileSystemException;
+ FileName parseUri(VfsComponentContext context, FileName base, String uri) throws FileSystemException;
}
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 8137b4c..46edb27 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
@@ -42,8 +42,7 @@ public interface FileProvider {
* @return The FileObject.
* @throws FileSystemException if an error occurs locating the file.
*/
- FileObject findFile(final FileObject baseFile, final String uri, final FileSystemOptions fileSystemOptions)
- throws FileSystemException;
+ FileObject findFile(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) throws FileSystemException;
/**
* Creates a layered file system.
@@ -54,8 +53,7 @@ public interface FileProvider {
* @return A FileObject in the file system.
* @throws FileSystemException if an error occurs.
*/
- FileObject createFileSystem(String scheme, FileObject file, FileSystemOptions fileSystemOptions)
- throws FileSystemException;
+ FileObject createFileSystem(String scheme, FileObject file, FileSystemOptions fileSystemOptions) throws FileSystemException;
/**
* Gets the configbuilder useable to collect the needed fileSystemOptions.
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/LocalFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/LocalFileProvider.java
index b8475ee..489083b 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/LocalFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/LocalFileProvider.java
@@ -35,7 +35,7 @@ public interface LocalFileProvider extends FileProvider {
* @param name The name to test.
* @return true if the name is absolute.
*/
- boolean isAbsoluteLocalName(final String name);
+ boolean isAbsoluteLocalName(String name);
/**
* Finds a local file, from its local name.
@@ -44,7 +44,7 @@ public interface LocalFileProvider extends FileProvider {
* @return The FileObject for the file.
* @throws FileSystemException if an error occurs.
*/
- FileObject findLocalFile(final String name) throws FileSystemException;
+ FileObject findLocalFile(String name) throws FileSystemException;
/**
* Converts from java.io.File to FileObject.
@@ -53,5 +53,5 @@ public interface LocalFileProvider extends FileProvider {
* @return The FileObject for the file.
* @throws FileSystemException if an error occurs.
*/
- FileObject findLocalFile(final File file) throws FileSystemException;
+ FileObject findLocalFile(File file) throws FileSystemException;
}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/compressed/CompressedFileFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/compressed/CompressedFileFileProvider.java
index 49f0b39..6b6ebe0 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/compressed/CompressedFileFileProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/compressed/CompressedFileFileProvider.java
@@ -50,8 +50,7 @@ public abstract class CompressedFileFileProvider extends AbstractLayeredFileProv
return createFileSystem(name, file, fileSystemOptions);
}
- protected abstract FileSystem createFileSystem(final FileName name, final FileObject file,
- final FileSystemOptions fileSystemOptions) throws FileSystemException;
+ protected abstract FileSystem createFileSystem(FileName name, FileObject file, FileSystemOptions fileSystemOptions) throws FileSystemException;
@Override
public abstract Collection<Capability> getCapabilities();
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/compressed/CompressedFileFileSystem.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/compressed/CompressedFileFileSystem.java
index 1eff96d..e1b6531 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/compressed/CompressedFileFileSystem.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/compressed/CompressedFileFileSystem.java
@@ -40,11 +40,11 @@ public abstract class CompressedFileFileSystem extends AbstractFileSystem {
* Returns the capabilities of this file system.
*/
@Override
- protected abstract void addCapabilities(final Collection<Capability> caps);
+ protected abstract void addCapabilities(Collection<Capability> caps);
/**
* Creates a file object.
*/
@Override
- protected abstract FileObject createFile(final AbstractFileName name) throws FileSystemException;
+ protected abstract FileObject createFile(AbstractFileName name) throws FileSystemException;
}
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 b99a0c6..395e8da 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
@@ -56,7 +56,7 @@ public interface FtpClient {
* @throws IOException on error
* @since 2.8.0
*/
- boolean hasFeature(final String feature) throws IOException;
+ boolean hasFeature(String feature) throws IOException;
boolean isConnected() throws FileSystemException;
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/LocalFileNameParser.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/LocalFileNameParser.java
index 676a93b..4b5de23 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/LocalFileNameParser.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/LocalFileNameParser.java
@@ -30,8 +30,7 @@ import org.apache.commons.vfs2.provider.VfsComponentContext;
*/
public abstract class LocalFileNameParser extends AbstractFileNameParser {
- protected abstract FileName createFileName(String scheme, final String rootFile, final String path,
- final FileType type);
+ protected abstract FileName createFileName(String scheme, String rootFile, String path, FileType type);
/**
* Pops the root prefix off a URI, which has had the scheme removed.
@@ -41,7 +40,7 @@ public abstract class LocalFileNameParser extends AbstractFileNameParser {
* @return the root prefix extracted.
* @throws FileSystemException if an error occurs.
*/
- protected abstract String extractRootPrefix(final String uri, final StringBuilder name) throws FileSystemException;
+ protected abstract String extractRootPrefix(String uri, StringBuilder name) throws FileSystemException;
private String[] getSchemes(final VfsComponentContext context, final FileName base, final String uri) {
if (context == null) {
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/IdentityProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/IdentityProvider.java
index fa58800..d90d5f3 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/IdentityProvider.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/IdentityProvider.java
@@ -27,6 +27,6 @@ import com.jcraft.jsch.JSchException;
*/
public interface IdentityProvider {
- void addIdentity(final JSch jsch) throws JSchException;
+ void addIdentity(JSch jsch) throws JSchException;
}