From 10c659dc43a358385f895a029be5cc0dc494a503 Mon Sep 17 00:00:00 2001 From: Nikolay Chashnikov Date: Thu, 26 Sep 2024 11:28:01 +0200 Subject: [PATCH] [plugins] cleanup: use property access syntax in PluginManagerCore for brevity and consistency GitOrigin-RevId: 4d1f3909d4438322aab6f59544a12fcfff4ff49b --- .../src/com/intellij/ide/plugins/PluginManagerCore.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/platform/core-impl/src/com/intellij/ide/plugins/PluginManagerCore.kt b/platform/core-impl/src/com/intellij/ide/plugins/PluginManagerCore.kt index 6d64d50d4e0c..4537ea15b83e 100644 --- a/platform/core-impl/src/com/intellij/ide/plugins/PluginManagerCore.kt +++ b/platform/core-impl/src/com/intellij/ide/plugins/PluginManagerCore.kt @@ -708,12 +708,12 @@ object PluginManagerCore { descriptor.isEnabled = false } //write the list of third-party plugins back to ensure that the privacy note will be shown next time - writeThirdPartyPluginsIds(aliens.map { it.getPluginId() }) + writeThirdPartyPluginsIds(aliens.map { it.pluginId }) } else if (AppMode.isRemoteDevHost()) { logger.warn(""" |New third-party plugins were installed, they will be disabled because asking for consent to use third-party plugins during startup isn't supported in remote development mode: - | ${aliens.joinToString(separator = "\n ") { it.getName() }} + | ${aliens.joinToString(separator = "\n ") { it.name }} |Use '--give-consent-to-use-third-party-plugins' option in 'installPlugins' option to approve installed third-party plugins automatically. |""".trimMargin()) disableThirdPartyPlugins() @@ -848,12 +848,12 @@ object PluginManagerCore { @JvmStatic fun getPluginNameAndVendor(descriptor: IdeaPluginDescriptor): @Nls String { - val vendor = descriptor.getVendor() ?: descriptor.organization + val vendor = descriptor.vendor ?: descriptor.organization if (vendor.isNullOrEmpty()) { - return CoreBundle.message("plugin.name.and.unknown.vendor", descriptor.getName()) + return CoreBundle.message("plugin.name.and.unknown.vendor", descriptor.name) } else { - return CoreBundle.message("plugin.name.and.vendor", descriptor.getName(), vendor) + return CoreBundle.message("plugin.name.and.vendor", descriptor.name, vendor) } }