Javadoc for ConcurrentSkipListMap.computeIfAbsent()
Roman Leventov via Concurrency-interest <[email protected]>
| Newsgroups | gmane.comp.java.jsr.166-concurrency |
|---|---|
| Message-ID | <CAAMLo=bmgVPr23xN740DjOtt5M0RK-B7Da-kgg5xuxKO8Ds44Q@mail.gmail.com> |
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. _______________________________________________ Concurrency-interest mailing list [email protected] http://cs.oswego.edu/mailman/listinfo/concurrency-interest