Author: mrisaliti
Date: Sun Mar 13 11:39:36 2011 New Revision: 1081080 URL: http://svn.apache.org/viewvc?rev=1081080&view=rev Log: Remove some reduntant cast warning in ebaystore component (OFBIZ-4102) Modified: ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayFeedback.java ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreAutoPreferences.java Modified: ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayFeedback.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayFeedback.java?rev=1081080&r1=1081079&r2=1081080&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayFeedback.java (original) +++ ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayFeedback.java Sun Mar 13 11:39:36 2011 @@ -130,7 +130,7 @@ public class EbayFeedback { userLoginEx.put("partyId", commentingPartyId); userLoginEx.create(); } else { - userLoginEx = (GenericValue)CommentingUserLogins.get(0); + userLoginEx = CommentingUserLogins.get(0); commentingPartyId = userLoginEx.getString("partyId"); } //DataResource Modified: ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java?rev=1081080&r1=1081079&r2=1081080&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java (original) +++ ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java Sun Mar 13 11:39:36 2011 @@ -600,10 +600,10 @@ public class EbayStore { try { List<GenericValue> productStores = delegator.findByAnd("ProductStoreRole", UtilMisc.toMap("productStoreId", productStoreId, "roleTypeId", "EBAY_ACCOUNT")); if (productStores.size() != 0) { - String partyId = ((GenericValue) productStores.get(0)).getString("partyId"); + String partyId = (productStores.get(0)).getString("partyId"); List<GenericValue> userLoginStore = delegator.findByAnd("UserLogin", UtilMisc.toMap("partyId", partyId)); if (userLoginStore.size() != 0) { - String userLoginId = ((GenericValue) userLoginStore.get(0)).getString("userLoginId"); + String userLoginId = (userLoginStore.get(0)).getString("userLoginId"); result.put("userLoginId", userLoginId); } } @@ -1761,7 +1761,7 @@ public class EbayStore { Map<String, Object> bidderTest = UtilGenerics.checkMap(getEbayAllBidders(dctx, serviceMap)); List<Map<String, String>> test = UtilGenerics.checkList(bidderTest.get("allBidders")); if (test.size() != 0) { - verify.setRecipientBidderUserID((String) test.get(0).get("userId")); + verify.setRecipientBidderUserID(test.get(0).get("userId")); } result.put("checkVerify", true); } catch (Exception e) { Modified: ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreAutoPreferences.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreAutoPreferences.java?rev=1081080&r1=1081079&r2=1081080&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreAutoPreferences.java (original) +++ ofbiz/trunk/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStoreAutoPreferences.java Sun Mar 13 11:39:36 2011 @@ -483,7 +483,7 @@ public class EbayStoreAutoPreferences { for (int itemRelist = 0; itemRelist < itemsToRelist.size(); itemRelist++) { RelistItemCall relistItemCall = new RelistItemCall(apiContext); ItemType itemToBeRelisted = new ItemType(); - GenericValue product = (GenericValue) itemsToRelist.get(itemRelist); + GenericValue product = itemsToRelist.get(itemRelist); itemToBeRelisted.setItemID(product.getString("productId")); relistItemCall.setItemToBeRelisted(itemToBeRelisted); relistItemCall.relistItem(); @@ -752,7 +752,7 @@ public class EbayStoreAutoPreferences { Enumeration<String> enums = h.keys(); String key = ""; while (enums.hasMoreElements()) { - key = (String) enums.nextElement(); + key = enums.nextElement(); List<Map<String, Object>> tempList = h.get(key); if (key.equals(buyerId)) { key = buyerId; @@ -847,7 +847,7 @@ public class EbayStoreAutoPreferences { total.setCurrencyID(currencyId); TransactionType[] transArr = new TransactionType[translist.size()]; for (int counter = 0; counter < translist.size(); counter++) { - transArr[counter] = (TransactionType) translist.get(counter); + transArr[counter] = translist.get(counter); } transactionArr.setTransaction(transArr); if (transactionArr.getTransactionLength() > 1) { |
Free forum by Nabble | Edit this page |