Minor: forgotten change after review

This commit is contained in:
Nikolay Krasko
2019-11-27 11:30:33 +03:00
parent 35fec9e9db
commit c14affd6cd
@@ -92,8 +92,11 @@ private fun KtAnnotationEntry.getRequiredAnnotationTargets(annotationClass: KtCl
} }
}.flatten().toSet() }.flatten().toSet()
val annotationTargetValueNames = AnnotationTarget.values().map { it.name } val annotationTargetValueNames = AnnotationTarget.values().map { it.name }
return (requiredTargets + otherReferenceRequiredTargets).asSequence().distinct().filter { it.name in annotationTargetValueNames } return (requiredTargets + otherReferenceRequiredTargets).asSequence()
.toList().sorted() .distinct()
.filter { it.name in annotationTargetValueNames }
.sorted()
.toList()
} }
private fun getActualTargetList(annotated: PsiTarget): AnnotationChecker.Companion.TargetList { private fun getActualTargetList(annotated: PsiTarget): AnnotationChecker.Companion.TargetList {