diff options
Diffstat (limited to 'org.eclipse.help.base/src/org/eclipse/help/internal/protocols/HelpURLConnection.java')
-rw-r--r-- | org.eclipse.help.base/src/org/eclipse/help/internal/protocols/HelpURLConnection.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/protocols/HelpURLConnection.java b/org.eclipse.help.base/src/org/eclipse/help/internal/protocols/HelpURLConnection.java index c12e02f17..412af056f 100644 --- a/org.eclipse.help.base/src/org/eclipse/help/internal/protocols/HelpURLConnection.java +++ b/org.eclipse.help.base/src/org/eclipse/help/internal/protocols/HelpURLConnection.java @@ -50,7 +50,7 @@ public class HelpURLConnection extends URLConnection { private final static String PATH_RTOPIC = "/rtopic"; //$NON-NLS-1$ private static final String PROTOCOL_HTTP = "http://"; //$NON-NLS-1$ - private static Hashtable<String, String[]> templates = new Hashtable<String, String[]>(); + private static Hashtable templates = new Hashtable(); // document caching - disabled if running in dev mode protected static boolean cachingEnabled = true; @@ -66,7 +66,7 @@ public class HelpURLConnection extends URLConnection { protected String pluginAndFile; // plugin/file protected String query; // after ? - protected HashMap<String, Object> arguments; + protected HashMap arguments; protected Bundle plugin; // file in a plug-in protected String file; @@ -172,7 +172,7 @@ public class HelpURLConnection extends URLConnection { return isCacheable() ? new Date().getTime() + 10000 : 0; } - public static void parseQuery(String query, HashMap<String, Object> arguments) { + public static void parseQuery(String query, HashMap arguments) { StringTokenizer stok = new StringTokenizer(query, "&"); //$NON-NLS-1$ while (stok.hasMoreTokens()) { String aQuery = stok.nextToken(); @@ -184,10 +184,10 @@ public class HelpURLConnection extends URLConnection { if (existing == null) arguments.put(arg, val); else if (existing instanceof Vector) { - ((Vector<String>) existing).add(val); + ((Vector) existing).add(val); arguments.put(arg, existing); } else { - Vector<Object> v = new Vector<Object>(2); + Vector v = new Vector(2); v.add(existing); v.add(val); arguments.put(arg, v); @@ -203,7 +203,7 @@ public class HelpURLConnection extends URLConnection { protected void parseQuery() { if (query != null && !"".equals(query)) { //$NON-NLS-1$ if (arguments == null) { - arguments = new HashMap<String, Object>(5); + arguments = new HashMap(5); } parseQuery(query, arguments); } @@ -427,7 +427,7 @@ public class HelpURLConnection extends URLConnection { private InputStream openRemoteStream(String remoteURL, String pathSuffix) { InputStream in = getUnverifiedStream(remoteURL,pathSuffix); - String errPage[] = templates.get(remoteURL); + String errPage[] = (String[])templates.get(remoteURL); if (errPage==null) { String error = getPageText(getUnverifiedStream(remoteURL,"/rtopic/fakeurltogetatestpage/_ACEGIKMOQ246.html")); //$NON-NLS-1$ |