[FIR] Replace Enum.values() with entries call

This commit is contained in:
Kirill Rakhman
2024-01-23 12:36:33 +01:00
committed by Space Team
parent 3fba3b703e
commit b509d8efc2
@@ -248,7 +248,7 @@ private fun FirAnnotation.getDeprecationLevel(): DeprecationLevelValue? {
val targetName = argument.extractEnumValueArgumentInfo()?.enumEntryName?.asString() ?: return null
return DeprecationLevelValue.values().find { it.name == targetName }
return DeprecationLevelValue.entries.find { it.name == targetName }
}
private fun List<FirAnnotation>.extractDeprecationAnnotationInfoPerUseSite(