On Fri, 27 Feb 2026 21:08:07 GMT, Alexey Ivanov <[email protected]> wrote:

> The `FetcherInfo` class stores information for the `ImageFetcher` class. The 
> `waitList` field of `FetcherInfo` is used in synchronised blocks, but it's 
> not marked as `final`.
> 
> If the reference in `waitList` changes, it could break the synchronisation.
> 
> To avoid uncertainties, mark the `waitList` field final.
> 
> Additionally, the `fetchers` array should also be `final`, the reference is 
> never changed.

Marked as reviewed by azvegint (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/29966#pullrequestreview-3873801325

Reply via email to