Skip to content

Commit

Permalink
fix: fix thread warning (#1012)
Browse files Browse the repository at this point in the history
  • Loading branch information
tangcent authored Aug 12, 2023
1 parent 4fc894d commit 5731dd1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ import com.itangcent.common.utils.appendln
import com.itangcent.idea.plugin.api.export.core.ClassExportRuleKeys
import com.itangcent.idea.plugin.api.export.core.DocParseHelper
import com.itangcent.intellij.config.rule.RuleComputer
import com.itangcent.intellij.context.ActionContext
import com.itangcent.intellij.jvm.DocHelper

@Singleton
class UltimateDocHelper {

@Inject
private lateinit var actionContext: ActionContext

@Inject
private val docHelper: DocHelper? = null

Expand All @@ -27,7 +31,7 @@ class UltimateDocHelper {
docText = docText.appendln(it)
}
return when {
docText.isNullOrBlank() -> cls.name
docText.isNullOrBlank() -> actionContext.callInReadUI { cls.name }
docParseHelper != null -> docParseHelper.resolveLinkInAttr(docText, cls)
else -> docText
}
Expand Down

0 comments on commit 5731dd1

Please sign in to comment.