RFR: 8278255: add more warning text in ReentrantLock and ReentrantReadWriteLock
Pavel Rappo
prappo at openjdk.org
Fri Apr 26 13:46:17 UTC 2024
On Fri, 26 Apr 2024 11:43:06 GMT, Viktor Klang <vklang at openjdk.org> wrote:
> This is an attempt to be more clear about recommendations on Lock usage.
src/java.base/share/classes/java/util/concurrent/locks/ReentrantReadWriteLock.java line 162:
> 160: * }
> 161: * }
> 162: * // Make sure that code which could throw is executed inside the try block
Nit:
Suggestion:
* // Make sure that code that could throw is executed inside the try block
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18974#discussion_r1581059299
More information about the core-libs-dev
mailing list