Skip to content

Commit

Permalink
Fix deprecated usages
Browse files Browse the repository at this point in the history
  • Loading branch information
RedNesto committed Dec 6, 2023
1 parent 565e4a0 commit ca63c86
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import com.intellij.psi.PsiMethodCallExpression
import com.intellij.psi.PsiParameter
import com.intellij.psi.PsiReferenceExpression
import com.intellij.psi.PsiType
import com.intellij.psi.PsiTypes
import com.intellij.psi.search.searches.OverridingMethodsSearch
import com.intellij.psi.search.searches.ReferencesSearch
import com.intellij.psi.util.PsiUtil
Expand Down Expand Up @@ -183,13 +184,13 @@ class UnnecessaryMutableLocalInspection : MixinInspection() {
private val PsiClassType.innerRefType: PsiType?
get() =
when (resolve()?.qualifiedName?.substringAfterLast('.')) {
"LocalBooleanRef" -> PsiType.BOOLEAN
"LocalCharRef" -> PsiType.CHAR
"LocalDoubleRef" -> PsiType.DOUBLE
"LocalFloatRef" -> PsiType.FLOAT
"LocalIntRef" -> PsiType.INT
"LocalLongRef" -> PsiType.LONG
"LocalShortRef" -> PsiType.SHORT
"LocalBooleanRef" -> PsiTypes.booleanType()
"LocalCharRef" -> PsiTypes.charType()
"LocalDoubleRef" -> PsiTypes.doubleType()
"LocalFloatRef" -> PsiTypes.floatType()
"LocalIntRef" -> PsiTypes.intType()
"LocalLongRef" -> PsiTypes.longType()
"LocalShortRef" -> PsiTypes.shortType()
"LocalRef" -> parameters.getOrNull(0)
else -> null
}
Expand Down

0 comments on commit ca63c86

Please sign in to comment.