RFR: 8302268: Prefer ArrayList to LinkedList in XEmbeddedFramePeer
SWinxy
duke at openjdk.org
Sat Feb 11 22:07:25 UTC 2023
On Thu, 9 Feb 2023 09:51:10 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
> There is only add/iterator/indexOf calls on this list. No removes from the head or something like this. ArrayList should be preferred as more efficient and widely used (more chances for JIT) collection
As usual I prefer `List<>` as the type.
-------------
Marked as reviewed by SWinxy at github.com (no known OpenJDK username).
PR: https://git.openjdk.org/jdk/pull/12486
More information about the client-libs-dev
mailing list