Fix warnings in compiler code and tests

This commit is contained in:
Alexander Udalov
2020-11-06 20:27:48 +01:00
committed by Alexander Udalov
parent ebfbc2f601
commit d9efc2d922
9 changed files with 30 additions and 23 deletions
@@ -118,7 +118,9 @@ abstract class AbstractLocalVariableTest : AbstractDebugTest() {
}
}
@Suppress("UNCHECKED_CAST")
val compressedLog = compressRunsWithoutLinenumber(loggedItems as List<LVTStep>, LVTStep::location)
val actualLocalVariables = compressedLog.joinToString("\n") {
"// ${it.location.formatAsExpectation()}: ${it.visibleVars.joinToString(", ")}".trim()
}
@@ -56,6 +56,7 @@ abstract class AbstractSteppingTest : AbstractDebugTest() {
val lines = wholeFile.readLines()
val forceStepInto = lines.any { it.startsWith(FORCE_STEP_INTO_MARKER) }
@Suppress("UNCHECKED_CAST")
val actualLineNumbers = compressRunsWithoutLinenumber(loggedItems as List<LocatableEvent>, LocatableEvent::location)
.filter {
val location = it.location()
@@ -98,4 +99,3 @@ abstract class AbstractSteppingTest : AbstractDebugTest() {
assertEqualsToFile(wholeFile, actual.joinToString("\n"))
}
}