Skip to content

Commit 225e711

Browse files
committed
Fixed external dependency parser caching
1 parent 2afea5a commit 225e711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/lsifjava/ExternalDocs.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ExternalDocs(private val docPaths: List<Path>) {
2929
fun findDocForElement(containerClass: String, javac: JavacTool, element: Element): ExternalHoverMeta? {
3030
val context = DocumentIndexer.SimpleContext()
3131

32-
val (task, compUnit) = fileCache.getOrElse(containerClass) { analyzeFileFromJar(containerClass, context, javac) }
32+
val (task, compUnit) = fileCache.getOrPut(containerClass) { analyzeFileFromJar(containerClass, context, javac) }
3333
?: return null
3434

3535
return DocExtractionVisitor(task, element).scan(compUnit, null)

0 commit comments

Comments
 (0)