Author: bayard
Date: Mon Mar 22 06:02:56 2010
New Revision: 925963

URL: http://svn.apache.org/viewvc?rev=925963&view=rev
Log:
Vararging parseDate methods. LANG-396

Modified:
    
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateUtils.java

Modified: 
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateUtils.java?rev=925963&r1=925962&r2=925963&view=diff
==============================================================================
--- 
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateUtils.java
 (original)
+++ 
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateUtils.java
 Mon Mar 22 06:02:56 2010
@@ -284,7 +284,7 @@ public class DateUtils {
      * @throws IllegalArgumentException if the date string or pattern array is 
null
      * @throws ParseException if none of the date patterns were suitable (or 
there were none)
      */
-    public static Date parseDate(String str, String[] parsePatterns) throws 
ParseException {
+    public static Date parseDate(String str, String... parsePatterns) throws 
ParseException {
         return parseDateWithLeniency(str, parsePatterns, true);
     }
     
@@ -304,7 +304,7 @@ public class DateUtils {
      * @throws ParseException if none of the date patterns were suitable
      * @since 2.5
      */
-    public static Date parseDateStrictly(String str, String[] parsePatterns) 
throws ParseException {
+    public static Date parseDateStrictly(String str, String... parsePatterns) 
throws ParseException {
         return parseDateWithLeniency(str, parsePatterns, false);
     }
 


Reply via email to