@@ -93,7 +93,7 @@ class Runner(val testFile: File, val suiteRunner: SuiteRunner, val nestUI: NestU
9393 System .err.println(stackTraceString(t))
9494 }
9595 protected def crashHandler : PartialFunction [Throwable , TestState ] = {
96- case t : InterruptedException =>
96+ case _ : InterruptedException =>
9797 genTimeout()
9898 case t : Throwable =>
9999 showCrashInfo(t)
@@ -209,7 +209,7 @@ class Runner(val testFile: File, val suiteRunner: SuiteRunner, val nestUI: NestU
209209 val p = Process (args) run pl
210210 try p.exitValue
211211 catch {
212- case e : InterruptedException =>
212+ case _ : InterruptedException =>
213213 nestUI.verbose(s " Interrupted waiting for command to finish ( ${args mkString " " }) " )
214214 p.destroy
215215 nonzero
@@ -312,7 +312,7 @@ class Runner(val testFile: File, val suiteRunner: SuiteRunner, val nestUI: NestU
312312
313313 " \n " + diff
314314 }
315- catch { case t : Exception => None }
315+ catch { case _ : Exception => None }
316316 }
317317
318318 /** Normalize the log output by applying test-specific filters
@@ -759,7 +759,7 @@ class SuiteRunner(
759759 // |Java Classpath: ${sys.props("java.class.path")}
760760 }
761761
762- def onFinishTest (testFile : File , result : TestState ): TestState = result
762+ def onFinishTest (@ deprecated( " unused " , " " ) testFile : File , result : TestState ): TestState = result
763763
764764 def runTest (testFile : File ): TestState = {
765765 val runner = new Runner (testFile, this , nestUI)
@@ -782,7 +782,7 @@ class SuiteRunner(
782782 onFinishTest(testFile, state)
783783 }
784784
785- def runTestsForFiles (kindFiles : Array [File ], kind : String ): Array [TestState ] = {
785+ def runTestsForFiles (kindFiles : Array [File ]): Array [TestState ] = {
786786 nestUI.resetTestNumber(kindFiles.size)
787787
788788 val pool = Executors .newFixedThreadPool(numThreads)
@@ -795,7 +795,7 @@ class SuiteRunner(
795795 case Success (_) => futures map (_.get)
796796 case Failure (e) =>
797797 e match {
798- case TimeoutException (d ) =>
798+ case TimeoutException (_ ) =>
799799 nestUI.warning(" Thread pool timeout elapsed before all tests were complete!" )
800800 case ie : InterruptedException =>
801801 nestUI.warning(" Thread pool was interrupted" )
0 commit comments