Skip to content

Conversation

@Kui-Liu
Copy link
Contributor

@Kui-Liu Kui-Liu commented Oct 11, 2017

The current source code accesses the value of a Map entry of methodMap, using a key that is retrieved from a keySet iterator.
It is more efficient to use an iterator on the entrySet of the methodMap, to avoid the Map.get(key) lookup.
http://findbugs.sourceforge.net/bugDescriptions.html#WMI_WRONG_MAP_ITERATOR

The current source code accesses the value of a Map entry of methodMap, using a key that is retrieved from a keySet iterator.
It is more efficient to use an iterator on the entrySet of the methodMap, to avoid the Map.get(key) lookup.
http://findbugs.sourceforge.net/bugDescriptions.html#WMI_WRONG_MAP_ITERATOR
@davsclaus
Copy link
Contributor

Thanks for the PR it has been merged. Do you mind closing this?

@Kui-Liu
Copy link
Contributor Author

Kui-Liu commented Oct 11, 2017

Thanks.

@Kui-Liu Kui-Liu closed this Oct 11, 2017
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