-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Map.(copy)of(...) in ProvidedCapability
in the context of Tycho it could easily happen that there are hundred of thousands of ProvidedCapability's. Each of them currently carry a HashMap that is then wrapped in an unmodifiable collection. This replaces it with Map.copyOf(...) now to ensure it is unmodifiable and only ever contains the exact number of entries saving a few bytes for object references and possible null table entries.
- Loading branch information
Showing
2 changed files
with
9 additions
and
38 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