You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2012/12/04 20:22:21 UTC

svn commit: r1417129 - /commons/proper/email/trunk/src/test/java/org/apache/commons/mail/InvalidInternetAddressTest.java

Author: sebb
Date: Tue Dec  4 19:22:21 2012
New Revision: 1417129

URL: http://svn.apache.org/viewvc?rev=1417129&view=rev
Log:
Varargs syntax

Modified:
    commons/proper/email/trunk/src/test/java/org/apache/commons/mail/InvalidInternetAddressTest.java

Modified: commons/proper/email/trunk/src/test/java/org/apache/commons/mail/InvalidInternetAddressTest.java
URL: http://svn.apache.org/viewvc/commons/proper/email/trunk/src/test/java/org/apache/commons/mail/InvalidInternetAddressTest.java?rev=1417129&r1=1417128&r2=1417129&view=diff
==============================================================================
--- commons/proper/email/trunk/src/test/java/org/apache/commons/mail/InvalidInternetAddressTest.java (original)
+++ commons/proper/email/trunk/src/test/java/org/apache/commons/mail/InvalidInternetAddressTest.java Tue Dec  4 19:22:21 2012
@@ -170,7 +170,7 @@ public class InvalidInternetAddressTest 
                 && (ARR_INVALID_EMAILS[i].indexOf("[", atIndex)  >= 0);
             try
             {
-                validateMethod.invoke(address, null);
+                validateMethod.invoke(address, (Object[]) null);
 
                 if (!(quoted || domainBracket))
                 {
@@ -190,7 +190,7 @@ public class InvalidInternetAddressTest 
         // test valid 'quoted' Email addresses
         try
         {
-            validateMethod.invoke(new InternetAddress(VALID_QUOTED_EMAIL, "Joe"), null);
+            validateMethod.invoke(new InternetAddress(VALID_QUOTED_EMAIL, "Joe"), (Object[]) null);
         }
         catch (Exception ex)
         {
@@ -228,7 +228,7 @@ public class InvalidInternetAddressTest 
 
             try
             {
-                validateMethod.invoke(address, null);
+                validateMethod.invoke(address, (Object[]) null);
                 if (!(quoted || domainBracket))
                 {
                     fail("Validate " + i + " passed: " + ARR_INVALID_EMAILS[i]);
@@ -251,7 +251,7 @@ public class InvalidInternetAddressTest 
         // test valid 'quoted' Email addresses
         try
         {
-            validateMethod.invoke(new InternetAddress(VALID_QUOTED_EMAIL, "Joe", "UTF-8"), null);
+            validateMethod.invoke(new InternetAddress(VALID_QUOTED_EMAIL, "Joe", "UTF-8"), (Object[]) null);
         }
         catch (Exception ex)
         {