[concurrency-interest] Javadoc for ConcurrentSkipListMap.computeIfAbsent()

Roman Leventov leventov.ru at gmail.com
Sun Feb 23 23:54:47 EST 2020


It says: "The function is NOT guaranteed to be applied once atomically only
if the value is not present."

It's hard to parse this sentence, and it seems to me to make little
sense since when the value is present, the function is not applied at all.
IMO it would be better to remove the last part "only if the value is not
present", making it equal to the corresponding sentence in compute() and
computeIfPresent() Javadocs.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20200224/bcb38411/attachment.htm>


More information about the Concurrency-interest mailing list