Integrated: 8297750: Unnecessary Vector usage in IIORegistry

Andrey Turbanov aturbanov at openjdk.org
Thu Dec 1 08:19:51 UTC 2022


On Sun, 27 Nov 2022 17:51:15 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> Field `javax.imageio.spi.IIORegistry#initialCategories` is modified only in `static {}` block, which makes it effectively final. Instead of legacy synchronized `Vector` we can use non-threadsafe `ArrayList` here.

This pull request has now been integrated.

Changeset: fa0c599a
Author:    Andrey Turbanov <aturbanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/fa0c599a003962cf3457bb49b9f771659532b5c3
Stats:     17 lines in 1 file changed: 1 ins; 7 del; 9 mod

8297750: Unnecessary Vector usage in IIORegistry

Reviewed-by: prr, serb

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

PR: https://git.openjdk.org/jdk/pull/11379



More information about the client-libs-dev mailing list