From 1af992cf149d70a64742325a60cec079b706598f Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Mon, 9 Nov 2015 18:11:04 -0800 Subject: [PATCH] Use sets. --- src/main/kotlin/com/beust/kobalt/internal/JvmCompiler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/beust/kobalt/internal/JvmCompiler.kt b/src/main/kotlin/com/beust/kobalt/internal/JvmCompiler.kt index c46b9261..7ffd4bda 100644 --- a/src/main/kotlin/com/beust/kobalt/internal/JvmCompiler.kt +++ b/src/main/kotlin/com/beust/kobalt/internal/JvmCompiler.kt @@ -52,7 +52,7 @@ class JvmCompiler @Inject constructor(val dependencyManager: DependencyManager) private fun runClasspathContributors(project: Project?, context: KobaltContext?) : Collection { - val result = arrayListOf() + val result = hashSetOf() context!!.pluginInfo.classpathContributors.forEach { it: IClasspathContributor -> result.addAll(it.entriesFor(project)) }