mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[gradle][toml] IDEA-370681 cleanup: replaces enum.values() with enum.entries in GradleUnusedVersionCatalogInspectionTest
GitOrigin-RevId: ad57c6768e664573b9cad6c2860aefea904459c4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e5d95c5c25
commit
bd7bee6d29
@@ -26,7 +26,7 @@ class UnusedVersionCatalogEntryInspection : LocalInspectionTool() {
|
||||
if (!isInVersionCatalog(element)) return
|
||||
|
||||
val headerName = element.parentOfType<TomlKeyValue>()?.parent.asSafely<TomlTable>()?.header?.key?.name
|
||||
?.let { name -> VersionCatalogHeader.values().find { it.repr == name } } ?: return
|
||||
?.let { name -> VersionCatalogHeader.entries.find { it.repr == name } } ?: return
|
||||
|
||||
val usage = ReferencesSearch.search(element).findFirst()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user