This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch release
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git


The following commit(s) were added to refs/heads/release by this push:
     new 236ae183 Reuse ArrayUtils
236ae183 is described below

commit 236ae183c15815bd984fe9918015233ce67e5ef0
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Mar 31 15:42:48 2024 -0400

    Reuse ArrayUtils
---
 .../src/main/java/org/apache/commons/vfs2/FileSystemException.java     | 3 +--
 1 file changed, 1 insertion(+), 2 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 41e6e93c..13a2dd18 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
@@ -162,8 +162,7 @@ public class FileSystemException extends IOException {
      */
     public FileSystemException(final String code, final Throwable cause, final 
Object... info) {
         super(code, cause);
-
-        if (info == null) {
+        if (ArrayUtils.isEmpty(info)) {
             this.info = ArrayUtils.EMPTY_STRING_ARRAY;
         } else {
             this.info = new String[info.length];

Reply via email to