RFR: 8375351: Remove usage of AppContext from print implementation [v5]
Phil Race
prr at openjdk.org
Fri Jan 23 18:41:22 UTC 2026
On Thu, 22 Jan 2026 21:48:20 GMT, Sergey Bylokhov <serb at openjdk.org> 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
More information about the client-libs-dev
mailing list