Skip to content

UnmodifiableMultimap.forEach inefficiently uses the default implementation #3911

Closed
@carterkozak

Description

@carterkozak

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.

Metadata

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