diff --git a/applications/accounting/src/org/ofbiz/accounting/thirdparty/gosoftware/RitaApi.java b/applications/accounting/src/org/ofbiz/accounting/thirdparty/gosoftware/RitaApi.java index 2a10733aff..1709a0aa3e 100644 --- a/applications/accounting/src/org/ofbiz/accounting/thirdparty/gosoftware/RitaApi.java +++ b/applications/accounting/src/org/ofbiz/accounting/thirdparty/gosoftware/RitaApi.java @@ -19,6 +19,8 @@ package org.ofbiz.accounting.thirdparty.gosoftware; import java.io.IOException; +import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.Map; import org.ofbiz.base.util.Debug; @@ -27,9 +29,6 @@ import org.ofbiz.base.util.HttpClient; import org.ofbiz.base.util.HttpClientException; import org.ofbiz.base.util.ObjectType; -import org.apache.commons.collections.MapIterator; -import org.apache.commons.collections.map.LinkedMap; - public class RitaApi { @@ -93,19 +92,19 @@ public class RitaApi { protected static final int MODE_IN = 10; // instance variables - protected LinkedMap document = null; + protected LinkedHashMap document = null; protected String host = null; protected boolean ssl = false; protected int port = 0; protected int mode = 0; public RitaApi(Map document) { - this.document = new LinkedMap(document); + this.document = new LinkedHashMap(document); this.mode = MODE_OUT; } public RitaApi() { - this.document = new LinkedMap(); + this.document = new LinkedHashMap(); this.mode = MODE_IN; } @@ -151,10 +150,11 @@ public class RitaApi { public String toString() { StringBuffer buf = new StringBuffer(); - MapIterator i = document.mapIterator(); + Iterator i = document.entrySet().iterator(); while (i.hasNext()) { - String name = (String) i.next(); - String value = (String) i.getValue(); + Map.Entry entry = (Map.Entry) i.next(); + String name = (String) entry.getKey(); + String value = (String) entry.getValue(); buf.append(name); buf.append(" "); buf.append(value); @@ -198,7 +198,7 @@ public class RitaApi { ps.flush(); // the output map - LinkedMap docMap = new LinkedMap(); + LinkedHashMap docMap = new LinkedHashMap(); String line; // read the response @@ -226,7 +226,7 @@ public class RitaApi { br.close(); */ - LinkedMap docMap = new LinkedMap(); + LinkedHashMap docMap = new LinkedHashMap(); String resp = null; try { resp = http.post(stream); diff --git a/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java b/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java index 92b03411e1..89883bfac7 100644 --- a/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java +++ b/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java @@ -20,7 +20,6 @@ package org.ofbiz.order.shoppingcart; import javolution.util.FastList; import javolution.util.FastMap; -import org.apache.commons.collections.map.LinkedMap; import org.ofbiz.base.util.*; import org.ofbiz.entity.GenericDelegator; import org.ofbiz.entity.GenericEntityException; @@ -4195,7 +4194,7 @@ public class ShoppingCart implements Serializable { } public static class CartShipInfo implements Serializable { - public LinkedMap shipItemInfo = new LinkedMap(); + public LinkedHashMap shipItemInfo = new LinkedHashMap(); public List shipTaxAdj = new LinkedList(); public String orderTypeId = null; private String internalContactMechId = null;