On Thu, 22 Jan 2026 21:48:20 GMT, Sergey Bylokhov <[email protected]> wrote:

>> Phil Race has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   8375351
>
> src/java.desktop/share/classes/javax/print/PrintServiceLookup.java line 84:
> 
>> 82:      */
>> 83:     private static ArrayList<PrintServiceLookup> 
>> initListOfLookupServices() {
>> 84:         listOfLookupServices = new ArrayList<>();
> 
> Do we save much using this custom lazy created "new ArrayList<>()" now?

The cost is minimal but changing this gets into changing some logic in 
getAllLookupServices() that I didn't want to change in this PR.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29237#discussion_r2722404834

Reply via email to