Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid redundant Map.containsKey call #781

Merged
merged 2 commits into from
Jan 16, 2023

Conversation

turbanoff
Copy link
Contributor

Often Map.containsKey call is redundant or pair of Map.containsKey+some can be replaced with another single Map call.
I propose to cleanup such calls. I believe it makes code a bit shorter and easier to read. Also it improves performance a bit.

@gnodet gnodet added this to the 3.22.0 milestone Jan 16, 2023
@gnodet gnodet merged commit c2a0c9e into jline:master Jan 16, 2023
@turbanoff turbanoff deleted the cleanup_redundant_Map.containsKey branch August 8, 2023 17:06
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