Skip to content

Commit

Permalink
refactor: remove deprecated usage of PluginManager#getPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
lppedd committed Aug 2, 2021
1 parent 81f30d0 commit b3bcd13
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
Expand Down Expand Up @@ -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<PluginVersion> {
private val parts = version.split(".").map(String::toInt)
Expand Down

0 comments on commit b3bcd13

Please sign in to comment.