Skip to content

Commit 2608b11

Browse files
SrTobibuilduser
authored andcommitted
don't calculate getPriority lazily #SCL-25510 fixed
It might be called in a non-read context (cherry picked from commit 972ff75065e45e8c59d178f92cb55c4158edfeb4)
1 parent 507aa6d commit 2608b11

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

scala/scala-impl/src/org/jetbrains/plugins/scala/codeInspection/declarationRedundancy/ScalaAccessCanBeTightenedInspection.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ private object ScalaAccessCanBeTightenedInspection {
8585
extends LocalQuickFixAndIntentionActionOnPsiElement(element)
8686
with PriorityAction {
8787

88-
private lazy val priority = quickFixPriority(element)
89-
90-
override def getPriority: PriorityAction.Priority = priority
88+
override val getPriority: PriorityAction.Priority = quickFixPriority(element)
9189

9290
override def getText: String = ScalaInspectionBundle.message("make.private")
9391

0 commit comments

Comments
 (0)