From c8ad7b95cd72f1210dd54425dab69c67ad7c9c54 Mon Sep 17 00:00:00 2001 From: Anton Yalyshev Date: Mon, 24 Jun 2019 16:25:37 +0300 Subject: [PATCH] small refactoring: hashSets are replaced by sets --- .../kotlin/idea/statistics/FUSEventGroups.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/idea/idea-core/src/org/jetbrains/kotlin/idea/statistics/FUSEventGroups.kt b/idea/idea-core/src/org/jetbrains/kotlin/idea/statistics/FUSEventGroups.kt index 529d9dd30f0..8e8e137958e 100644 --- a/idea/idea-core/src/org/jetbrains/kotlin/idea/statistics/FUSEventGroups.kt +++ b/idea/idea-core/src/org/jetbrains/kotlin/idea/statistics/FUSEventGroups.kt @@ -10,7 +10,7 @@ package org.jetbrains.kotlin.idea.statistics * * Default value for [events] parameter is intended for collectors which don't have yet a set of allowed values for FUS Whitelist */ -enum class FUSEventGroups(groupIdSuffix: String, val events: Set = hashSetOf()) { +enum class FUSEventGroups(groupIdSuffix: String, val events: Set = setOf()) { GradleTarget("gradle.target", gradleTargetEvents), MavenTarget("maven.target", mavenTargetEvents), @@ -23,7 +23,7 @@ enum class FUSEventGroups(groupIdSuffix: String, val events: Set = hashS val GROUP_ID: String = "kotlin.$groupIdSuffix" } -val gradleTargetEvents = hashSetOf( +val gradleTargetEvents = setOf( "kotlin-android", "kotlin-platform-common", "kotlin-platform-js", @@ -54,18 +54,18 @@ val gradleTargetEvents = hashSetOf( "MPP.native.wasm32", "MPP.native.zephyrStm32f4Disco" ) -val mavenTargetEvents = hashSetOf( +val mavenTargetEvents = setOf( "common", "js", "jvm" ) -val JPSTargetEvents = hashSetOf( +val JPSTargetEvents = setOf( "common", "js", "jvm", "native" ) -val refactoringEvents = hashSetOf( +val refactoringEvents = setOf( "RenameKotlinFileProcessor", "RenameKotlinFunctionProcessor", "RenameKotlinPropertyProcessor", @@ -78,7 +78,7 @@ val refactoringEvents = hashSetOf( "KotlinPushDownHandler", "KotlinPullUpHandler" ) -val newFileTemplateEvents = hashSetOf( +val newFileTemplateEvents = setOf( "Kotlin File", "Kotlin Class", "Kotlin Interface", @@ -87,7 +87,7 @@ val newFileTemplateEvents = hashSetOf( "Kotlin Scratch", "Kotlin Script" ) -val NPWizardsEvents = hashSetOf( +val NPWizardsEvents = setOf( "KotlinModuleBuilder: JVM (JVM_1_6)", "KotlinModuleBuilder: JVM (JVM_1_8)", "KotlinModuleBuilder: JVM (JVM_9)", @@ -111,7 +111,7 @@ val NPWizardsEvents = hashSetOf( "KotlinDslGradleKotlinJSBrowserFrameworkSupportProvider", "KotlinDslGradleKotlinJSNodeFrameworkSupportProvider" ) -val debugEvalEvents = hashSetOf( +val debugEvalEvents = setOf( "Success", "NoFrameProxy", "ThreadNotAvailable",