if (context.dateFormat == null)
{
context.formatString = String.valueOf(formatStringRaw);
context.locale = locale;
context.timeZone = timeZone;
context.dateFormat = new FastDateFormat(context.formatString, locale, timeZone);
}
else
{
if (ObjectUtilities.equal(context.formatString, formatStringRaw) == false ||
ObjectUtilities.equal(context.locale, locale) == false ||
ObjectUtilities.equal(context.timeZone, timeZone) == false)
{
context.timeZone = timeZone;
context.locale = locale;
context.formatString = String.valueOf(formatStringRaw);
context.dateFormat = new FastDateFormat(context.formatString, locale, timeZone);
}
}
return context.dateFormat.format(retval);
}