Author: chris.laprun(a)jboss.com
Date: 2007-11-12 16:14:44 -0500 (Mon, 12 Nov 2007)
New Revision: 8888
Modified:
modules/common/trunk/common/src/main/java/org/jboss/portal/common/i18n/LocaleFormat.java
Log:
- Make *_NO_CACHE instances not cached and other instances cached.
Modified:
modules/common/trunk/common/src/main/java/org/jboss/portal/common/i18n/LocaleFormat.java
===================================================================
---
modules/common/trunk/common/src/main/java/org/jboss/portal/common/i18n/LocaleFormat.java 2007-11-12
20:57:56 UTC (rev 8887)
+++
modules/common/trunk/common/src/main/java/org/jboss/portal/common/i18n/LocaleFormat.java 2007-11-12
21:14:44 UTC (rev 8888)
@@ -36,16 +36,16 @@
{
/** . */
- final LocaleFormat RFC3066_LANGUAGE_TAG = new RFC3066LanguageTagLocaleFormat();
+ final LocaleFormat RFC3066_LANGUAGE_TAG_NO_CACHE = new
RFC3066LanguageTagLocaleFormat();
/** . */
- final LocaleFormat DEFAULT = new DefaultLocaleFormat();
+ final LocaleFormat DEFAULT_NO_CACHE = new DefaultLocaleFormat();
/** . */
- final LocaleFormat RFC3066_LANGUAGE_TAG_NO_CACHE = new CachingLocaleFormat(new
RFC3066LanguageTagLocaleFormat());
+ final LocaleFormat RFC3066_LANGUAGE_TAG = new CachingLocaleFormat(new
RFC3066LanguageTagLocaleFormat());
/** . */
- final LocaleFormat DEFAULT_NO_CACHE = new CachingLocaleFormat(new
DefaultLocaleFormat());
+ final LocaleFormat DEFAULT = new CachingLocaleFormat(new DefaultLocaleFormat());
Locale getLocale(String value) throws ConversionException;
Show replies by date