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
The following commit(s) were added to refs/heads/master by this push:
new d200347 Use varargs.
new c05755e Merge branch 'master' of
https://gitbox.apache.org/repos/asf/commons-vfs
d200347 is described below
commit d200347ae569e11fcc08c45ed4290965a1786ade
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Feb 28 18:26:25 2021 -0500
Use varargs.
---
.../org/apache/commons/vfs2/provider/webdav/ExceptionConverter.java | 4 ++--
.../org/apache/commons/vfs2/provider/webdav4/ExceptionConverter.java | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/commons-vfs2-jackrabbit1/src/main/java/org/apache/commons/vfs2/provider/webdav/ExceptionConverter.java
b/commons-vfs2-jackrabbit1/src/main/java/org/apache/commons/vfs2/provider/webdav/ExceptionConverter.java
index 7c9caea..05c1fa8 100644
---
a/commons-vfs2-jackrabbit1/src/main/java/org/apache/commons/vfs2/provider/webdav/ExceptionConverter.java
+++
b/commons-vfs2-jackrabbit1/src/main/java/org/apache/commons/vfs2/provider/webdav/ExceptionConverter.java
@@ -53,9 +53,9 @@ public final class ExceptionConverter {
}
if (DomUtil.hasChildElement(exc, "class", null)) {
final Class<?> cl =
Class.forName(DomUtil.getChildText(exc, "class", null));
- final Constructor<?> excConstr = cl.getConstructor(new
Class[] { String.class });
+ final Constructor<?> excConstr =
cl.getConstructor(String.class);
if (excConstr != null) {
- final Object o = excConstr.newInstance(new
Object[] { msg });
+ final Object o = excConstr.newInstance(msg);
if (o instanceof FileSystemException) {
return (FileSystemException) o;
} else if (o instanceof Exception) {
diff --git
a/commons-vfs2-jackrabbit2/src/main/java/org/apache/commons/vfs2/provider/webdav4/ExceptionConverter.java
b/commons-vfs2-jackrabbit2/src/main/java/org/apache/commons/vfs2/provider/webdav4/ExceptionConverter.java
index 54ace5c..5bccfb4 100644
---
a/commons-vfs2-jackrabbit2/src/main/java/org/apache/commons/vfs2/provider/webdav4/ExceptionConverter.java
+++
b/commons-vfs2-jackrabbit2/src/main/java/org/apache/commons/vfs2/provider/webdav4/ExceptionConverter.java
@@ -47,9 +47,9 @@ public final class ExceptionConverter {
}
if (DomUtil.hasChildElement(exc, "class", null)) {
final Class<?> cl =
Class.forName(DomUtil.getChildText(exc, "class", null));
- final Constructor<?> excConstr = cl.getConstructor(new
Class[] { String.class });
+ final Constructor<?> excConstr =
cl.getConstructor(String.class);
if (excConstr != null) {
- final Object o = excConstr.newInstance(new
Object[] { msg });
+ final Object o = excConstr.newInstance(msg);
if (o instanceof FileSystemException) {
return (FileSystemException) o;
} else if (o instanceof Exception) {