You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Adam Heath <do...@brainfood.com> on 2010/08/02 19:16:08 UTC

Re: svn commit: r981179 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java

On 08/01/2010 03:52 AM, lektran@apache.org wrote:
> Author: lektran
> Date: Sun Aug  1 08:52:19 2010
> New Revision: 981179
>
> URL: http://svn.apache.org/viewvc?rev=981179&view=rev
> Log:
> Deprecate method that doesn't use its input parameter and add a new method that doesn't take one.

What is the method name, at the very least.  The commit message needs 
to kinda stand on it's own.

>
> Modified:
>      ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java
>
> Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java?rev=981179&r1=981178&r2=981179&view=diff
> ==============================================================================
> --- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java (original)
> +++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java Sun Aug  1 08:52:19 2010
> @@ -1133,7 +1133,7 @@ public class CheckOutHelper {
>           }
>       }
>
> -    public Map<String, Object>  checkOrderBlacklist(GenericValue userLogin) {
> +    public Map<String, Object>  checkOrderBlackList() {
>           if (cart == null) {
>               return ServiceUtil.returnSuccess("success");
>           }
> @@ -1201,6 +1201,11 @@ public class CheckOutHelper {
>           }
>       }
>
> +    @Deprecated
> +    public Map<String, Object>  checkOrderBlacklist(GenericValue userLogin) {
> +        return checkOrderBlackList();
> +    }
> +
>       public Map<String, Object>  failedBlacklistCheck(GenericValue userLogin, GenericValue productStore) {
>           Map<String, Object>  result;
>           String errMsg=null;
>
>


Re: svn commit: r981179 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java

Posted by Scott Gray <sc...@hotwaxmedia.com>.
On 3/08/2010, at 5:16 AM, Adam Heath wrote:

> On 08/01/2010 03:52 AM, lektran@apache.org wrote:
>> Author: lektran
>> Date: Sun Aug  1 08:52:19 2010
>> New Revision: 981179
>> 
>> URL: http://svn.apache.org/viewvc?rev=981179&view=rev
>> Log:
>> Deprecate method that doesn't use its input parameter and add a new method that doesn't take one.
> 
> What is the method name, at the very least.  The commit message needs to kinda stand on it's own.

Fair call, I've added extra info to the commit message.

Thanks
Scott

> 
>> 
>> Modified:
>>     ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java
>> 
>> Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java
>> URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java?rev=981179&r1=981178&r2=981179&view=diff
>> ==============================================================================
>> --- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java (original)
>> +++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java Sun Aug  1 08:52:19 2010
>> @@ -1133,7 +1133,7 @@ public class CheckOutHelper {
>>          }
>>      }
>> 
>> -    public Map<String, Object>  checkOrderBlacklist(GenericValue userLogin) {
>> +    public Map<String, Object>  checkOrderBlackList() {
>>          if (cart == null) {
>>              return ServiceUtil.returnSuccess("success");
>>          }
>> @@ -1201,6 +1201,11 @@ public class CheckOutHelper {
>>          }
>>      }
>> 
>> +    @Deprecated
>> +    public Map<String, Object>  checkOrderBlacklist(GenericValue userLogin) {
>> +        return checkOrderBlackList();
>> +    }
>> +
>>      public Map<String, Object>  failedBlacklistCheck(GenericValue userLogin, GenericValue productStore) {
>>          Map<String, Object>  result;
>>          String errMsg=null;
>> 
>> 
>