jdk/src/share/classes/java/util/HashMap.java
changeset 22055 d9836bf9992a
parent 22054 503bc3781dfe
child 22078 bdec5d53e98c
equal deleted inserted replaced
22054:503bc3781dfe 22055:d9836bf9992a
  1210     }
  1210     }
  1211 
  1211 
  1212     @Override
  1212     @Override
  1213     public V merge(K key, V value,
  1213     public V merge(K key, V value,
  1214                    BiFunction<? super V, ? super V, ? extends V> remappingFunction) {
  1214                    BiFunction<? super V, ? super V, ? extends V> remappingFunction) {
       
  1215         if (value == null)
       
  1216             throw new NullPointerException();
  1215         if (remappingFunction == null)
  1217         if (remappingFunction == null)
  1216             throw new NullPointerException();
  1218             throw new NullPointerException();
  1217         int hash = hash(key);
  1219         int hash = hash(key);
  1218         Node<K,V>[] tab; Node<K,V> first; int n, i;
  1220         Node<K,V>[] tab; Node<K,V> first; int n, i;
  1219         int binCount = 0;
  1221         int binCount = 0;