Resolve annotations on classes lazily

This commit is contained in:
Andrey Breslav
2013-11-01 18:53:09 +04:00
parent 137f33c829
commit 8ee344132d
@@ -68,8 +68,8 @@ class LazyJavaClassDescriptor(
override fun getClassObjectDescriptor(): ClassDescriptor? = null
private val _annotations = c.resolveAnnotations(jClass.getAnnotations())
override fun getAnnotations(): List<AnnotationDescriptor> = _annotations
private val _annotations = c.storageManager.createLazyValue { c.resolveAnnotations(jClass.getAnnotations()) }
override fun getAnnotations(): List<AnnotationDescriptor> = _annotations()
private val _functionTypeForSamInterface = c.storageManager.createNullableLazyValue {
val samInterfaceMethod = SingleAbstractMethodUtils.getSamInterfaceMethod(jClass);