From 901447c1f6d0eee87cb7db99fe809878fb4995ea Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Tue, 26 Jul 2016 02:24:44 -0800 Subject: [PATCH] Use a val. --- .../src/main/kotlin/com/beust/kobalt/internal/GenericRunner.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/GenericRunner.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/GenericRunner.kt index a779cd1e..5938d7b1 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/GenericRunner.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/GenericRunner.kt @@ -152,7 +152,7 @@ abstract class GenericTestRunner: ITestRunnerContributor { } // JVM flags from the interceptors (these overwrite flags instead of just adding to the list) - var result = ArrayList(jvmFlags + jvmFlagsFromContributors) + val result = ArrayList(jvmFlags + jvmFlagsFromContributors) pluginInfo.testJvmFlagInterceptors.forEach { val newFlags = it.testJvmFlagsFor(project, context, result) result.clear()