public class ANRequestQueue {
private final static String TAG = ANRequestQueue.class.getSimpleName();
private final Set<ANRequest> mCurrentRequests = new HashSet<ANRequest>();
private AtomicInteger mSequenceGenerator = new AtomicInteger();
private static ANRequestQueue sInstance = null;
<BUG>private String userAgent = null;</BUG>
public static void initialize() {
getInstance();
}
public static ANRequestQueue getInstance() {
if (sInstance == null) {
<BUG>synchronized (ANRequestQueue.class) {
sInstance = new ANRequestQueue();</BUG>
}

public class ANRequestQueue {
private final static String TAG = ANRequestQueue.class.getSimpleName();
private final Set<ANRequest> mCurrentRequests = new HashSet<ANRequest>();
private AtomicInteger mSequenceGenerator = new AtomicInteger();
private static ANRequestQueue sInstance = null;
public static void initialize() {
getInstance();
}
public static ANRequestQueue getInstance() {
