You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2011/03/13 12:36:22 UTC

svn commit: r1081078 - in /ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay: EbayHelper.java EbayOrderServices.java

Author: mrisaliti
Date: Sun Mar 13 11:36:21 2011
New Revision: 1081078

URL: http://svn.apache.org/viewvc?rev=1081078&view=rev
Log:
Remove some reduntant cast warning in ebay component (OFBIZ-4102)

Modified:
    ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayHelper.java
    ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayOrderServices.java

Modified: ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayHelper.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayHelper.java?rev=1081078&r1=1081077&r2=1081078&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayHelper.java (original)
+++ ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayHelper.java Sun Mar 13 11:36:21 2011
@@ -214,7 +214,7 @@ public class EbayHelper {
                 if (UtilValidate.isNotEmpty(paymentPreferences)) {
                     Iterator<GenericValue> i = paymentPreferences.iterator();
                     while (i.hasNext()) {
-                        GenericValue pref = (GenericValue) i.next();
+                        GenericValue pref = i.next();
                         if (UtilValidate.isNotEmpty(amount)) {
                             pref.set("statusId", "PAYMENT_RECEIVED");
                             pref.set("maxAmount", amount);

Modified: ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayOrderServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayOrderServices.java?rev=1081078&r1=1081077&r2=1081078&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayOrderServices.java (original)
+++ ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayOrderServices.java Sun Mar 13 11:36:21 2011
@@ -1282,7 +1282,7 @@ public class EbayOrderServices {
         if (cart.size() != 0) {
             Iterator<ShoppingCartItem> cartiter = cart.iterator();
             while (cartiter != null && cartiter.hasNext()) {
-                ShoppingCartItem cartItem = (ShoppingCartItem) cartiter.next();
+                ShoppingCartItem cartItem = cartiter.next();
                 if (cartItem.getProductId().equals(productId)) {
                     previouslyAddedItemInCart = cartItem;
                 }