[OpenJDK 2D-Dev] RFR: 8271603: Unnecessary Vector usage in java.desktop [v2]

Andrey Turbanov github.com+741251+turbanoff at openjdk.java.net
Wed Aug 25 08:02:03 UTC 2021


On Tue, 24 Aug 2021 23:09:52 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8271603: Unnecessary Vector usage in java.desktop
>>   revert back to Enumeration
>>   bring back default values
>
> src/java.desktop/share/classes/javax/sound/sampled/AudioSystem.java line 244:
> 
>> 242:         }
>> 243: 
>> 244:         return list.toArray(new Line.Info[0]);
> 
> I thought we already covered such changed under JDK-8269130, is there are any other missed cases? If yes then probably it will be good to extract such changes.

In JDK-8269130 I fixed only usages of Collections.toArray. and didn't touch manual copying.
Reverted usage of toArray where it wasn't used before.

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

PR: https://git.openjdk.java.net/jdk/pull/4680


More information about the 2d-dev mailing list