summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan@lightbend.com>2016-11-16 23:02:09 -0800
committerGitHub <noreply@github.com>2016-11-16 23:02:09 -0800
commit6b44da1454fa8cce63371c253bd884626249b043 (patch)
treef5ffdbb6d2194777b3c9e2a1e0f70acc2b43d315 /src
parenteff3084b06b7d8bb9abdc62ffb13f4780c17dea4 (diff)
parent98c1f107caad5d5d558e33837023e55b71bb59ea (diff)
downloadscala-6b44da1454fa8cce63371c253bd884626249b043.tar.gz
scala-6b44da1454fa8cce63371c253bd884626249b043.tar.bz2
scala-6b44da1454fa8cce63371c253bd884626249b043.zip
Merge pull request #5532 from retronym/ticket/SD-264
Reinstate MiMa and address problems
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/collection/mutable/HashTable.scala6
-rw-r--r--src/library/scala/util/Properties.scala6
2 files changed, 3 insertions, 9 deletions
diff --git a/src/library/scala/collection/mutable/HashTable.scala b/src/library/scala/collection/mutable/HashTable.scala
index bd6fb508fe..a6a6e1e432 100644
--- a/src/library/scala/collection/mutable/HashTable.scala
+++ b/src/library/scala/collection/mutable/HashTable.scala
@@ -396,11 +396,11 @@ private[collection] object HashTable {
/** The load factor for the hash table (in 0.001 step).
*/
private[collection] final def defaultLoadFactor: Int = 750 // corresponds to 75%
- private[collection] final def loadFactorDenom = 1000
+ private[collection] final def loadFactorDenum = 1000 // should be loadFactorDenom, but changing that isn't binary compatible
- private[collection] final def newThreshold(_loadFactor: Int, size: Int) = ((size.toLong * _loadFactor) / loadFactorDenom).toInt
+ private[collection] final def newThreshold(_loadFactor: Int, size: Int) = ((size.toLong * _loadFactor) / loadFactorDenum).toInt
- private[collection] final def sizeForThreshold(_loadFactor: Int, thr: Int) = ((thr.toLong * loadFactorDenom) / _loadFactor).toInt
+ private[collection] final def sizeForThreshold(_loadFactor: Int, thr: Int) = ((thr.toLong * loadFactorDenum) / _loadFactor).toInt
private[collection] final def capacity(expectedSize: Int) = if (expectedSize == 0) 1 else powerOfTwo(expectedSize)
diff --git a/src/library/scala/util/Properties.scala b/src/library/scala/util/Properties.scala
index 9d62bfe6ef..7b21351cf6 100644
--- a/src/library/scala/util/Properties.scala
+++ b/src/library/scala/util/Properties.scala
@@ -217,12 +217,6 @@ private[scala] trait PropertiesTrait {
}
}
- /** Tests whether the major version of the platform specification is at least the given value.
- *
- * @param version a major version number
- */
- def isJavaAtLeast(version: Int): Boolean = isJavaAtLeast(version.toString)
-
// provide a main method so version info can be obtained by running this
def main(args: Array[String]) {
val writer = new PrintWriter(Console.err, true)