myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject svn commit: r513514 - /myfaces/core/branches/jsf12/api/src/main/java/javax/faces/application/ViewHandler.java
Date Thu, 01 Mar 2007 23:15:18 GMT
Author: mbr
Date: Thu Mar  1 13:33:53 2007
New Revision: 513514

URL: http://svn.apache.org/viewvc?view=rev&rev=513514
Log:
avoid cast to String

Modified:
    myfaces/core/branches/jsf12/api/src/main/java/javax/faces/application/ViewHandler.java

Modified: myfaces/core/branches/jsf12/api/src/main/java/javax/faces/application/ViewHandler.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/jsf12/api/src/main/java/javax/faces/application/ViewHandler.java?view=diff&rev=513514&r1=513513&r2=513514
==============================================================================
--- myfaces/core/branches/jsf12/api/src/main/java/javax/faces/application/ViewHandler.java
(original)
+++ myfaces/core/branches/jsf12/api/src/main/java/javax/faces/application/ViewHandler.java
Thu Mar  1 13:33:53 2007
@@ -50,10 +50,10 @@
     		boolean _sessionAvailable = context.getExternalContext().getSession(false) != null;
     		if(_sessionAvailable)
     		{
-    			String _sessionParam = (String) context.getExternalContext().getSessionMap().get(CHARACTER_ENCODING_KEY);

+    			Object _sessionParam = context.getExternalContext().getSessionMap().get(CHARACTER_ENCODING_KEY);

     			if (_sessionParam != null)
     			{
-    				_encoding = _sessionParam;
+    				_encoding = _sessionParam.toString();
     			}
     		}
     	}



Mime
View raw message