diff --git a/idea/src/org/jetbrains/kotlin/idea/PluginStartupComponent.java b/idea/src/org/jetbrains/kotlin/idea/PluginStartupComponent.java index b1791a517ac..205ef7dbe66 100644 --- a/idea/src/org/jetbrains/kotlin/idea/PluginStartupComponent.java +++ b/idea/src/org/jetbrains/kotlin/idea/PluginStartupComponent.java @@ -55,7 +55,7 @@ public class PluginStartupComponent implements ApplicationComponent { registerPathVariable(); if (ApplicationManager.getApplication().isUnitTestMode()) { - ForkJoinPoolPatcherForTeamCityTesting.INSTANCE.patchThreadTracker(); + ThreadTrackerPatcherForTeamCityTesting.INSTANCE.patchThreadTracker(); } JarUserDataManager.INSTANCE.register(KotlinJavaScriptLibraryDetectionUtil.HasKotlinJSMetadataInJar.INSTANCE); diff --git a/idea/src/org/jetbrains/kotlin/idea/ForkJoinPoolPatcherForTeamCityTesting.kt b/idea/src/org/jetbrains/kotlin/idea/ThreadTrackerPatcherForTeamCityTesting.kt similarity index 98% rename from idea/src/org/jetbrains/kotlin/idea/ForkJoinPoolPatcherForTeamCityTesting.kt rename to idea/src/org/jetbrains/kotlin/idea/ThreadTrackerPatcherForTeamCityTesting.kt index 24168b679b7..4786494cc69 100644 --- a/idea/src/org/jetbrains/kotlin/idea/ForkJoinPoolPatcherForTeamCityTesting.kt +++ b/idea/src/org/jetbrains/kotlin/idea/ThreadTrackerPatcherForTeamCityTesting.kt @@ -32,7 +32,7 @@ Standard names for ForkJoinPool threads doesn't pass ThreadTracker.checkLeak() c As it's allowed to reorder tests on TeamCity and any test can be first at some point, this patch should be applied at some common place. */ -object ForkJoinPoolPatcherForTeamCityTesting { +object ThreadTrackerPatcherForTeamCityTesting { private val patched = AtomicBoolean(false) fun patchThreadTracker() {