Like a noob, I missed some things... broke the compilation.

This commit is contained in:
mweaver
2009-04-22 15:24:26 -06:00
parent f68f1e5888
commit 6b89ecd0ee
18 changed files with 34 additions and 30 deletions

View File

@ -54,7 +54,7 @@ public class WeakHashMap<K, V> implements Map<K, V> {
return map.containsValue(value);
}
public V get(K key) {
public V get(Object key) {
poll();
return map.get(key);
}
@ -68,7 +68,7 @@ public class WeakHashMap<K, V> implements Map<K, V> {
map.putAll(elts);
}
public V remove(K key) {
public V remove(Object key) {
poll();
return map.remove(key);
}