diff --git a/model/src/main/scala/ch.epfl.scala.index.model/release/ScalaTarget.scala b/model/src/main/scala/ch.epfl.scala.index.model/release/ScalaTarget.scala index 91c0e47ef..7ca443bbe 100644 --- a/model/src/main/scala/ch.epfl.scala.index.model/release/ScalaTarget.scala +++ b/model/src/main/scala/ch.epfl.scala.index.model/release/ScalaTarget.scala @@ -94,7 +94,8 @@ object ScalaJvm { val `2.12`: BinaryVersion = MinorBinary(2, 12) val `2.13`: BinaryVersion = MinorBinary(2, 13) - private def stableBinaryVersions = Set(`2.10`, `2.11`, `2.12`, `2.13`) + private val stableBinaryVersions = Set(`2.10`, `2.11`, `2.12`, `2.13`) + def isValid(version: BinaryVersion): Boolean = stableBinaryVersions.contains(version) @@ -104,7 +105,7 @@ object ScalaJs { val `0.6`: BinaryVersion = MinorBinary(0, 6) val `1.x`: BinaryVersion = MajorBinary(1) - private def stableBinaryVersions = Set(`0.6`, `1.x`) + private val stableBinaryVersions = Set(`0.6`, `1.x`) def isValid(version: BinaryVersion): Boolean = stableBinaryVersions.contains(version) @@ -122,9 +123,8 @@ object ScalaNative { object SbtPlugin { val `0.13`: BinaryVersion = MinorBinary(0, 13) val `1.0`: BinaryVersion = MinorBinary(1, 0) - val `1.x`: BinaryVersion = MajorBinary(1) - private def stableBinaryVersions = Set(`0.13`, `1.0`, `1.x`) + private val stableBinaryVersions = Set(`0.13`, `1.0`) def isValid(version: BinaryVersion): Boolean = { stableBinaryVersions.contains(version)