On Fri, 26 Apr 2024 11:43:06 GMT, Viktor Klang <vkl...@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

Reply via email to