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-logging.git


The following commit(s) were added to refs/heads/master by this push:
     new 7bd8617  Use varargs.
7bd8617 is described below

commit 7bd861788d46079539f35cc999b103eb2e5880fc
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Feb 28 17:54:22 2021 -0500

    Use varargs.
---
 src/test/java/org/apache/commons/logging/LoadTestCase.java            | 2 +-
 .../org/apache/commons/logging/security/SecurityAllowedTestCase.java  | 4 ++--
 .../apache/commons/logging/security/SecurityForbiddenTestCase.java    | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/test/java/org/apache/commons/logging/LoadTestCase.java 
b/src/test/java/org/apache/commons/logging/LoadTestCase.java
index bc1308b..fdeba6c 100644
--- a/src/test/java/org/apache/commons/logging/LoadTestCase.java
+++ b/src/test/java/org/apache/commons/logging/LoadTestCase.java
@@ -106,7 +106,7 @@ public class LoadTestCase extends TestCase{
     private void setAllowFlawedContext(final Class c, final String state) 
throws Exception {
         final Class[] params = {String.class};
         final java.lang.reflect.Method m = 
c.getDeclaredMethod("setAllowFlawedContext", params);
-        m.invoke(null, new Object[] {state});
+        m.invoke(null, state);
     }
 
     /**
diff --git 
a/src/test/java/org/apache/commons/logging/security/SecurityAllowedTestCase.java
 
b/src/test/java/org/apache/commons/logging/security/SecurityAllowedTestCase.java
index f9dfc05..d17b43b 100644
--- 
a/src/test/java/org/apache/commons/logging/security/SecurityAllowedTestCase.java
+++ 
b/src/test/java/org/apache/commons/logging/security/SecurityAllowedTestCase.java
@@ -99,8 +99,8 @@ public class SecurityAllowedTestCase extends TestCase
             // initializer for the LogFactory class is executed.
             final Class c = this.getClass().getClassLoader().loadClass(
                     "org.apache.commons.logging.LogFactory");
-            final Method m = c.getMethod("getLog", new Class[] {Class.class});
-            final Log log = (Log) m.invoke(null, new Object[] 
{this.getClass()});
+            final Method m = c.getMethod("getLog", Class.class);
+            final Log log = (Log) m.invoke(null, this.getClass());
 
             // Check whether we had any security exceptions so far (which were
             // caught by the code). We should not, as every secure operation
diff --git 
a/src/test/java/org/apache/commons/logging/security/SecurityForbiddenTestCase.java
 
b/src/test/java/org/apache/commons/logging/security/SecurityForbiddenTestCase.java
index b81cf1d..a6d5df3 100644
--- 
a/src/test/java/org/apache/commons/logging/security/SecurityForbiddenTestCase.java
+++ 
b/src/test/java/org/apache/commons/logging/security/SecurityForbiddenTestCase.java
@@ -110,8 +110,8 @@ public class SecurityForbiddenTestCase extends TestCase
             // initializer for the LogFactory class is executed.
             final Class c = this.getClass().getClassLoader().loadClass(
                     "org.apache.commons.logging.LogFactory");
-            final Method m = c.getMethod("getLog", new Class[] {Class.class});
-            final Log log = (Log) m.invoke(null, new Object[] 
{this.getClass()});
+            final Method m = c.getMethod("getLog", Class.class);
+            final Log log = (Log) m.invoke(null, this.getClass());
             log.info("testing");
 
             // check that the default map implementation was loaded, as JCL was

Reply via email to