Author: mrisaliti
Date: Wed Mar 2 20:02:41 2011
New Revision: 1076359
URL:
http://svn.apache.org/viewvc?rev=1076359&view=revLog:
Remove some warning from CoreEvents (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/CoreEvents.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/CoreEvents.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/CoreEvents.java?rev=1076359&r1=1076358&r2=1076359&view=diff==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/CoreEvents.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/CoreEvents.java Wed Mar 2 20:02:41 2011
@@ -474,7 +474,7 @@ public class CoreEvents {
}
servicePathMap = null;
- if (servicePathObject instanceof Map) {
+ if (servicePathObject instanceof Map<?, ?>) {
servicePathMap = checkMap(servicePathObject);
} else if (servicePathObject instanceof GenericEntity) {
GenericEntity servicePathEntity = (GenericEntity)servicePathObject;
@@ -482,7 +482,7 @@ public class CoreEvents {
for (Map.Entry<String, Object> entry: servicePathEntity.entrySet()) {
servicePathMap.put(entry.getKey(), entry.getValue());
}
- } else if (servicePathObject instanceof Collection) {
+ } else if (servicePathObject instanceof Collection<?>) {
Collection<?> servicePathColl = checkCollection(servicePathObject);
int count=0;
servicePathMap = FastMap.newInstance();