Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
h
Browse files Browse the repository at this point in the history
GideonPotok committed Jun 5, 2024
1 parent 8eb3225 commit 52d625b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -71,15 +71,14 @@ class OpenHashSet[@specialized(Long, Int, Double, Float) T: ClassTag](
case ClassTag.Int => new IntHasher().asInstanceOf[Hasher[T]]
case ClassTag.Double => new DoubleHasher().asInstanceOf[Hasher[T]]
case ClassTag.Float => new FloatHasher().asInstanceOf[Hasher[T]]
case _ => {
case _ =>
// scalastyle:off println
println("hasher: " + classTag[T].toString())
println("hasher: " + classTag[T].runtimeClass.toString())
// scalastyle:on println
specialPassedInHasher.map(f =>
new CustomHasher(f).asInstanceOf[Hasher[T]]).getOrElse(
new Hasher[T])
}
}

protected var _capacity = nextPowerOf2(initialCapacity)

0 comments on commit 52d625b

Please sign in to comment.