commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject [commons-configuration] 02/02: Remove unnecessary array creation for varargs.
Date Wed, 18 Dec 2019 20:58:09 GMT
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-configuration.git

commit 17f561af7fa5212490148de89f1c526814f8e349
Author: Gary Gregory <garydgregory@gmail.com>
AuthorDate: Wed Dec 18 15:58:03 2019 -0500

    Remove unnecessary array creation for varargs.
---
 .../java/org/apache/commons/configuration2/TestDataConfiguration.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/configuration2/TestDataConfiguration.java b/src/test/java/org/apache/commons/configuration2/TestDataConfiguration.java
index 8f54e8e..e70d0f2 100644
--- a/src/test/java/org/apache/commons/configuration2/TestDataConfiguration.java
+++ b/src/test/java/org/apache/commons/configuration2/TestDataConfiguration.java
@@ -1914,7 +1914,7 @@ public class TestDataConfiguration
     private Object createInternetAddress(final String email) throws Exception
     {
         final Class<?> cls = Class.forName("javax.mail.internet.InternetAddress");
-        return cls.getConstructor(new Class[]{String.class}).newInstance(new Object[]{email});
+        return cls.getConstructor(new Class[] { String.class }).newInstance(email);
     }
 
     @Test


Mime
View raw message