Author: kostat
Date: 2007-04-01 10:25:37 -0400 (Sun, 01 Apr 2007)
New Revision: 75262

Modified:
   
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.SessionState/ServletSessionStateStoreProvider.cs
Log:
use is unstead of casting

Modified: 
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.SessionState/ServletSessionStateStoreProvider.cs
===================================================================
--- 
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.SessionState/ServletSessionStateStoreProvider.cs
  2007-04-01 14:18:54 UTC (rev 75261)
+++ 
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.SessionState/ServletSessionStateStoreProvider.cs
  2007-04-01 14:25:37 UTC (rev 75262)
@@ -73,7 +73,7 @@
                        HttpSession session = GetSession (context, false, 
false);
                        if (session == null)
                                return null;
-                       ServletSessionStateItemCollection sessionState = 
(ServletSessionStateItemCollection) session.getAttribute 
(J2EEConsts.SESSION_STATE);
+                       ServletSessionStateItemCollection sessionState = 
session.getAttribute (J2EEConsts.SESSION_STATE) as 
ServletSessionStateItemCollection;
                        if (sessionState == null) //was not set
                                sessionState = new 
ServletSessionStateItemCollection (context);
                        return new SessionStateStoreData (

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to