Skip to content

UnmodifiableMultimap.forEach inefficiently uses the default implementation #3911

Closed

Description

UnmodifiableMultimap.forEach uses the Multimap.forEach default implementation which involves listing entries, and creating a new lambda instead of simply passing the BiConsumer through to the protected instance. This is safe to pass directly though because forEach(BiConsumer) is a read-only operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions