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:33 UTC
[commons-vfs] branch master updated (84fa6f7 -> bd43292)
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 84fa6f7 Add TrueFileFilter.INSTANCE and deprecate TrueFileFilter.TRUE.
new ebf4744 Better parameter name.
new 3800f0e Better parameter name.
new a85edd2 Add missing license header.
new bd43292 Fix Checkstyle MissingJavadocMethod: Missing a Javadoc comment.
The 4 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:
.../commons/vfs2/FileNotFolderException.java | 19 +++++++---
.../apache/commons/vfs2/FileNotFoundException.java | 19 +++++++---
.../apache/commons/vfs2/FileSystemException.java | 40 +++++++++++-----------
.../vfs2/FileTypeHasNoContentException.java | 19 +++++++---
.../commons/vfs2/filter/TestFalseFileFilter.java | 16 +++++++++
.../commons/vfs2/filter/TestTrueFileFilter.java | 16 +++++++++
6 files changed, 97 insertions(+), 32 deletions(-)
[commons-vfs] 04/04: Fix Checkstyle MissingJavadocMethod: Missing a Javadoc comment.
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 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);
}
}
[commons-vfs] 01/04: Better parameter name.
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 ebf4744e52301ab5666d757778f2cc9fbe082ef3
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 27 09:34:44 2021 -0500
Better parameter name.
---
.../java/org/apache/commons/vfs2/FileSystemException.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
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 64a5ac4..d25341b 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
@@ -103,21 +103,21 @@ public class FileSystemException extends IOException {
* Constructs exception with the specified detail message.
*
* @param code the error code of the message.
- * @param info0 one context information.
+ * @param info one context information.
*/
- public FileSystemException(final String code, final Object info0) {
- this(code, null, new Object[] { info0 });
+ public FileSystemException(final String code, final Object info) {
+ this(code, null, new Object[] { info });
}
/**
- * Constructs exception with the specified detail message.
+ * Constructs exception with the specified detail message and cause.
*
* @param code the error code of the message.
- * @param info0 one context information.
+ * @param info one context information.
* @param throwable the cause.
*/
- public FileSystemException(final String code, final Object info0, final Throwable throwable) {
- this(code, throwable, new Object[] { info0 });
+ public FileSystemException(final String code, final Object info, final Throwable throwable) {
+ this(code, throwable, new Object[] { info });
}
/**
[commons-vfs] 03/04: Add missing license header.
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 a85edd203c78df8e81d1829f187e003e68b5d96b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 27 09:40:57 2021 -0500
Add missing license header.
---
.../apache/commons/vfs2/filter/TestFalseFileFilter.java | 16 ++++++++++++++++
.../apache/commons/vfs2/filter/TestTrueFileFilter.java | 16 ++++++++++++++++
2 files changed, 32 insertions(+)
diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/TestFalseFileFilter.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/TestFalseFileFilter.java
index b2f92bf..4eeb62f 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/TestFalseFileFilter.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/TestFalseFileFilter.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.apache.commons.vfs2.filter;
import org.apache.commons.vfs2.FileFilter;
diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/TestTrueFileFilter.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/TestTrueFileFilter.java
index 08d995a..5af90ec 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/TestTrueFileFilter.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/TestTrueFileFilter.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.apache.commons.vfs2.filter;
import org.apache.commons.vfs2.FileFilter;
[commons-vfs] 02/04: Better parameter name.
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 3800f0e55040995a59707d27a44b5036cf513b1c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 27 09:36:07 2021 -0500
Better parameter name.
---
.../apache/commons/vfs2/FileSystemException.java | 24 +++++++++++-----------
1 file changed, 12 insertions(+), 12 deletions(-)
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 d25341b..0e00a5c 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
@@ -134,10 +134,10 @@ public class FileSystemException extends IOException {
* Constructs exception with the specified detail message.
*
* @param code the error code of the message.
- * @param throwable the original cause
+ * @param cause the original cause
*/
- public FileSystemException(final String code, final Throwable throwable) {
- this(code, throwable, (Object[]) null);
+ public FileSystemException(final String code, final Throwable cause) {
+ this(code, cause, (Object[]) null);
}
/**
@@ -145,12 +145,12 @@ public class FileSystemException extends IOException {
*
* @param code the error code of the message.
* @param info array of complementary info (context).
- * @param throwable the cause.
+ * @param cause the cause.
* @deprecated Use instead {@link #FileSystemException(String, Throwable, Object[])}. Will be removed in 3.0.
*/
@Deprecated
- public FileSystemException(final String code, final Object[] info, final Throwable throwable) {
- this(code, throwable, info);
+ public FileSystemException(final String code, final Object[] info, final Throwable cause) {
+ this(code, cause, info);
}
/**
@@ -158,10 +158,10 @@ public class FileSystemException extends IOException {
*
* @param code the error code of the message.
* @param info array of complementary info (context).
- * @param throwable the cause.
+ * @param cause the cause.
*/
- public FileSystemException(final String code, final Throwable throwable, final Object... info) {
- super(code, throwable);
+ public FileSystemException(final String code, final Throwable cause, final Object... info) {
+ super(code, cause);
if (info == null) {
this.info = ArrayUtils.EMPTY_STRING_ARRAY;
@@ -182,10 +182,10 @@ public class FileSystemException extends IOException {
/**
* Constructs wrapper exception.
*
- * @param throwable the root cause to wrap.
+ * @param cause the root cause to wrap.
*/
- public FileSystemException(final Throwable throwable) {
- this(throwable.getMessage(), throwable, (Object[]) null);
+ public FileSystemException(final Throwable cause) {
+ this(cause.getMessage(), cause, (Object[]) null);
}
/**