diff options
Diffstat (limited to 'sca-java-1.x/trunk/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiCustomerComponentImpl.java')
-rw-r--r-- | sca-java-1.x/trunk/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiCustomerComponentImpl.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/OSGiCustomerComponentImpl.java b/sca-java-1.x/trunk/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiCustomerComponentImpl.java index a879505610..c273f7b174 100644 --- a/sca-java-1.x/trunk/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiCustomerComponentImpl.java +++ b/sca-java-1.x/trunk/itest/osgi-implementation/src/main/java/supplychain/customer/OSGiCustomerComponentImpl.java @@ -20,6 +20,8 @@ package supplychain.customer; import java.util.ArrayList; +import java.util.Collections; +import java.util.List; import org.osgi.service.component.ComponentContext; @@ -36,7 +38,7 @@ public class OSGiCustomerComponentImpl implements Customer { private Retailer retailer2; private Retailer retailer3; - private static ArrayList<String> outstandingOrders = new ArrayList<String>(); + private static List<String> outstandingOrders = Collections.synchronizedList(new ArrayList<String>()); public OSGiCustomerComponentImpl() { System.out.println("Created OSGiCustomerComponentImpl " + this); |