[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-commons-dev
Subject: (commons-vfs) branch release updated: Reuse ArrayUtils
From: ggregory () apache ! org
Date: 2024-03-31 19:42:52
Message-ID: 171191417273.510185.16426081244957005889 () gitbox2-he-fi ! apache ! org
[Download RAW message or body]
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 <garydgregory@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];
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic