Vararging parseDate methods. LANG-396
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@925963 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/commons/lang3/time/DateUtils.java b/src/main/java/org/apache/commons/lang3/time/DateUtils.java
index f6c2ada..3cd4b4b 100644
--- a/src/main/java/org/apache/commons/lang3/time/DateUtils.java
+++ b/src/main/java/org/apache/commons/lang3/time/DateUtils.java
@@ -284,7 +284,7 @@
* @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 @@
* @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);
}