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

Use copy in provided cap #459

Merged
merged 1 commit into from
Feb 10, 2024

Commits on Feb 10, 2024

  1. 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.
    laeubi committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    de69d11 View commit details
    Browse the repository at this point in the history