this.formats = new DateFormat[formatStrings.length];  for (int i=0; i<formatStrings.length; ++i) { this.formats[i] = new SimpleDateFormat(formatStrings[i], locale); this.formats[i].setLenient(false); }
this.formats = getDateFormats();
    public void setLocale(Locale locale) {        this.locale = locale;        this.formats = new DateFormat[formatStrings.length];        for (int i=0; i<formatStrings.length; ++i) {            this.formats[i] = new SimpleDateFormat(formatStrings[i], locale);            this.formats[i].setLenient(false);        }    }