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:41:37 UTC

[commons-vfs] 04/04: Fix Checkstyle MissingJavadocMethod: Missing a Javadoc comment.

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 bd43292f8aa183e2f8f649ddcfd6739b4973ade4
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 27 09:41:30 2021 -0500

    Fix Checkstyle MissingJavadocMethod: Missing a Javadoc comment.
    
    Better parameter names.
---
 .../apache/commons/vfs2/FileNotFolderException.java   | 19 +++++++++++++++----
 .../apache/commons/vfs2/FileNotFoundException.java    | 19 +++++++++++++++----
 .../org/apache/commons/vfs2/FileSystemException.java  |  6 +++---
 .../commons/vfs2/FileTypeHasNoContentException.java   | 19 +++++++++++++++----
 4 files changed, 48 insertions(+), 15 deletions(-)

diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileNotFolderException.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileNotFolderException.java
index ddef841..82156f2 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileNotFolderException.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileNotFolderException.java
@@ -28,11 +28,22 @@ public class FileNotFolderException extends FileSystemException {
      */
     private static final long serialVersionUID = 20101208L;
 
-    public FileNotFolderException(final Object info0) {
-        super("vfs.provider/list-children-not-folder.error", info0);
+    /**
+     * Constructs exception with the specified detail message.
+     *
+     * @param info one context information.
+     */
+    public FileNotFolderException(final Object info) {
+        super("vfs.provider/list-children-not-folder.error", info);
     }
 
-    public FileNotFolderException(final Object info0, final Throwable throwable) {
-        super("vfs.provider/list-children-not-folder.error", info0, throwable);
+    /**
+     * Constructs exception with the specified detail message.
+     *
+     * @param info one context information.
+     * @param cause the cause.
+     */
+    public FileNotFolderException(final Object info, final Throwable cause) {
+        super("vfs.provider/list-children-not-folder.error", info, cause);
     }
 }
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileNotFoundException.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileNotFoundException.java
index c104158..15fd875 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileNotFoundException.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileNotFoundException.java
@@ -28,11 +28,22 @@ public class FileNotFoundException extends FileSystemException {
      */
     private static final long serialVersionUID = 20101208L;
 
-    public FileNotFoundException(final Object info0) {
-        super("vfs.provider/read-not-file.error", info0);
+    /**
+     * Constructs exception with the specified detail message.
+     *
+     * @param info one context information.
+     */
+    public FileNotFoundException(final Object info) {
+        super("vfs.provider/read-not-file.error", info);
     }
 
-    public FileNotFoundException(final Object info0, final Throwable throwable) {
-        super("vfs.provider/read-not-file.error", info0, throwable);
+    /**
+     * Constructs exception with the specified detail message and cause.
+     *
+     * @param info one context information.
+     * @param cause the cause.
+     */
+    public FileNotFoundException(final Object info, final Throwable cause) {
+        super("vfs.provider/read-not-file.error", info, cause);
     }
 }
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemException.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemException.java
index 0e00a5c..69fa8d1 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemException.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileSystemException.java
@@ -114,10 +114,10 @@ public class FileSystemException extends IOException {
      *
      * @param code the error code of the message.
      * @param info one context information.
-     * @param throwable the cause.
+     * @param cause the cause.
      */
-    public FileSystemException(final String code, final Object info, final Throwable throwable) {
-        this(code, throwable, new Object[] { info });
+    public FileSystemException(final String code, final Object info, final Throwable cause) {
+        this(code, cause, new Object[] { info });
     }
 
     /**
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileTypeHasNoContentException.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileTypeHasNoContentException.java
index d54393b..8ae3436 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileTypeHasNoContentException.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileTypeHasNoContentException.java
@@ -29,11 +29,22 @@ public class FileTypeHasNoContentException extends FileSystemException {
      */
     private static final long serialVersionUID = 20101208L;
 
-    public FileTypeHasNoContentException(final Object info0) {
-        super("vfs.provider/read-not-file.error", info0);
+    /**
+     * Constructs exception with the specified detail message.
+     *
+     * @param info one context information.
+     */
+    public FileTypeHasNoContentException(final Object info) {
+        super("vfs.provider/read-not-file.error", info);
     }
 
-    public FileTypeHasNoContentException(final Object info0, final Throwable throwable) {
-        super("vfs.provider/read-not-file.error", info0, throwable);
+    /**
+     * Constructs exception with the specified detail message and cause.
+     *
+     * @param info one context information.
+     * @param cause the cause.
+     */
+    public FileTypeHasNoContentException(final Object info, final Throwable cause) {
+        super("vfs.provider/read-not-file.error", info, cause);
     }
 }