svn commit: r672673 - /ofbiz/trunk/framework/guiapp/src/org/ofbiz/guiapp/xui/XuiSession.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r672673 - /ofbiz/trunk/framework/guiapp/src/org/ofbiz/guiapp/xui/XuiSession.java

doogie-3
Author: doogie
Date: Sun Jun 29 13:36:17 2008
New Revision: 672673

URL: http://svn.apache.org/viewvc?rev=672673&view=rev
Log:
More generics.

Modified:
    ofbiz/trunk/framework/guiapp/src/org/ofbiz/guiapp/xui/XuiSession.java

Modified: ofbiz/trunk/framework/guiapp/src/org/ofbiz/guiapp/xui/XuiSession.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/guiapp/src/org/ofbiz/guiapp/xui/XuiSession.java?rev=672673&r1=672672&r2=672673&view=diff
==============================================================================
--- ofbiz/trunk/framework/guiapp/src/org/ofbiz/guiapp/xui/XuiSession.java (original)
+++ ofbiz/trunk/framework/guiapp/src/org/ofbiz/guiapp/xui/XuiSession.java Sun Jun 29 13:36:17 2008
@@ -18,10 +18,11 @@
  *******************************************************************************/
 package org.ofbiz.guiapp.xui;
 
-import java.util.HashMap;
 import java.util.Locale;
 import java.util.Map;
 
+import javolution.util.FastMap;
+
 import org.ofbiz.base.util.Debug;
 import org.ofbiz.base.util.GeneralException;
 import org.ofbiz.base.util.UtilMisc;
@@ -43,7 +44,7 @@
     protected LocalDispatcher dispatcher = null;
     protected GenericValue userLogin = null;
     protected XuiContainer container = null;
-    protected Map attributes = new HashMap();
+    protected Map<String, Object> attributes = FastMap.newInstance();
     protected String id = null;
     protected final boolean IS_SAME_LOGIN = UtilProperties.propertyValueEqualsIgnoreCase("xui.properties", "isSameLogin", "true");
     private Locale locale = (Locale) Locale.getDefault();
@@ -130,7 +131,7 @@
         }
 
         // call the login service
-        Map result = null;
+        Map<String, Object> result = null;
         try {
             result = dispatcher.runSync("userLogin", UtilMisc.toMap("login.username", username, "login.password", password));
         } catch (GenericServiceException e) {