/** * Returns <tt>true</tt> if and only if the default resource bundle data is * stale for the given locale. This is used by <tt>I18nBean.CachingFactory</tt> * to flush the cache when the default resource bundle is modified. This * is only relevant in dev mode, as otherwise we will not have a * <tt>DebuggingResourceBundle</tt> and so can not reload it anyway. * * @param locale the locale within which to make the check * @return <tt>true</tt> if the data has to be reloaded; <tt>false</tt> * otherwise. */ public static boolean isDefaultResourceBundleStale(final Locale locale) { ResourceBundle resourceBundle = resourceBundleMap.get(locale); return resourceBundle instanceof DebuggingResourceBundle && ((DebuggingResourceBundle)resourceBundle).isStale(); } }
ResourceBundle resourceBundle = resourceBundleMap.get(locale); if (resourceBundle == null)