Optimize LazyJavaAnnotations::isEmpty

This commit is contained in:
Denis Zharkov
2017-11-23 16:23:51 +03:00
parent 07df29dfbf
commit 6007d244f3
@@ -47,7 +47,7 @@ class LazyJavaAnnotations(
(annotationOwner.annotations.asSequence().map(annotationDescriptors)
+ JavaAnnotationMapper.findMappedJavaAnnotation(KotlinBuiltIns.FQ_NAMES.deprecated, annotationOwner, c)).filterNotNull().iterator()
override fun isEmpty() = !iterator().hasNext()
override fun isEmpty() = annotationOwner.annotations.isEmpty() && !annotationOwner.isDeprecatedInJavaDoc
}
fun LazyJavaResolverContext.resolveAnnotations(annotationsOwner: JavaAnnotationOwner): Annotations