J2K AnnotationDescriptor, refactor implementations
This commit is contained in:
@@ -119,7 +119,7 @@ class UnusedSymbolInspection : AbstractKotlinInspection() {
|
||||
// variation of IDEA's AnnotationUtil.checkAnnotatedUsingPatterns()
|
||||
private fun checkAnnotatedUsingPatterns(annotated: Annotated, annotationPatterns: Collection<String>): Boolean {
|
||||
val annotationsPresent = annotated.annotations
|
||||
.map(AnnotationDescriptor::getType)
|
||||
.map(AnnotationDescriptor::type)
|
||||
.filterNot(KotlinType::isError)
|
||||
.mapNotNull { it.constructor.declarationDescriptor?.let { descriptor ->
|
||||
DescriptorUtils.getFqName(descriptor).asString()
|
||||
|
||||
Reference in New Issue
Block a user