Skip to content

Simplify key removal in LegacyProtoTypeAdapterFactoryTest - #3124

Merged
eamonnmcmanus merged 1 commit into
google:mainfrom
Marcono1234:marcono1234/LegacyProtoTypeAdapterFactoryTest-simplify
Sep 16, 2026
Merged

eamonnmcmanus merged 1 commit into
google:mainfrom
Marcono1234:marcono1234/LegacyProtoTypeAdapterFactoryTest-simplify

Conversation

@Marcono1234

Copy link
Copy Markdown
Contributor

Purpose

Simplify test code

Description

See #3083 (comment)

The code currently does var keysToRemove = json.keySet().stream()...; json.keySet().removeAll(keysToRemove);. That should be identical to json.keySet().removeIf(...) (unless I am overlooking something).

@eamonnmcmanus eamonnmcmanus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, I think I had forgotten about removeIf.

@eamonnmcmanus
eamonnmcmanus merged commit 854c825 into google:main Sep 16, 2026
22 checks passed
@Marcono1234
Marcono1234 deleted the marcono1234/LegacyProtoTypeAdapterFactoryTest-simplify branch September 17, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants