Skip to content

COLLECTIONS-786: fix PassiveExpiringMap documentation#237

Closed
vandrewskis wants to merge 1 commit intoapache:masterfrom
vandrewskis:COLLECTIONS-786
Closed

COLLECTIONS-786: fix PassiveExpiringMap documentation#237
vandrewskis wants to merge 1 commit intoapache:masterfrom
vandrewskis:COLLECTIONS-786

Conversation

@vandrewskis
Copy link
Contributor

containsKey does not access entire map, while
containsValue does

Copy link
Member

@kinow kinow left a comment

Choose a reason for hiding this comment

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

Hi @vandrewskis

Thanks for the PR. I agree with the issue description and with the patch here. Both containsValue and entrySet call removeAllExpired(now()); which iterates all elements as the Javadoc says. While containsKey does not.

size also calls that, but it's part of the "etc" :-) so no need to include.

+1

@kinow kinow closed this in d87dd86 May 22, 2021
@kinow
Copy link
Member

kinow commented May 22, 2021

Added changelog, updated JIRA fixVersion, merged. Thanks!!

@vandrewskis
Copy link
Contributor Author

@kinow , thanks for review and merge 👍

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

Comments