Skip to content

Seal the BitSet class #15038

@jpountz

Description

@jpountz

Description

BitSet is used in some performance-critical places. We should seal this class so that it only allows FixedBitSet and SparseFixedBitSet as sub-classes, to prevent applications from mistakenly hurting performance by creating other sub-classes that could make call sites of BitSet#get, BitSet#nextSetBit and others polymorphic?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions