myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1215305 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/el/unified/resolver/implicitobject/ImplicitObjectResolver.java
Date Fri, 16 Dec 2011 21:51:23 GMT
Author: lu4242
Date: Fri Dec 16 21:51:23 2011
New Revision: 1215305

URL: http://svn.apache.org/viewvc?rev=1215305&view=rev
Log:
MYFACES-3425 [perf] enhance code applying best practices

Modified:
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/el/unified/resolver/implicitobject/ImplicitObjectResolver.java

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/el/unified/resolver/implicitobject/ImplicitObjectResolver.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/el/unified/resolver/implicitobject/ImplicitObjectResolver.java?rev=1215305&r1=1215304&r2=1215305&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/el/unified/resolver/implicitobject/ImplicitObjectResolver.java
(original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/el/unified/resolver/implicitobject/ImplicitObjectResolver.java
Fri Dec 16 21:51:23 2011
@@ -44,7 +44,7 @@ public class ImplicitObjectResolver exte
      */
     public static ELResolver makeResolverForJSP()
     {
-        Map<String, ImplicitObject> forJSPList = new HashMap<String, ImplicitObject>(2);
+        Map<String, ImplicitObject> forJSPList = new HashMap<String, ImplicitObject>(4);//2
         ImplicitObject io1 = new FacesContextImplicitObject();
         forJSPList.put(io1.getName(), io1);
         ImplicitObject io2 = new ViewImplicitObject();
@@ -57,7 +57,7 @@ public class ImplicitObjectResolver exte
      */
     public static ELResolver makeResolverForFaces()
     {
-        Map<String, ImplicitObject> forFacesList = new HashMap<String, ImplicitObject>(14);
+        Map<String, ImplicitObject> forFacesList = new HashMap<String, ImplicitObject>(30);//14
         ImplicitObject io1 = new ApplicationImplicitObject();
         forFacesList.put(io1.getName(), io1);
         ImplicitObject io2 = new ApplicationScopeImplicitObject();



Mime
View raw message