RFR: 8278255: Add more warning text in ReentrantLock and ReentrantReadWriteLock [v2]
Doug Lea
dl at openjdk.org
Tue Apr 30 19:44:52 UTC 2024
On Sat, 27 Apr 2024 11:52:18 GMT, Viktor Klang <vklang at openjdk.org> wrote:
>> This is an attempt to be more clear about recommendations on Lock usage.
>
> Viktor Klang has updated the pull request incrementally with one additional commit since the last revision:
>
> Update src/java.base/share/classes/java/util/concurrent/locks/ReentrantReadWriteLock.java
>
> Co-authored-by: Pavel Rappo <32523691+pavelrappo at users.noreply.github.com>
The grammar rules prefer "that" because it is a restrictive clause, even though "which" might sound better. See for example: https://owl.purdue.edu/owl/general_writing/grammar/that_vs_which.html
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18974#issuecomment-2086883300
More information about the core-libs-dev
mailing list