Author: doogie
Date: Sun Nov 2 10:53:38 2008
New Revision: 709905
URL:
http://svn.apache.org/viewvc?rev=709905&view=revLog:
makeValidContext now takes a read-only context; the underlying
methods already did it this way, so this keeps calling code from
having to copy the context itself.
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=709905&r1=709904&r2=709905&view=diff==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/DispatchContext.java (original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/DispatchContext.java Sun Nov 2 10:53:38 2008
@@ -132,7 +132,7 @@
* @return Map contains any valid values
* @throws GenericServiceException
*/
- public Map<String, Object> makeValidContext(String serviceName, String mode, Map<String, Object> context) throws GenericServiceException {
+ public Map<String, Object> makeValidContext(String serviceName, String mode, Map<String, ? extends Object> context) throws GenericServiceException {
ModelService model = this.getModelService(serviceName);
return makeValidContext(model, mode, context);
@@ -147,7 +147,7 @@
* @return Map contains any valid values
* @throws GenericServiceException
*/
- public Map<String, Object> makeValidContext(ModelService model, String mode, Map<String, Object> context) throws GenericServiceException {
+ public Map<String, Object> makeValidContext(ModelService model, String mode, Map<String, ? extends Object> context) throws GenericServiceException {
Map<String, Object> newContext;
int modeInt = 0;