question: return the locale associated with the current thread , if any , or the system default locale else . this is effectively a replacement for java.util.locale #getdefault , able to optionally respect a user-level locale setting . note : this method has a fallback to the system default locale . if you 'd like to check for the raw localecontext content which may indicate no specific locale through null , use #getlocalecontext and call localecontext #getlocale concode_field_sep ThreadLocal<LocaleContext> localeContextHolder concode_elem_sep ThreadLocal<LocaleContext> inheritableLocaleContextHolder concode_field_sep TimeZone getTimeZone concode_elem_sep LocaleContext getLocaleContext concode_elem_sep void setTimeZone concode_elem_sep void setTimeZone concode_elem_sep void setLocaleContext concode_elem_sep void setLocaleContext concode_elem_sep void setLocale concode_elem_sep void setLocale concode_elem_sep void resetLocaleContext
target: Locale function ( ) { LocaleContext loc0 = getLocaleContext ( ) ; if ( loc0 != null ) { Locale loc1 = loc0 . getLocale ( ) ; if ( loc1 != null ) { return loc1 ; } } return Locale . getDefault ( ) ; }