Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13a2976

Browse files
authored
Merge pull request #10221 from liang3zy22/collectionbug12369
new LinkedHashMap/LinkedHashSet implementation
2 parents d120dd8 + d07b344 commit 13a2976

File tree

8 files changed

+691
-158
lines changed

8 files changed

+691
-158
lines changed

src/interactive/scala/tools/nsc/interactive/Global.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,7 @@ class Global(settings: Settings, _reporter: Reporter, projectName: String = "")
995995
respond(response) { scopeMemberFlatten(scopeMembers(pos)) }
996996
}
997997

998+
@nowarn("msg=inheritance from class LinkedHashMap")
998999
private class Members[M <: Member] extends LinkedHashMap[Name, Set[M]] {
9991000
override def default(key: Name) = Set()
10001001

src/library/scala/collection/mutable/HashTable.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ import java.lang.Integer
3535
*
3636
* @tparam A type of the elements contained in this hash table.
3737
*/
38-
// Was an abstract class, but to simplify the upgrade of the parallel collections I’ve made it a trait
39-
private[collection] /*abstract class*/ trait HashTable[A, B, Entry >: Null <: HashEntry[A, Entry]] extends HashTable.HashUtils[A] {
38+
// Not used in the standard library, but used in scala-parallel-collections
39+
private[collection] trait HashTable[A, B, Entry >: Null <: HashEntry[A, Entry]] extends HashTable.HashUtils[A] {
4040
// Replacing Entry type parameter by abstract type member here allows to not expose to public
4141
// implementation-specific entry classes such as `DefaultEntry` or `LinkedEntry`.
4242
// However, I'm afraid it's too late now for such breaking change.

0 commit comments

Comments
 (0)