From b3bcd13713dce9ceda049095962cc011cef42485 Mon Sep 17 00:00:00 2001 From: Edoardo Luppi Date: Mon, 2 Aug 2021 22:25:26 +0200 Subject: [PATCH] refactor: remove deprecated usage of PluginManager#getPlugin --- .../com/github/lppedd/cc/whatsnew/DefaultWhatsNewProvider.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/github/lppedd/cc/whatsnew/DefaultWhatsNewProvider.kt b/src/main/kotlin/com/github/lppedd/cc/whatsnew/DefaultWhatsNewProvider.kt index c1276836..2c05f796 100644 --- a/src/main/kotlin/com/github/lppedd/cc/whatsnew/DefaultWhatsNewProvider.kt +++ b/src/main/kotlin/com/github/lppedd/cc/whatsnew/DefaultWhatsNewProvider.kt @@ -3,7 +3,7 @@ package com.github.lppedd.cc.whatsnew import com.github.lppedd.cc.CC import com.github.lppedd.cc.api.WhatsNewProvider import com.intellij.ide.plugins.IdeaPluginDescriptor -import com.intellij.ide.plugins.PluginManager +import com.intellij.ide.plugins.PluginManagerCore import com.intellij.ide.util.PropertiesComponent import com.intellij.openapi.extensions.PluginId import java.util.* @@ -37,7 +37,7 @@ internal class DefaultWhatsNewProvider : WhatsNewProvider() { } private fun getPlugin(): IdeaPluginDescriptor? = - PluginManager.getPlugin(PluginId.findId(CC.PluginId)) + PluginManagerCore.getPlugin(PluginId.findId(CC.PluginId)) private class PluginVersion(version: String) : Comparable { private val parts = version.split(".").map(String::toInt)