myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grantsm...@apache.org
Subject svn commit: r209493 - /myfaces/impl/trunk/src/java/org/apache/myfaces/context/servlet/ServletFacesContextImpl.java
Date Wed, 06 Jul 2005 18:34:20 GMT
Author: grantsmith
Date: Wed Jul  6 11:34:19 2005
New Revision: 209493

URL: http://svn.apache.org/viewcvs?rev=209493&view=rev
Log:
MYFACES-304 (continued): Use LinkedHashSet instead of HashSet to preserve the order in which
IDs are added (which gives better results in h:messages, etc.). 

Modified:
    myfaces/impl/trunk/src/java/org/apache/myfaces/context/servlet/ServletFacesContextImpl.java

Modified: myfaces/impl/trunk/src/java/org/apache/myfaces/context/servlet/ServletFacesContextImpl.java
URL: http://svn.apache.org/viewcvs/myfaces/impl/trunk/src/java/org/apache/myfaces/context/servlet/ServletFacesContextImpl.java?rev=209493&r1=209492&r2=209493&view=diff
==============================================================================
--- myfaces/impl/trunk/src/java/org/apache/myfaces/context/servlet/ServletFacesContextImpl.java
(original)
+++ myfaces/impl/trunk/src/java/org/apache/myfaces/context/servlet/ServletFacesContextImpl.java
Wed Jul  6 11:34:19 2005
@@ -53,7 +53,7 @@
 
     //~ Instance fields ----------------------------------------------------------------------------
 
-    List                                _messageClientIds = null;
+    private List                        _messageClientIds = null;
     private List                        _messages         = null;
     private Application                 _application;
     private ReleaseableExternalContext  _externalContext;
@@ -124,7 +124,7 @@
             return NullIterator.instance();
         }
 
-        Set uniqueClientIds = new HashSet(_messageClientIds);
+        Set uniqueClientIds = new LinkedHashSet(_messageClientIds);
         return uniqueClientIds.iterator();
     }
 



Mime
View raw message