From d584c0a87d7d0dc22385835402e94ff6f5d23d59 Mon Sep 17 00:00:00 2001 From: Yury Kamenev Date: Fri, 8 Dec 2023 17:01:11 +0300 Subject: [PATCH] Added cache for `jcClass` --- .../src/main/kotlin/org/jacodb/impl/types/JcClassTypeImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jacodb-core/src/main/kotlin/org/jacodb/impl/types/JcClassTypeImpl.kt b/jacodb-core/src/main/kotlin/org/jacodb/impl/types/JcClassTypeImpl.kt index 65576acee..195188452 100644 --- a/jacodb-core/src/main/kotlin/org/jacodb/impl/types/JcClassTypeImpl.kt +++ b/jacodb-core/src/main/kotlin/org/jacodb/impl/types/JcClassTypeImpl.kt @@ -63,7 +63,7 @@ class JcClassTypeImpl( JcClassTypeLookupImpl(this) ) - override val jcClass: JcClassOrInterface get() = classpath.findClass(name) + override val jcClass: JcClassOrInterface by lazy { classpath.findClass(name) } override val access: Int get() = jcClass.access