Skip to content

Commit b28eae1

Browse files
mwiewiorMarek Wiewiórka
and
Marek Wiewiórka
authored
fix: IntMap class duplication issue (#177)
* Moving scala-lang to provided deps * Refactor IntMap for class duplication issues --------- Co-authored-by: Marek Wiewiórka <[email protected]>
1 parent 561dc10 commit b28eae1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ libraryDependencies += "com.holdenkarau" %% "spark-testing-base" % "3.4.1_1.4.4"
4545
libraryDependencies += "org.bdgenomics.adam" %% "adam-core-spark3" % "1.0.1" excludeAll (ExclusionRule("org.seqdoop"))
4646
libraryDependencies += "org.bdgenomics.adam" %% "adam-apis-spark3" % "1.0.1" excludeAll (ExclusionRule("org.seqdoop"))
4747
libraryDependencies += "org.bdgenomics.adam" %% "adam-cli-spark3" % "1.0.1" excludeAll (ExclusionRule("org.seqdoop"))
48-
libraryDependencies += "org.scala-lang" % "scala-library" % scalaVersion.value
48+
libraryDependencies += "org.scala-lang" % "scala-library" % scalaVersion.value % "provided"
4949
libraryDependencies += "org.rogach" %% "scallop" % "3.1.2"
5050
libraryDependencies += "com.github.samtools" % "htsjdk" % "2.24.1"
5151
libraryDependencies += "ch.cern.sparkmeasure" %% "spark-measure" % "0.17" excludeAll (ExclusionRule("org.apache.hadoop"))

src/main/scala/org/biodatageeks/sequila/utils/IntMap.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ object IntMap {
470470
*
471471
* This builder can be reused to create multiple instances.
472472
*/
473-
final class IntMapBuilder[V] extends ReusableBuilder[(Int, V), IntMap[V]] {
473+
final class IntMapBuilder[V] extends ReusableMapBuilder[(Int, V), IntMap[V]] {
474474
private[collection] var elems: IntMap[V] = new IntMap[V]
475475
def +=(entry: (Int, V)): this.type = {
476476
elems += entry
@@ -521,7 +521,7 @@ object IntMap {
521521
}
522522
}
523523

524-
trait ReusableBuilder[-Elem, +To] extends mutable.Builder[Elem, To] {
524+
trait ReusableMapBuilder[-Elem, +To] extends mutable.Builder[Elem, To] {
525525
/** Clears the contents of this builder.
526526
* After execution of this method, the builder will contain no elements.
527527
*

0 commit comments

Comments
 (0)