Skip to content

Commit

Permalink
Get rid of @OptIn(IDEAPluginsCompatibilityAPI::class)
Browse files Browse the repository at this point in the history
  • Loading branch information
Godin authored Oct 22, 2024
1 parent 1dfc63a commit 6cf2db2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ package org.sonarsource.kotlin.checks

import org.jetbrains.kotlin.psi.KtCallExpression
import org.jetbrains.kotlin.psi.KtDotQualifiedExpression
import org.jetbrains.kotlin.resolve.calls.callUtil.getCall
import org.jetbrains.kotlin.resolve.calls.model.ResolvedCall
import org.jetbrains.kotlin.utils.IDEAPluginsCompatibilityAPI
import org.jetbrains.kotlin.resolve.calls.util.getCall
import org.sonar.check.Rule
import org.sonarsource.kotlin.api.checks.CallAbstractCheck
import org.sonarsource.kotlin.api.checks.FunMatcher
Expand All @@ -42,7 +41,6 @@ class SimplifyFilteringBeforeTerminalOperationCheck : CallAbstractCheck() {
}
)

@OptIn(IDEAPluginsCompatibilityAPI::class)
override fun visitFunctionCall(callExpression: KtCallExpression, resolvedCall: ResolvedCall<*>, kotlinFileContext: KotlinFileContext) {
callExpression.parent
.let { it as? KtDotQualifiedExpression }
Expand Down

0 comments on commit 6cf2db2

Please sign in to comment.