On Tue, 29 Oct 2024 08:15:58 GMT, Andrey Turbanov wrote:
> `Hashtable` doesn't allow `null` values.
> It means we can replace containsKey+get with get+null check.
> It's clearer and a bit faster.
Looks fine.
-
Marked as reviewed by mullan (Reviewer).
PR Review: https://git.openjdk
`Hashtable` doesn't allow `null` values.
It means we can replace containsKey+get with get+null check.
It's clearer and a bit faster.
-
Commit messages:
- [PATCH] Avoid redundant Hashtable.containsKey call in CodeSource.readObject
Changes: https://git.openjdk.org/jdk/pull/21753/files