diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2015-09-21 14:48:56 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2015-09-21 14:48:56 +0200 |
commit | 480db4c87e3112d62ba3e829a65f728e9a814937 (patch) | |
tree | d6a1bc4204fb0702ab9c1865e8b8e56e55900ac4 /src | |
parent | fccd9943331ea6f8443bd3764b717a66ae67a2b2 (diff) | |
parent | d590894caf2f38271f8fe67771ec20a65731429d (diff) | |
download | scala-480db4c87e3112d62ba3e829a65f728e9a814937.tar.gz scala-480db4c87e3112d62ba3e829a65f728e9a814937.tar.bz2 scala-480db4c87e3112d62ba3e829a65f728e9a814937.zip |
Merge pull request #4734 from soc/SI-9081
SI-9081 Deprecate public implementation details in TrieMap
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/collection/concurrent/TrieMap.scala | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/library/scala/collection/concurrent/TrieMap.scala b/src/library/scala/collection/concurrent/TrieMap.scala index 74e0e0f7d2..426f9bf864 100644 --- a/src/library/scala/collection/concurrent/TrieMap.scala +++ b/src/library/scala/collection/concurrent/TrieMap.scala @@ -641,7 +641,8 @@ extends scala.collection.concurrent.Map[K, V] private var rootupdater = rtupd def hashing = hashingobj def equality = equalityobj - @volatile var root = r + @deprecated("This field will be made private", "2.12.0") + @volatile /*private*/ var root = r def this(hashf: Hashing[K], ef: Equiv[K]) = this( INode.newRootNode, @@ -685,11 +686,14 @@ extends scala.collection.concurrent.Map[K, V] } while (obj != TrieMapSerializationEnd) } - def CAS_ROOT(ov: AnyRef, nv: AnyRef) = rootupdater.compareAndSet(this, ov, nv) + @deprecated("This method will be made private", "2.12.0") + /*private*/ def CAS_ROOT(ov: AnyRef, nv: AnyRef) = rootupdater.compareAndSet(this, ov, nv) - def readRoot(abort: Boolean = false): INode[K, V] = RDCSS_READ_ROOT(abort) + @deprecated("This method will be made private", "2.12.0") + /*private[collection]*/ def readRoot(abort: Boolean = false): INode[K, V] = RDCSS_READ_ROOT(abort) - def RDCSS_READ_ROOT(abort: Boolean = false): INode[K, V] = { + @deprecated("This method will be made private", "2.12.0") + /*private[concurrent]*/ def RDCSS_READ_ROOT(abort: Boolean = false): INode[K, V] = { val r = /*READ*/root r match { case in: INode[K, V] => in @@ -884,7 +888,7 @@ extends scala.collection.concurrent.Map[K, V] * * If the specified mapping function throws an exception, * that exception is rethrown. - * + * * Note: This method will invoke op at most once. * However, `op` may be invoked without the result being added to the map if * a concurrent process is also trying to add a value corresponding to the @@ -1083,6 +1087,7 @@ private[collection] class TrieMapIterator[K, V](var level: Int, private var ct: Seq(this) } + @deprecated("This method will be removed", "2.12.0") def printDebug() { println("ctrie iterator") println(stackpos.mkString(",")) |