Skip to content

Commit 7210257

Browse files
committed
Merge pull request apache#128 from adamnovak/master
Fix failing "sbt/sbt publish-local" by adding a no-argument PrimitiveKeyOpenHashMap constructor Closes apache#78.
2 parents 86404da + fa8ce3f commit 7210257

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

core/src/main/scala/org/apache/spark/util/collection/PrimitiveKeyOpenHashMap.scala

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,15 @@ class PrimitiveKeyOpenHashMap[@specialized(Long, Int) K: ClassManifest,
3535
/**
3636
* Allocate an OpenHashMap with a fixed initial capacity
3737
*/
38-
def this(initialCapacity: Int = 64) =
38+
def this(initialCapacity: Int) =
3939
this(new OpenHashSet[K](initialCapacity), new Array[V](initialCapacity))
40+
41+
/**
42+
* Allocate an OpenHashMap with a default initial capacity, providing a true
43+
* no-argument constructor.
44+
*/
45+
def this() = this(64)
46+
4047

4148
/**
4249
* Allocate an OpenHashMap with a fixed initial capacity

0 commit comments

Comments
 (0)