@SuppressWarnings("unchecked")
 public static List unserialize(String targetString) {
   if (targetString == null || targetString.equals("")) {
     return new ArrayList();
   }
   List result = null;
   try {
     result = (List) Serializer.unserialize(targetString, 0);
   } catch (Exception e) {
     e.printStackTrace();
   }
   return result;
 }
 @SuppressWarnings("unchecked")
 public static Map unserialize(String targetString, boolean isTreeMap) {
   if (targetString == null || targetString.equals("")) {
     return new HashMap();
   }
   Map resultMap = null;
   try {
     resultMap = (Map) Serializer.unserialize(targetString, isTreeMap ? 1 : 2);
   } catch (Exception e) {
     e.printStackTrace();
   }
   return resultMap;
 }
Exemple #3
0
package cn.jcenterhome.web.action.admin;