From e54e6a3f319f5b03ee0b8a89b4b7942e06197fba Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Mon, 12 Oct 2015 19:57:59 +0300 Subject: [PATCH] Minor: fix build --- .../jetbrains/kotlin/jps/build/KotlinJpsBuildTest.kt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/jps-plugin/test/org/jetbrains/kotlin/jps/build/KotlinJpsBuildTest.kt b/jps-plugin/test/org/jetbrains/kotlin/jps/build/KotlinJpsBuildTest.kt index 5c807b2c89c..aa9d2abb009 100644 --- a/jps-plugin/test/org/jetbrains/kotlin/jps/build/KotlinJpsBuildTest.kt +++ b/jps-plugin/test/org/jetbrains/kotlin/jps/build/KotlinJpsBuildTest.kt @@ -757,18 +757,19 @@ public class KotlinJpsBuildTest : AbstractKotlinJpsBuildTestCase() { DELETE } - protected fun touch(path: String): Action = Action(Operation.CHANGE, path) + private fun touch(path: String): Action = Action(Operation.CHANGE, path) - protected fun del(path: String): Action = Action(Operation.DELETE, path) + private fun del(path: String): Action = Action(Operation.DELETE, path) - protected fun change(filePath: String): Unit = JpsBuildTestCase.change(filePath) + // TODO inline after KT-3974 will be fixed + private fun touch(file: File): Unit = JpsBuildTestCase.change(file.absolutePath) - protected inner class Action constructor(private val operation: Operation, private val path: String) { + private inner class Action constructor(private val operation: Operation, private val path: String) { fun apply() { val file = File(workDir, path) when (operation) { Operation.CHANGE -> - change(file.getAbsolutePath()) + touch(file) Operation.DELETE -> assertTrue(file.delete(), "Can not delete file \"" + file.getAbsolutePath() + "\"") else ->