RFR: 8253178: Replace LinkedList Impl in net.http.FilterFactory
Sergei Ustimenko
github.com+5709644+fdesu at openjdk.java.net
Thu Jul 8 10:46:06 UTC 2021
This patch replaces a LinkedList data structure used in the net.http.FilterFactory class with an ArrayList. This issue relates to [JDK-8246048: Replace LinkedList with ArrayLists in java.net.](https://bugs.openjdk.java.net/browse/JDK-8246048).
The list created once per HttpClient and filled with upfront known values (3 of them in the jdk.internal.net.http.HttpClientImpl#initFilters: AuthenticationFilter.class, RedirectFilter.class and depending on the presence of a cookieHandler - a CookieFilter.class).
-------------
Commit messages:
- 8253178: Replace LinkedList Impl in net.http.FilterFactory
Changes: https://git.openjdk.java.net/jdk/pull/4721/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4721&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8253178
Stats: 16 lines in 3 files changed: 2 ins; 4 del; 10 mod
Patch: https://git.openjdk.java.net/jdk/pull/4721.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/4721/head:pull/4721
PR: https://git.openjdk.java.net/jdk/pull/4721
More information about the net-dev
mailing list