Author: mrisaliti
Date: Sat Jan 29 22:48:30 2011
New Revision: 1065136
URL:
http://svn.apache.org/viewvc?rev=1065136&view=revLog:
Remove some java compilation warnings of ContentManagementWorker (OFBIZ-4102)
Modified:
ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java
Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java?rev=1065136&r1=1065135&r2=1065136&view=diff==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java Sat Jan 29 22:48:30 2011
@@ -78,7 +78,7 @@ public class ContentManagementWorker {
return;
}
- Map<String, LifoSet> lookupCaches = UtilGenerics.checkMap(session.getAttribute("lookupCaches"));
+ Map<String, LifoSet<Object>> lookupCaches = UtilGenerics.checkMap(session.getAttribute("lookupCaches"));
if (lookupCaches == null) {
lookupCaches = FastMap.newInstance();
session.setAttribute("lookupCaches", lookupCaches);
@@ -95,26 +95,26 @@ public class ContentManagementWorker {
* @param lookupCaches
* @param pk either a GenericValue or GenericPK - populated
*/
- public static void mruAddByEntityName(String entityName, GenericEntity pk, Map<String, LifoSet> lookupCaches) {
+ public static void mruAddByEntityName(String entityName, GenericEntity pk, Map<String, LifoSet<Object>> lookupCaches) {
String cacheEntityName = entityName;
- LifoSet lkupCache = (LifoSet)lookupCaches.get(cacheEntityName);
+ LifoSet<Object> lkupCache = lookupCaches.get(cacheEntityName);
if (lkupCache == null) {
- lkupCache = new LifoSet();
+ lkupCache = new LifoSet<Object>();
lookupCaches.put(cacheEntityName, lkupCache);
}
lkupCache.add(pk.getPrimaryKey());
if (Debug.infoOn()) Debug.logInfo("in mruAddByEntityName, entityName:" + entityName + " lifoSet.size()" + lkupCache.size(), module);
}
- public static Iterator<LifoSet> mostRecentlyViewedIterator(String entityName, Map<String, LifoSet> lookupCaches) {
+ public static Iterator<Object> mostRecentlyViewedIterator(String entityName, Map<String, LifoSet<Object>> lookupCaches) {
String cacheEntityName = entityName;
- LifoSet lkupCache = (LifoSet)lookupCaches.get(cacheEntityName);
+ LifoSet<Object> lkupCache = lookupCaches.get(cacheEntityName);
if (lkupCache == null) {
- lkupCache = new LifoSet();
+ lkupCache = new LifoSet<Object>();
lookupCaches.put(cacheEntityName, lkupCache);
}
- Iterator<LifoSet> mrvIterator = lkupCache.iterator();
+ Iterator<Object> mrvIterator = lkupCache.iterator();
return mrvIterator;
}