~ubuntu-branches/ubuntu/oneiric/icedtea-web/oneiric

« back to all changes in this revision

Viewing changes to netx/net/sourceforge/jnlp/cache/ResourceTracker.java

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-04-06 13:10:44 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20110406131044-6jky8obchc43cf02
Tags: 1.1~20110406-0ubuntu1
Fix typo in icedtea-netx postinst to install the javaws alternative.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
import java.net.URL;
30
30
import java.net.URLConnection;
31
31
import java.util.ArrayList;
32
 
import java.util.HashMap;
33
32
import java.util.List;
34
 
import java.util.Map;
 
33
import java.util.concurrent.ConcurrentHashMap;
35
34
import java.util.jar.JarOutputStream;
36
35
import java.util.jar.Pack200;
37
36
import java.util.jar.Pack200.Unpacker;
120
119
    /** resources requested to be downloaded */
121
120
    private static ArrayList<Resource> queue = new ArrayList<Resource>();
122
121
 
123
 
    private static Map<Resource, DownloadOptions> downloadOptions =
124
 
        new HashMap<Resource, DownloadOptions>();
 
122
    private static ConcurrentHashMap<Resource, DownloadOptions> downloadOptions =
 
123
        new ConcurrentHashMap<Resource, DownloadOptions>();
125
124
 
126
125
    /** resource trackers threads are working for (used for load balancing across multi-tracker downloads) */
127
126
    private static ArrayList<ResourceTracker> active =