portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r507789 - /portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java
Date Thu, 15 Feb 2007 02:51:53 GMT
Author: taylor
Date: Wed Feb 14 18:51:53 2007
New Revision: 507789

URL: http://svn.apache.org/viewvc?view=rev&rev=507789
Log:
sync access

Modified:
    portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java

Modified: portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java?view=diff&rev=507789&r1=507788&r2=507789
==============================================================================
--- portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java
(original)
+++ portals/jetspeed-2/trunk/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java
Wed Feb 14 18:51:53 2007
@@ -25,6 +25,7 @@
 import java.util.Locale;
 import java.util.MissingResourceException;
 import java.util.ResourceBundle;
+import java.util.Set;
 import java.util.StringTokenizer;
 
 import org.apache.commons.lang.StringUtils;
@@ -55,7 +56,7 @@
     public static final String JAVAX_PORTLET_SHORT_TITLE = "javax.portlet.short-title";
     public static final String JAVAX_PORTLET_TITLE = "javax.portlet.title";
 
-    private HashSet keys;
+    private Set keys;
     private String title;
     private String shortTitle;
     private Locale locale;
@@ -72,7 +73,7 @@
 
     public LanguageImpl()
     {
-        keys = new HashSet(3);
+        keys = Collections.synchronizedSet(new HashSet(3));
         keys.add(JAVAX_PORTLET_TITLE);
         keys.add(JAVAX_PORTLET_SHORT_TITLE);
         keys.add(JAVAX_PORTLET_KEYWORDS);



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message