Skip to content

Commit

Permalink
JBTM-1064: Removed unnecessary wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Radesh Rao committed Mar 16, 2012
1 parent 47acf88 commit f0a0947
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
import java.net.URI;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

Expand Down Expand Up @@ -64,9 +62,9 @@ public class Coordinator
{
protected final static Logger log = Logger.getLogger(Coordinator.class);

private static Map<String, Transaction> transactions = Collections.synchronizedMap(new ConcurrentHashMap<String, Transaction>());
private static Map<String, Transaction> transactions = new ConcurrentHashMap<String, Transaction>();
// each participant may only be enlisted in one transaction
private static Map<String, LinkHolder> participants = Collections.synchronizedMap(new ConcurrentHashMap<String, LinkHolder>());
private static Map<String, LinkHolder> participants = new ConcurrentHashMap<String, LinkHolder>();

/**
* Performing a GET on the transaction-manager returns a list of all transaction URIs
Expand Down

0 comments on commit f0a0947

Please sign in to comment.