php-perfect / ddev-intellij-plugin

DDEV Tool Integration for IntelliJ IDEA
https://plugins.jetbrains.com/plugin/18813-ddev-integration
BSD 3-Clause "New" or "Revised" License
109 stars 15 forks source link

refactor(icons): Use the ClassLoader overload of getIcon #240

Closed pan93412 closed 1 year ago

pan93412 commented 1 year ago

The Problem/Issue/Bug:

According to https://github.com/JetBrains/intellij-community/blob/0c1f99dc08e1542c4f0da0e2361ac0599849ffa7/platform/util/src/com/intellij/ui/IconManager.kt#L53-L54, the fun getIcon(path: String, aClass: Class<*>): Icon signature has been deprecated.

How this PR Solves the Problem:

Migrate it to fun getIcon(path: String, classLoader: ClassLoader): Icon.

Manual Testing Instructions:

Not test yet.

Related Issue Link(s):

None.