Javadoc correction
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@902948 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d0b2568ee1
commit
a6c13a17c0
|
@ -298,15 +298,14 @@ public class DateUtils {
|
||||||
*
|
*
|
||||||
* @param str the date to parse, not null
|
* @param str the date to parse, not null
|
||||||
* @param parsePatterns the date format patterns to use, see SimpleDateFormat, not null
|
* @param parsePatterns the date format patterns to use, see SimpleDateFormat, not null
|
||||||
* @param lenient Specify whether or not date/time parsing is to be lenient.
|
|
||||||
* @return the parsed date
|
* @return the parsed date
|
||||||
* @throws IllegalArgumentException if the date string or pattern array is null
|
* @throws IllegalArgumentException if the date string or pattern array is null
|
||||||
* @throws ParseException if none of the date patterns were suitable
|
* @throws ParseException if none of the date patterns were suitable
|
||||||
* @see java.util.Calender#isLenient()
|
|
||||||
*/
|
*/
|
||||||
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);
|
return parseDateWithLeniency(str, parsePatterns, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Date parseDateWithLeniency(String str, String[] parsePatterns,
|
private static Date parseDateWithLeniency(String str, String[] parsePatterns,
|
||||||
boolean lenient) throws ParseException {
|
boolean lenient) throws ParseException {
|
||||||
if (str == null || parsePatterns == null) {
|
if (str == null || parsePatterns == null) {
|
||||||
|
|
Loading…
Reference in New Issue