Author: j16sdiz
Date: 2009-02-13 14:59:35 +0000 (Fri, 13 Feb 2009)
New Revision: 25621
Modified:
trunk/freenet/src/freenet/clients/http/filter/ContentFilter.java
trunk/freenet/src/freenet/clients/http/filter/GenericReadFilterCallback.java
Log:
generic-related warnings
Modified: trunk/freenet/src/freenet/clients/http/filter/ContentFilter.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/filter/ContentFilter.java
2009-02-13 14:59:01 UTC (rev 25620)
+++ trunk/freenet/src/freenet/clients/http/filter/ContentFilter.java
2009-02-13 14:59:35 UTC (rev 25621)
@@ -24,7 +24,7 @@
*/
public class ContentFilter {
- static final Hashtable mimeTypesByName = new Hashtable();
+ static final Hashtable<String, MIMEType> mimeTypesByName = new
Hashtable<String, MIMEType>();
static {
init();
@@ -106,7 +106,7 @@
}
public static MIMEType getMIMEType(String mimeType) {
- return (MIMEType) mimeTypesByName.get(mimeType);
+ return mimeTypesByName.get(mimeType);
}
public static class FilterOutput {
@@ -142,7 +142,7 @@
String type = typeName;
String options = "";
String charset = null;
- HashMap otherParams = null;
+ HashMap<String, String> otherParams = null;
// First parse the MIME type
@@ -165,7 +165,8 @@
if(before.equals("charset")) {
charset = after;
} else {
- if(otherParams == null) otherParams =
new HashMap();
+ if (otherParams == null)
+ otherParams = new
HashMap<String, String>();
otherParams.put(before, after);
}
}
Modified:
trunk/freenet/src/freenet/clients/http/filter/GenericReadFilterCallback.java
===================================================================
---
trunk/freenet/src/freenet/clients/http/filter/GenericReadFilterCallback.java
2009-02-13 14:59:01 UTC (rev 25620)
+++
trunk/freenet/src/freenet/clients/http/filter/GenericReadFilterCallback.java
2009-02-13 14:59:35 UTC (rev 25621)
@@ -24,7 +24,7 @@
public static final HashSet<String> allowedProtocols;
static {
- allowedProtocols = new HashSet();
+ allowedProtocols = new HashSet<String>();
allowedProtocols.add("http");
allowedProtocols.add("https");
allowedProtocols.add("ftp");
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs