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:
@ -143,10 +143,10 @@ public class Collections {
|
||||
public void clear() {
|
||||
synchronized (lock) { map.clear(); }
|
||||
}
|
||||
public boolean containsKey(K key) {
|
||||
public boolean containsKey(Object key) {
|
||||
synchronized (lock) { return map.containsKey(key); }
|
||||
}
|
||||
public boolean containsValue(V value) {
|
||||
public boolean containsValue(Object value) {
|
||||
synchronized (lock) { return map.containsValue(value); }
|
||||
}
|
||||
public Set<java.util.Map.Entry<K, V>> entrySet() {
|
||||
|
Reference in New Issue
Block a user