1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Use sets.

This commit is contained in:
Cedric Beust 2015-11-09 18:11:04 -08:00
parent 7ea5fabd77
commit 1af992cf14

View file

@ -52,7 +52,7 @@ class JvmCompiler @Inject constructor(val dependencyManager: DependencyManager)
private fun runClasspathContributors(project: Project?, context: KobaltContext?) : private fun runClasspathContributors(project: Project?, context: KobaltContext?) :
Collection<IClasspathDependency> { Collection<IClasspathDependency> {
val result = arrayListOf<IClasspathDependency>() val result = hashSetOf<IClasspathDependency>()
context!!.pluginInfo.classpathContributors.forEach { it: IClasspathContributor -> context!!.pluginInfo.classpathContributors.forEach { it: IClasspathContributor ->
result.addAll(it.entriesFor(project)) result.addAll(it.entriesFor(project))
} }