[portal-commits] JBoss Portal SVN: r8888 - modules/common/trunk/common/src/main/java/org/jboss/portal/common/i18n.

portal-commits at lists.jboss.org portal-commits at lists.jboss.org
Mon Nov 12 16:14:44 EST 2007


Author: chris.laprun at 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;
 




More information about the portal-commits mailing list