Skip to content

Commit

Permalink
Merge pull request #1005 from xuwei-k/explicit-type
Browse files Browse the repository at this point in the history
add explicit type
  • Loading branch information
satorg authored Jan 13, 2024
2 parents ce8b493 + 9cf7de3 commit 9e6b4b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private abstract class ScalaCheckRunner extends Runner {
case _ => new OptionalThrowable()
}
def fullyQualifiedName() = self.taskDef().fullyQualifiedName()
def selector() = new TestSelector(name)
def selector(): Selector = new TestSelector(name)
def fingerprint() = self.taskDef().fingerprint()
def duration() = -1L
}
Expand Down Expand Up @@ -251,7 +251,7 @@ final class ScalaCheckFramework extends Framework {

val applyCmdParams = prms.andThen(sbtSetup(loader))

def receiveMessage(msg: String) = None
def receiveMessage(msg: String): Option[String] = None

override def done() = {
send(s"d$testCount,$successCount,$failureCount,$errorCount")
Expand Down
4 changes: 2 additions & 2 deletions core/shared/src/main/scala/org/scalacheck/Test.scala
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ object Test {
val testCallback: TestCallback = new TestCallback {}
val maxDiscardRatio: Float = 5
val customClassLoader: Option[ClassLoader] = None
val propFilter = None
val propFilter: Option[String] = None
val initialSeed: Option[rng.Seed] = None
}

Expand Down Expand Up @@ -369,7 +369,7 @@ object Test {
val help = "Maximum number of RNG spins to perform between checks"
}

val opts = Set[Opt[_]](
val opts: collection.Set[Opt[_]] = Set[Opt[_]](
OptMinSuccess,
OptMaxDiscardRatio,
OptMinSize,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ object Buildable extends BuildableVersionSpecific {
import java.util.ArrayList
implicit def buildableArrayList[T]: Buildable[T, ArrayList[T]] =
new Buildable[T, ArrayList[T]] {
def builder = new ArrayListBuilder[T]
def builder: mutable.Builder[T, ArrayList[T]] = new ArrayListBuilder[T]
}

def buildableSeq[T]: Buildable[T, Seq[T]] =
Expand Down

0 comments on commit 9e6b4b3

Please sign in to comment.