From 0dc67ef44c5ead3799919fc07013c31052328443 Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Wed, 5 Jun 2024 09:12:26 +0200 Subject: [PATCH] Fix links and minor grammar issues GitOrigin-RevId: f700395c9ca7b1f34683104508ff42481a635f46 --- .../openapi/extensions/impl/ExtensionPointImpl.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/extensions/src/com/intellij/openapi/extensions/impl/ExtensionPointImpl.kt b/platform/extensions/src/com/intellij/openapi/extensions/impl/ExtensionPointImpl.kt index c4d318fd81fb..b58cfd13bcd8 100644 --- a/platform/extensions/src/com/intellij/openapi/extensions/impl/ExtensionPointImpl.kt +++ b/platform/extensions/src/com/intellij/openapi/extensions/impl/ExtensionPointImpl.kt @@ -62,8 +62,8 @@ sealed class ExtensionPointImpl(@JvmField val name: String, companion object { // XmlExtensionAdapter.createInstance takes a lock on itself. // If it's called without EP lock and tries to add an EP listener, we can get a deadlock because of lock ordering violation - // (EP->adapter in one thread, adapter->EP in the other thread) - // Could happen if extension constructor called addExtensionPointListener on EP. + // (EP->adapter in one thread, adapter->EP in the other thread). + // Could happen if an extension constructor calls addExtensionPointListener on EP. // So, updating of listeners is a lock-free as a solution. private val listenerUpdater = AtomicReferenceFieldUpdater.newUpdater(ExtensionPointImpl::class.java, PersistentList::class.java, "listeners") @@ -442,7 +442,7 @@ sealed class ExtensionPointImpl(@JvmField val name: String, /** * Put extension point in read-only mode and replace existing extensions by supplied. - * For tests this method is more preferable than [.registerExtension] because makes registration more isolated and strict + * For tests this method is more preferable than [registerExtension] because makes registration more isolated and strict * (no one can modify extension point until `parentDisposable` is not disposed). * * @@ -827,8 +827,8 @@ sealed class ExtensionPointImpl(@JvmField val name: String, componentManager: ComponentManager): ExtensionComponentAdapter /** - * [.clearCache] is not called. - * `adapters` is modified directly without copying - method must be called only during start-up. + * [clearCache] is not called. + * `adapters` is modified directly without copying - the method must be called only during start-up. */ @Synchronized fun registerExtensions(descriptors: List, @@ -1048,7 +1048,7 @@ private fun isInsideClassInitializer(trace: Array): Boolean { } } -// the instantiation of extension is done in a safe manner always — will be logged as error with a plugin id +// the instantiation of an extension is done in a safe manner always — will be logged as an error with a plugin id private fun getOrCreateExtensionInstance(adapter: ExtensionComponentAdapter, componentManager: ComponentManager): T? { if (!checkThatClassloaderIsActive(adapter)) { return null