On Sun, 27 Nov 2022 17:51:15 GMT, Andrey Turbanov 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.
Marked as
On Sun, 27 Nov 2022 17:51:15 GMT, Andrey Turbanov 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.
Marked as
On Mon, 28 Nov 2022 20:01:31 GMT, Sergey Bylokhov wrote:
>> src/java.desktop/share/classes/javax/imageio/spi/IIORegistry.java line 89:
>>
>>> 87: * categories (superinterfaces) to be used in the constructor.
>>> 88: */
>>> 89: private static final ArrayList> initialCategories =
On Sun, 27 Nov 2022 22:22:54 GMT, David Schlosnagle 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.
>
>
On Sun, 27 Nov 2022 17:51:15 GMT, Andrey Turbanov 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.
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.
-
Commit messages:
- 8297750: Unnecessary Vector usage in