Skip to content

Commit 8f411d3

Browse files
committed
fix deprecated
1 parent f61be9d commit 8f411d3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/kotlin/com/github/adrienpessu/sarifviewer/SarifFileType.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ object SarifFileType : JsonFileType(), INativeFileType {
3737
}
3838

3939
private fun load(path: String, cacheKey: Int, flags: Int): Icon {
40-
return IconManager.getInstance()
41-
.loadRasterizedIcon(path, SarifFileType.javaClass.getClassLoader(), cacheKey, flags)
40+
return IconManager.getInstance().getIcon(path, SarifFileType::class.java)
4241
}
4342

4443
override fun useNativeIcon(): Boolean = false

0 commit comments

Comments
 (0)