myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r811087 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
Date Thu, 03 Sep 2009 19:37:58 GMT
Author: lu4242
Date: Thu Sep  3 19:37:58 2009
New Revision: 811087

URL: http://svn.apache.org/viewvc?rev=811087&view=rev
Log:
when testing facesVersion could be null, check in inverse order to prevent it

Modified:
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java?rev=811087&r1=811086&r2=811087&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
(original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
Thu Sep  3 19:37:58 2009
@@ -1579,7 +1579,7 @@
         // Per spec section 11.1.3, the default value for the partial state saving feature
needs
         // to be true if 2.0, false otherwise.
         
-        partialStateSavingDefault = facesVersion.equals ("2.0");
+        partialStateSavingDefault = "2.0".equals(facesVersion);
         
         // In jsf 2.0 this code evolve as PartialStateSaving feature
         //_buildBeforeRestore = _getBooleanParameter(context, PARAM_BUILD_BEFORE_RESTORE,
false);



Mime
View raw message