Author: doogie
Date: Sat Oct 20 20:57:48 2007
New Revision: 586851
URL:
http://svn.apache.org/viewvc?rev=586851&view=revLog:
getLocalServiceMap/getGlobalServiceMap are generified, so modify the
internal callers to take advantage of that.
Modified:
ofbiz/trunk/framework/service/src/org/ofbiz/service/DispatchContext.java
Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/DispatchContext.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/DispatchContext.java?rev=586851&r1=586850&r2=586851&view=diff==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/DispatchContext.java (original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/DispatchContext.java Sat Oct 20 20:57:48 2007
@@ -195,11 +195,11 @@
}
private ModelService getLocalModelService(String serviceName) throws GenericServiceException {
- Map serviceMap = this.getLocalServiceMap();
+ Map<String, ModelService> serviceMap = this.getLocalServiceMap();
ModelService retVal = null;
if (serviceMap != null) {
- retVal = (ModelService) serviceMap.get(serviceName);
+ retVal = serviceMap.get(serviceName);
if (retVal != null && !retVal.inheritedParameters()) {
retVal.interfaceUpdate(this);
}
@@ -209,11 +209,11 @@
}
private ModelService getGlobalModelService(String serviceName) throws GenericServiceException {
- Map serviceMap = this.getGlobalServiceMap();
+ Map<String, ModelService> serviceMap = this.getGlobalServiceMap();
ModelService retVal = null;
if (serviceMap != null) {
- retVal = (ModelService) serviceMap.get(serviceName);
+ retVal = serviceMap.get(serviceName);
if (retVal != null && !retVal.inheritedParameters()) {
retVal.interfaceUpdate(this);
}