ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doo...@apache.org
Subject svn commit: r709905 - /ofbiz/trunk/framework/service/src/org/ofbiz/service/DispatchContext.java
Date Sun, 02 Nov 2008 18:53:39 GMT
Author: doogie
Date: Sun Nov  2 10:53:38 2008
New Revision: 709905

URL: http://svn.apache.org/viewvc?rev=709905&view=rev
Log:
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;



Mime
View raw message