mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
"Fix" Map.containsKey() and Map.containsValue()
java.util.Map.containsKey() and java.util.Map.containsValue() take Object parameters, not K and V. Changed to improve classpath compatibility.
This commit is contained in:
@ -40,11 +40,11 @@ public class Hashtable<K, V> implements Map<K, V> {
|
||||
return map.size();
|
||||
}
|
||||
|
||||
public synchronized boolean containsKey(K key) {
|
||||
public synchronized boolean containsKey(Object key) {
|
||||
return map.containsKey(key);
|
||||
}
|
||||
|
||||
public synchronized boolean containsValue(V value) {
|
||||
public synchronized boolean containsValue(Object value) {
|
||||
return map.containsValue(value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user