RFR: 8336462: ConcurrentSkipListSet Javadoc incorrectly warns about size method complexity [v2]

Viktor Klang vklang at openjdk.org
Mon Aug 5 09:57:05 UTC 2024


On Mon, 5 Aug 2024 09:53:48 GMT, Viktor Klang <vklang at openjdk.org> wrote:

>> Removes some of the old wording around the algorithmic complexity of ConcurrentSkipListSet::size() while still retaining the warning around the accuracy of the returned result.
>
> Viktor Klang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Adding paragraph to ConcurrentSkipListSet::set

src/java.base/share/classes/java/util/concurrent/ConcurrentSkipListSet.java line 192:

> 190:      * returns {@code Integer.MAX_VALUE}.
> 191:      *
> 192:      * <p>It is possible for the size to change during execution of this method,

@jaikiran Realized the paragraph fell away so I re-added it. Reapproval needed?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/20388#discussion_r1703861457


More information about the core-libs-dev mailing list