@Override public synchronized boolean isLenient() { return format.isLenient(); }
/** * {@inheritDoc} * * @deprecated as it is not considered to be thread safe. */ @Deprecated @Override public boolean isLenient() { return super.isLenient(); }
public boolean isLenient() { return localSimpleDateFormat.get().isLenient(); }
public boolean isLenient() { return localSimpleDateFormat.get().isLenient(); }
/** * Returns the lenient flag for the date format * @return true if lenient */ public boolean isLenient() { lenient = getDateFormat().isLenient(); return lenient; }
/** * Sets the "lenient" flag for the date format. * * @param lenient true if lenient * @see SimpleDateFormat */ public void setLenient(boolean lenient) { getDateFormat().setLenient(lenient); this.lenient = dateFormat.isLenient(); }
private Date parse(final String _s, final Collection _formatters) throws ParseException { ParseException firstParseException = null; for (final Iterator i = _formatters.iterator(); i.hasNext();) { final SimpleDateFormat formatter = (SimpleDateFormat) i.next(); if (verbose_) { System.out.println(_s + " -- " + formatter.toPattern() + (formatter.isLenient() ? "lenient" : "")); } try { return parse(_s, formatter); } catch (final ParseException e) { if (firstParseException == null) { firstParseException = e; } } } throw firstParseException; }