Vararging parseDate methods. LANG-396

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@925963 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2010-03-22 06:02:56 +00:00
parent 8d20f34c7d
commit 2c6e919e65
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}