Skip to content

Commit f879e64

Browse files
committed
Fix more warnings
1 parent 77dae85 commit f879e64

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

compiler/test/dotty/tools/vulpix/ParallelTesting.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ trait ParallelTesting extends RunnerOrchestration:
353353

354354
import summaryReport._
355355

356-
protected final val realStdout = System.out
357-
protected final val realStderr = System.err
356+
protected final val realStdout: PrintStream = System.out
357+
protected final val realStderr: PrintStream = System.err
358358

359359
/** A runnable that logs its contents in a buffer */
360360
trait LoggedRunnable extends Runnable {

presentation-compiler/test/dotty/tools/pc/base/BasePCSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import org.junit.runner.RunWith
2525
import scala.meta.pc.CompletionItemPriority
2626

2727
object TestResources:
28-
val classpath = BuildInfo.ideTestsDependencyClasspath.map(_.toPath).toSeq
28+
val classpath: Seq[Path] = BuildInfo.ideTestsDependencyClasspath.map(_.toPath).toSeq
2929
val classpathSearch =
3030
ClasspathSearch.fromClasspath(classpath, ExcludedPackagesHandler.default)
3131

@@ -34,7 +34,7 @@ abstract class BasePCSuite extends PcAssertions:
3434
val completionItemPriority: CompletionItemPriority = (_: String) => 0
3535
private val isDebug = ManagementFactory.getRuntimeMXBean.getInputArguments.toString.contains("-agentlib:jdwp")
3636

37-
val tmp = Files.createTempDirectory("stable-pc-tests")
37+
val tmp: Path = Files.createTempDirectory("stable-pc-tests")
3838
val executorService: ScheduledExecutorService =
3939
Executors.newSingleThreadScheduledExecutor()
4040
val testingWorkspaceSearch = TestingWorkspaceSearch(

presentation-compiler/test/dotty/tools/pc/utils/MockSymbolSearch.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class MockSymbolSearch(
6666
override def documentation(
6767
symbol: String,
6868
parents: ParentSymbols
69-
) = documentation(symbol, parents, ContentType.MARKDOWN)
69+
): Optional[SymbolDocumentation] = documentation(symbol, parents, ContentType.MARKDOWN)
7070

7171
override def documentation(
7272
symbol: String,

0 commit comments

Comments
 (0)