@@ -93,7 +93,7 @@ class Runner(val testFile: File, val suiteRunner: SuiteRunner, val nestUI: NestU
93
93
System .err.println(stackTraceString(t))
94
94
}
95
95
protected def crashHandler : PartialFunction [Throwable , TestState ] = {
96
- case t : InterruptedException =>
96
+ case _ : InterruptedException =>
97
97
genTimeout()
98
98
case t : Throwable =>
99
99
showCrashInfo(t)
@@ -209,7 +209,7 @@ class Runner(val testFile: File, val suiteRunner: SuiteRunner, val nestUI: NestU
209
209
val p = Process (args) run pl
210
210
try p.exitValue
211
211
catch {
212
- case e : InterruptedException =>
212
+ case _ : InterruptedException =>
213
213
nestUI.verbose(s " Interrupted waiting for command to finish ( ${args mkString " " }) " )
214
214
p.destroy
215
215
nonzero
@@ -312,7 +312,7 @@ class Runner(val testFile: File, val suiteRunner: SuiteRunner, val nestUI: NestU
312
312
313
313
" \n " + diff
314
314
}
315
- catch { case t : Exception => None }
315
+ catch { case _ : Exception => None }
316
316
}
317
317
318
318
/** Normalize the log output by applying test-specific filters
@@ -759,7 +759,7 @@ class SuiteRunner(
759
759
// |Java Classpath: ${sys.props("java.class.path")}
760
760
}
761
761
762
- def onFinishTest (testFile : File , result : TestState ): TestState = result
762
+ def onFinishTest (@ deprecated( " unused " , " " ) testFile : File , result : TestState ): TestState = result
763
763
764
764
def runTest (testFile : File ): TestState = {
765
765
val runner = new Runner (testFile, this , nestUI)
@@ -782,7 +782,7 @@ class SuiteRunner(
782
782
onFinishTest(testFile, state)
783
783
}
784
784
785
- def runTestsForFiles (kindFiles : Array [File ], kind : String ): Array [TestState ] = {
785
+ def runTestsForFiles (kindFiles : Array [File ]): Array [TestState ] = {
786
786
nestUI.resetTestNumber(kindFiles.size)
787
787
788
788
val pool = Executors .newFixedThreadPool(numThreads)
@@ -795,7 +795,7 @@ class SuiteRunner(
795
795
case Success (_) => futures map (_.get)
796
796
case Failure (e) =>
797
797
e match {
798
- case TimeoutException (d ) =>
798
+ case TimeoutException (_ ) =>
799
799
nestUI.warning(" Thread pool timeout elapsed before all tests were complete!" )
800
800
case ie : InterruptedException =>
801
801
nestUI.warning(" Thread pool was interrupted" )
0 commit comments