# | Line 984 | Line 984 | public class ConcurrentHashMap<K, V> ext | |
---|---|---|
984 | * Replace entry for key only if currently mapped to some value. | |
985 | * Acts as | |
986 | * <pre> | |
987 | < | * if ((map.containsKey(key)) { |
987 | > | * if (map.containsKey(key)) { |
988 | * return map.put(key, value); | |
989 | * } else return null; | |
990 | * </pre> |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |