From 87fb6dd3b89579424a8cf24be90bf29045f6a4b1 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Thu, 22 Sep 2016 19:43:31 +0300 Subject: [PATCH] Minor: rename ForkJoinPoolPatcherForTeamCityTesting -> ThreadTrackerPatcherForTeamCityTesting (cherry picked from commit c6b128e) --- idea/src/org/jetbrains/kotlin/idea/PluginStartupComponent.java | 2 +- ...CityTesting.kt => ThreadTrackerPatcherForTeamCityTesting.kt} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename idea/src/org/jetbrains/kotlin/idea/{ForkJoinPoolPatcherForTeamCityTesting.kt => ThreadTrackerPatcherForTeamCityTesting.kt} (98%) 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() {