File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
library/src/scala/collection/immutable Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,11 @@ final class HashSet[A] private[immutable](private[immutable] val rootNode: Bitma
190
190
* Stops iterating the first time that f returns `false`.*/
191
191
@ `inline` private [collection] def foreachWithHashWhile (f : (A , Int ) => Boolean ): Unit = rootNode.foreachWithHashWhile(f)
192
192
193
- def subsetOf (that : Set [A ]): Boolean = isEmpty || ! that.isEmpty && (that match {
193
+ // For binary compatibility, the method used to have this signature by mistake.
194
+ // protected is public in bytecode.
195
+ protected def subsetOf (that : Set [A ]): Boolean = subsetOf(that : collection.Set [A ])
196
+
197
+ override def subsetOf (that : collection.Set [A ]): Boolean = isEmpty || ! that.isEmpty && (that match {
194
198
case set : HashSet [A ] => rootNode.subsetOf(set.rootNode, 0 )
195
199
case _ => super .subsetOf(that)
196
200
})
You can’t perform that action at this time.
0 commit comments