small refactoring: hashSets are replaced by sets
This commit is contained in:
@@ -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
|
* 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<String> = hashSetOf()) {
|
enum class FUSEventGroups(groupIdSuffix: String, val events: Set<String> = setOf()) {
|
||||||
|
|
||||||
GradleTarget("gradle.target", gradleTargetEvents),
|
GradleTarget("gradle.target", gradleTargetEvents),
|
||||||
MavenTarget("maven.target", mavenTargetEvents),
|
MavenTarget("maven.target", mavenTargetEvents),
|
||||||
@@ -23,7 +23,7 @@ enum class FUSEventGroups(groupIdSuffix: String, val events: Set<String> = hashS
|
|||||||
val GROUP_ID: String = "kotlin.$groupIdSuffix"
|
val GROUP_ID: String = "kotlin.$groupIdSuffix"
|
||||||
}
|
}
|
||||||
|
|
||||||
val gradleTargetEvents = hashSetOf(
|
val gradleTargetEvents = setOf(
|
||||||
"kotlin-android",
|
"kotlin-android",
|
||||||
"kotlin-platform-common",
|
"kotlin-platform-common",
|
||||||
"kotlin-platform-js",
|
"kotlin-platform-js",
|
||||||
@@ -54,18 +54,18 @@ val gradleTargetEvents = hashSetOf(
|
|||||||
"MPP.native.wasm32",
|
"MPP.native.wasm32",
|
||||||
"MPP.native.zephyrStm32f4Disco"
|
"MPP.native.zephyrStm32f4Disco"
|
||||||
)
|
)
|
||||||
val mavenTargetEvents = hashSetOf(
|
val mavenTargetEvents = setOf(
|
||||||
"common",
|
"common",
|
||||||
"js",
|
"js",
|
||||||
"jvm"
|
"jvm"
|
||||||
)
|
)
|
||||||
val JPSTargetEvents = hashSetOf(
|
val JPSTargetEvents = setOf(
|
||||||
"common",
|
"common",
|
||||||
"js",
|
"js",
|
||||||
"jvm",
|
"jvm",
|
||||||
"native"
|
"native"
|
||||||
)
|
)
|
||||||
val refactoringEvents = hashSetOf(
|
val refactoringEvents = setOf(
|
||||||
"RenameKotlinFileProcessor",
|
"RenameKotlinFileProcessor",
|
||||||
"RenameKotlinFunctionProcessor",
|
"RenameKotlinFunctionProcessor",
|
||||||
"RenameKotlinPropertyProcessor",
|
"RenameKotlinPropertyProcessor",
|
||||||
@@ -78,7 +78,7 @@ val refactoringEvents = hashSetOf(
|
|||||||
"KotlinPushDownHandler",
|
"KotlinPushDownHandler",
|
||||||
"KotlinPullUpHandler"
|
"KotlinPullUpHandler"
|
||||||
)
|
)
|
||||||
val newFileTemplateEvents = hashSetOf(
|
val newFileTemplateEvents = setOf(
|
||||||
"Kotlin File",
|
"Kotlin File",
|
||||||
"Kotlin Class",
|
"Kotlin Class",
|
||||||
"Kotlin Interface",
|
"Kotlin Interface",
|
||||||
@@ -87,7 +87,7 @@ val newFileTemplateEvents = hashSetOf(
|
|||||||
"Kotlin Scratch",
|
"Kotlin Scratch",
|
||||||
"Kotlin Script"
|
"Kotlin Script"
|
||||||
)
|
)
|
||||||
val NPWizardsEvents = hashSetOf(
|
val NPWizardsEvents = setOf(
|
||||||
"KotlinModuleBuilder: JVM (JVM_1_6)",
|
"KotlinModuleBuilder: JVM (JVM_1_6)",
|
||||||
"KotlinModuleBuilder: JVM (JVM_1_8)",
|
"KotlinModuleBuilder: JVM (JVM_1_8)",
|
||||||
"KotlinModuleBuilder: JVM (JVM_9)",
|
"KotlinModuleBuilder: JVM (JVM_9)",
|
||||||
@@ -111,7 +111,7 @@ val NPWizardsEvents = hashSetOf(
|
|||||||
"KotlinDslGradleKotlinJSBrowserFrameworkSupportProvider",
|
"KotlinDslGradleKotlinJSBrowserFrameworkSupportProvider",
|
||||||
"KotlinDslGradleKotlinJSNodeFrameworkSupportProvider"
|
"KotlinDslGradleKotlinJSNodeFrameworkSupportProvider"
|
||||||
)
|
)
|
||||||
val debugEvalEvents = hashSetOf(
|
val debugEvalEvents = setOf(
|
||||||
"Success",
|
"Success",
|
||||||
"NoFrameProxy",
|
"NoFrameProxy",
|
||||||
"ThreadNotAvailable",
|
"ThreadNotAvailable",
|
||||||
|
|||||||
Reference in New Issue
Block a user