Skip to content

Commit 55db92a

Browse files
committed
do not warn for explicitely overriden stringPrefix
1 parent 77cdc43 commit 55db92a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

library/src/scala/collection/mutable/ListMap.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ package mutable
1515

1616
import scala.language.`2.13`
1717
import language.experimental.captureChecking
18-
import scala.annotation.tailrec
18+
import scala.annotation.{tailrec, nowarn}
1919
import scala.collection.generic.DefaultSerializable
2020
import scala.collection.immutable.List
2121

@@ -68,6 +68,7 @@ class ListMap[K, V]
6868
final override def size: Int = siz
6969
override def knownSize: Int = size
7070
override def isEmpty: Boolean = size == 0
71+
@nowarn("""cat=deprecation&origin=scala\.collection\.Iterable\.stringPrefix""")
7172
override protected def stringPrefix = "ListMap"
7273
}
7374

library/src/scala/collection/mutable/OpenHashMap.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ package mutable
1515

1616
import scala.language.`2.13`
1717
import language.experimental.captureChecking
18+
19+
import scala.annotation.nowarn
1820
import java.lang.Integer.numberOfLeadingZeros
1921
import java.util.ConcurrentModificationException
2022
import scala.collection.generic.DefaultSerializable
@@ -304,5 +306,6 @@ class OpenHashMap[Key, Value](initialSize : Int)
304306
this
305307
}
306308

309+
@nowarn("""cat=deprecation&origin=scala\.collection\.Iterable\.stringPrefix""")
307310
override protected def stringPrefix = "OpenHashMap"
308311
}

0 commit comments

Comments
 (0)