r26902 - trunk/freenet/src/freenet/client
[email protected] Thu, 16 Apr 2009 19:26:16 +0000
| Newsgroups | gmane.network.freenet.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: saces
Date: 2009-04-16 19:26:16 +0000 (Thu, 16 Apr 2009)
New Revision: 26902
Modified:
trunk/freenet/src/freenet/client/Metadata.java
Log:
add/fix type parameters
Modified: trunk/freenet/src/freenet/client/Metadata.java
===================================================================
--- trunk/freenet/src/freenet/client/Metadata.java 2009-04-16 19:19:17 UTC (rev 26901)
+++ trunk/freenet/src/freenet/client/Metadata.java 2009-04-16 19:26:16 UTC (rev 26902)
@@ -487,7 +487,7 @@
* @param dir A map of names (string) to either files (same string) or
* directories (more HashMap's)
*/
- Metadata(HashMap<?, ?> dir, String prefix) {
+ Metadata(HashMap<String, Object> dir, String prefix) {
hashCode = super.hashCode();
// Simple manifest - contains actual redirects.
// Not zip manifest, which is basically a redirect.
@@ -497,8 +497,8 @@
clientMetadata = new ClientMetadata();
manifestEntries = new HashMap<String, Metadata>();
int count = 0;
- for(Iterator<?> i = dir.keySet().iterator();i.hasNext();) {
- String key = ((String) i.next()).intern();
+ for(Iterator<String> i = dir.keySet().iterator();i.hasNext();) {
+ String key = i.next().intern();
count++;
Object o = dir.get(key);
Metadata target;
@@ -507,7 +507,7 @@
target = new Metadata(ARCHIVE_INTERNAL_REDIRECT, null, null, prefix+key,
new ClientMetadata(DefaultMIMETypes.guessMIMEType(key, false)));
} else if(o instanceof HashMap) {
- target = new Metadata((HashMap<?, ?>)o, prefix+key+"/");
+ target = new Metadata((HashMap<String, Object>)o, prefix+key+"/");
} else throw new IllegalArgumentException("Not String nor HashMap: "+o);
manifestEntries.put(key, target);
}