diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/checkers/AbstractDiagnosticsTest.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/checkers/AbstractDiagnosticsTest.kt index 8e2157d18ca..5a1da2b51ae 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/checkers/AbstractDiagnosticsTest.kt +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/checkers/AbstractDiagnosticsTest.kt @@ -198,7 +198,7 @@ abstract class AbstractDiagnosticsTest : BaseDiagnosticsTest() { val isCommonModule = modules[module]!!.platform.isCommon() val implementingModules = if (!isCommonModule) emptyList() - else modules.entries.filter { (testModule) -> module in testModule?.getDependencies().orEmpty() } + else modules.entries.filter { (testModule) -> module in testModule?.dependencies.orEmpty() } val implementingModulesBindings = implementingModules.mapNotNull { (testModule, moduleDescriptor) -> val platform = moduleDescriptor.platform if (platform != null && !platform.isCommon()) platform to moduleBindings[testModule]!! @@ -655,7 +655,7 @@ abstract class AbstractDiagnosticsTest : BaseDiagnosticsTest() { val module = modules[testModule]!! val dependencies = ArrayList() dependencies.add(module) - for (dependency in testModule.getDependencies()) { + for (dependency in testModule.dependencies) { dependencies.add(modules[dependency]!!) } diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/fir/AbstractFirBaseDiagnosticsTest.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/fir/AbstractFirBaseDiagnosticsTest.kt index 075bac53410..7cbba0dc64b 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/fir/AbstractFirBaseDiagnosticsTest.kt +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/fir/AbstractFirBaseDiagnosticsTest.kt @@ -140,7 +140,7 @@ abstract class AbstractFirBaseDiagnosticsTest : BaseDiagnosticsTest() { val module = modules[testModule]!! val dependencies = ArrayList() dependencies.add(module) - for (dependency in testModule.getDependencies()) { + for (dependency in testModule.dependencies) { dependencies.add(modules[dependency]!!) } diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinBaseTest.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinBaseTest.kt index af3cedf6075..d4405db4168 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinBaseTest.kt +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinBaseTest.kt @@ -94,12 +94,8 @@ abstract class KotlinBaseTest : KtUsefulTestCase() @JvmField val friendsSymbols: List ) : Comparable { - private val dependencies = ArrayList() - private val friends = ArrayList() - - fun getDependencies(): MutableList = dependencies - - fun getFriends(): MutableList = friends + val dependencies: MutableList = arrayListOf() + val friends: MutableList = arrayListOf() override fun compareTo(other: TestModule): Int = name.compareTo(other.name)