Re: RFR: 8343194: Avoid redundant Hashtable.containsKey call in CodeSource.readObject

2024-10-29 Thread Sean Mullan
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

RFR: 8343194: Avoid redundant Hashtable.containsKey call in CodeSource.readObject

2024-10-29 Thread Andrey Turbanov
`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