303 |
|
} |
304 |
|
|
305 |
|
/** |
306 |
< |
* Read value field of an entry under lock. Called if value |
306 |
> |
* Reads value field of an entry under lock. Called if value |
307 |
|
* field ever appears to be null. This is possible only if a |
308 |
|
* compiler happens to reorder a HashEntry initialization with |
309 |
|
* its table assignment, which is legal under memory model |
957 |
|
|
958 |
|
|
959 |
|
/** |
960 |
< |
* Replace entry for key only if currently mapped to given value. |
960 |
> |
* Replaces entry for key only if currently mapped to given value. |
961 |
|
* Acts as |
962 |
|
* <pre> |
963 |
|
* if (map.get(key).equals(oldValue)) { |
981 |
|
} |
982 |
|
|
983 |
|
/** |
984 |
< |
* Replace entry for key only if currently mapped to some value. |
984 |
> |
* Replaces entry for key only if currently mapped to some value. |
985 |
|
* Acts as |
986 |
|
* <pre> |
987 |
|
* if (map.containsKey(key)) { |