On Tue, 28 Jun 2022 21:07:41 GMT, Andrey Turbanov <aturba...@openjdk.org> wrote:

> There is overload method HashMap.remove(key,value) which also checks value 
> equality.
> It's shorter and faster than pair get+remove.

This pull request has now been integrated.

Changeset: 8e7a3cb5
Author:    Andrey Turbanov <aturba...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/8e7a3cb5ab3852f0c367c8807d51ffbec2d0ad49
Stats:     3 lines in 1 file changed: 0 ins; 1 del; 2 mod

8289431: (zipfs) Avoid redundant HashMap.get in 
ZipFileSystemProvider.removeFileSystem

Reviewed-by: lancea, attila

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

PR: https://git.openjdk.org/jdk/pull/9314

Reply via email to