commit | 236ae183c15815bd984fe9918015233ce67e5ef0 | [log] [tgz] |
---|---|---|
author | Gary Gregory <garydgregory@gmail.com> | Sun Mar 31 15:42:48 2024 -0400 |
committer | Gary Gregory <garydgregory@gmail.com> | Sun Mar 31 15:42:48 2024 -0400 |
tree | 476389bf3be17e6bdd6d06336b6f8c3df4e46895 | |
parent | 6aec37ad5fdcd4d0f2ca0330f310eb48a1585462 [diff] |
Reuse ArrayUtils
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 41e6e93..13a2dd1 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 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];