Skip to content
Snippets Groups Projects
Commit 7210257b authored by Ankur Dave's avatar Ankur Dave
Browse files

Merge pull request #128 from adamnovak/master

Fix failing "sbt/sbt publish-local" by adding a no-argument PrimitiveKeyOpenHashMap constructor

Closes #78.
parents 86404dac fa8ce3fd
No related branches found
No related tags found
No related merge requests found
...@@ -35,8 +35,15 @@ class PrimitiveKeyOpenHashMap[@specialized(Long, Int) K: ClassManifest, ...@@ -35,8 +35,15 @@ class PrimitiveKeyOpenHashMap[@specialized(Long, Int) K: ClassManifest,
/** /**
* Allocate an OpenHashMap with a fixed initial capacity * Allocate an OpenHashMap with a fixed initial capacity
*/ */
def this(initialCapacity: Int = 64) = def this(initialCapacity: Int) =
this(new OpenHashSet[K](initialCapacity), new Array[V](initialCapacity)) this(new OpenHashSet[K](initialCapacity), new Array[V](initialCapacity))
/**
* Allocate an OpenHashMap with a default initial capacity, providing a true
* no-argument constructor.
*/
def this() = this(64)
/** /**
* Allocate an OpenHashMap with a fixed initial capacity * Allocate an OpenHashMap with a fixed initial capacity
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment