On Mon, 3 Apr 2023 16:58:15 GMT, Andrey Turbanov <aturba...@openjdk.org> wrote:
> `Pattern.namedGroups` and `Matcher.namedGroups` contains only non-null > values. It means instead of separate `containsKey`+`get` calls, we can use > single `HashMap.get` call and then compare result with null. > Result code is a bit simpler and faster. This looks OK to me. ------------- Marked as reviewed by jpai (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/13303#pullrequestreview-1430610391