diff options
author | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-05-08 10:51:58 +0000 |
---|---|---|
committer | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-05-08 10:51:58 +0000 |
commit | ba7e2b2cbc0277a5cb79f5960400f37adcc97198 (patch) | |
tree | fca5d3293fb0acbfe7683a8fe9be2b918b776c5f /sca-java-1.x/trunk/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiVersionedCustomerImpl.java | |
parent | 36e4e5cbb71849b33da69924169f94e3a5161b19 (diff) |
Make outstandingOrders list synchronized (TUSCANY-3550)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@942356 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/trunk/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiVersionedCustomerImpl.java')
-rw-r--r-- | sca-java-1.x/trunk/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiVersionedCustomerImpl.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sca-java-1.x/trunk/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiVersionedCustomerImpl.java b/sca-java-1.x/trunk/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiVersionedCustomerImpl.java index 599ab51a50..ebb9bc56ef 100644 --- a/sca-java-1.x/trunk/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiVersionedCustomerImpl.java +++ b/sca-java-1.x/trunk/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiVersionedCustomerImpl.java @@ -20,7 +20,9 @@ package supplychain.customer; import java.util.ArrayList; +import java.util.Collections; import java.util.Hashtable; +import java.util.List; import org.osgi.framework.BundleContext; @@ -32,7 +34,7 @@ import supplychain.retailer.Retailer; */ public class OSGiVersionedCustomerImpl extends OSGiBundleImpl implements Customer { - private static ArrayList<String> outstandingOrders = new ArrayList<String>(); + private static List<String> outstandingOrders = Collections.synchronizedList(new ArrayList<String>()); private Retailer retailer1; private Retailer retailer2; |