@@ -136,22 +136,22 @@ object BitSet extends SpecificIterableFactory[Int, BitSet] {
136
136
protected [collection] def updateWord (idx : Int , w : Long ): BitSet =
137
137
if (idx == 0 ) new BitSet1 (w)
138
138
else if (idx == 1 ) createSmall(elems, w)
139
- else fromBitMaskNoCopy(updateArray(Array (elems), idx, w))
139
+ else this . fromBitMaskNoCopy(updateArray(Array (elems), idx, w))
140
140
141
141
142
142
override def diff (other : collection.Set [Int ]): BitSet = other match {
143
143
case bs : collection.BitSet => bs.nwords match {
144
144
case 0 => this
145
145
case _ =>
146
146
val newElems = elems & ~ bs.word(0 )
147
- if (newElems == 0L ) empty else new BitSet1 (newElems)
147
+ if (newElems == 0L ) this . empty else new BitSet1 (newElems)
148
148
}
149
149
case _ => super .diff(other)
150
150
}
151
151
152
152
override def filterImpl (pred : Int => Boolean , isFlipped : Boolean ): BitSet = {
153
153
val _elems = BitSetOps .computeWordForFilter(pred, isFlipped, elems, 0 )
154
- if (_elems == 0L ) empty else new BitSet1 (_elems)
154
+ if (_elems == 0L ) this . empty else new BitSet1 (_elems)
155
155
}
156
156
}
157
157
@@ -162,7 +162,7 @@ object BitSet extends SpecificIterableFactory[Int, BitSet] {
162
162
protected [collection] def updateWord (idx : Int , w : Long ): BitSet =
163
163
if (idx == 0 ) new BitSet2 (w, elems1)
164
164
else if (idx == 1 ) createSmall(elems0, w)
165
- else fromBitMaskNoCopy(updateArray(Array (elems0, elems1), idx, w))
165
+ else this . fromBitMaskNoCopy(updateArray(Array (elems0, elems1), idx, w))
166
166
167
167
168
168
override def diff (other : collection.Set [Int ]): BitSet = other match {
@@ -176,7 +176,7 @@ object BitSet extends SpecificIterableFactory[Int, BitSet] {
176
176
177
177
if (_elems1 == 0L ) {
178
178
if (_elems0 == 0L ) {
179
- empty
179
+ this . empty
180
180
} else {
181
181
new BitSet1 (_elems0)
182
182
}
@@ -193,7 +193,7 @@ object BitSet extends SpecificIterableFactory[Int, BitSet] {
193
193
194
194
if (_elems1 == 0L ) {
195
195
if (_elems0 == 0L ) {
196
- empty
196
+ this . empty
197
197
}
198
198
else new BitSet1 (_elems0)
199
199
}
@@ -207,7 +207,7 @@ object BitSet extends SpecificIterableFactory[Int, BitSet] {
207
207
208
208
protected [collection] def word (idx : Int ) = if (idx < nwords) elems(idx) else 0L
209
209
210
- protected [collection] def updateWord (idx : Int , w : Long ): BitSet = fromBitMaskNoCopy(updateArray(elems, idx, w))
210
+ protected [collection] def updateWord (idx : Int , w : Long ): BitSet = this . fromBitMaskNoCopy(updateArray(elems, idx, w))
211
211
212
212
override def diff (that : collection.Set [Int ]): BitSet = that match {
213
213
case bs : collection.BitSet =>
@@ -245,7 +245,7 @@ object BitSet extends SpecificIterableFactory[Int, BitSet] {
245
245
}
246
246
if (i < 0 ) {
247
247
// all indices >= 0 have had result 0, so the bitset is empty
248
- empty
248
+ this . empty
249
249
} else {
250
250
val minimumNonZeroIndex : Int = i + 1
251
251
while (! anyChanges && i >= 0 ) {
@@ -256,7 +256,7 @@ object BitSet extends SpecificIterableFactory[Int, BitSet] {
256
256
}
257
257
if (anyChanges) {
258
258
if (minimumNonZeroIndex == - 1 ) {
259
- empty
259
+ this . empty
260
260
} else if (minimumNonZeroIndex == 0 ) {
261
261
new BitSet1 (currentWord)
262
262
} else if (minimumNonZeroIndex == 1 ) {
@@ -268,7 +268,7 @@ object BitSet extends SpecificIterableFactory[Int, BitSet] {
268
268
newArray(i) = word(i) & ~ bs.word(i)
269
269
i -= 1
270
270
}
271
- fromBitMaskNoCopy(newArray)
271
+ this . fromBitMaskNoCopy(newArray)
272
272
}
273
273
} else {
274
274
this
@@ -291,7 +291,7 @@ object BitSet extends SpecificIterableFactory[Int, BitSet] {
291
291
newElems(i) = word(i) & ~ bs.word(i)
292
292
i -= 1
293
293
}
294
- fromBitMaskNoCopy(newElems)
294
+ this . fromBitMaskNoCopy(newElems)
295
295
} else {
296
296
this
297
297
}
@@ -315,7 +315,7 @@ object BitSet extends SpecificIterableFactory[Int, BitSet] {
315
315
}
316
316
if (i < 0 ) {
317
317
// all indices >= 0 have had result 0, so the bitset is empty
318
- if (currentWord == 0 ) empty else fromBitMaskNoCopy(Array (currentWord))
318
+ if (currentWord == 0 ) this . empty else this . fromBitMaskNoCopy(Array (currentWord))
319
319
} else {
320
320
val minimumNonZeroIndex : Int = i + 1
321
321
while (! anyChanges && i >= 0 ) {
@@ -326,7 +326,7 @@ object BitSet extends SpecificIterableFactory[Int, BitSet] {
326
326
}
327
327
if (anyChanges) {
328
328
if (minimumNonZeroIndex == - 1 ) {
329
- empty
329
+ this . empty
330
330
} else if (minimumNonZeroIndex == 0 ) {
331
331
new BitSet1 (currentWord)
332
332
} else if (minimumNonZeroIndex == 1 ) {
@@ -338,7 +338,7 @@ object BitSet extends SpecificIterableFactory[Int, BitSet] {
338
338
newArray(i) = BitSetOps .computeWordForFilter(pred, isFlipped, word(i), i)
339
339
i -= 1
340
340
}
341
- fromBitMaskNoCopy(newArray)
341
+ this . fromBitMaskNoCopy(newArray)
342
342
}
343
343
} else {
344
344
this
0 commit comments