https://bz.apache.org/bugzilla/show_bug.cgi?id=59805
--- Comment #6 from [email protected] --- Thank you for your quick response. Looking at the code, and I think it's better to remove initialValue from ThreadLocal, and make getUserTimeZone/getUserLocal return default when nothing has been set, like this: public static TimeZone getUserTimeZone() { TimeZone timeZone = userTimeZone.get(); return (timeZone != null) ? timeZone : TimeZone.getDefault(); } Otherwise, users need to call resetUserTimeZone/resetUserLocale to avoid memory leaks even when they have not called setUserTimeZone/setUserLocale. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
