forked from google/guava
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid boxing ints in ConcurrentHashMultiset Preconditions checks
The preconditions checks for occurrences are boxing int values for the format string. This has shown up in profiling as we are using this collection quite heavily. Switch from preconditions formatting to basic if statement to avoid boxing. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=101702798
- Loading branch information
Showing
2 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters