Add default implementation for Annotations.findAnnotation

This commit is contained in:
Alexander Udalov
2017-07-19 15:00:33 +03:00
parent def3f73fdd
commit 5128b8a409
6 changed files with 3 additions and 17 deletions
@@ -31,8 +31,6 @@ open class DeserializedAnnotations(
override fun isEmpty(): Boolean = annotations.isEmpty()
override fun findAnnotation(fqName: FqName) = annotations.firstOrNull { it.fqName == fqName }
override fun getUseSiteTargetedAnnotations(): List<AnnotationWithTarget> = emptyList()
override fun getAllAnnotations(): List<AnnotationWithTarget> = annotations.map { AnnotationWithTarget(it, null) }