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?
Description
BitSetis used in some performance-critical places. We should seal this class so that it only allowsFixedBitSetandSparseFixedBitSetas sub-classes, to prevent applications from mistakenly hurting performance by creating other sub-classes that could make call sites ofBitSet#get,BitSet#nextSetBitand others polymorphic?