Skip to content

Commit

Permalink
Remove usage of deprecated method in 2024.3
Browse files Browse the repository at this point in the history
  • Loading branch information
serras committed Nov 26, 2024
1 parent 69c4fd2 commit 3e9fe1b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "2.0.20"
id("org.jetbrains.kotlin.jvm") version "2.0.21"
id("org.jetbrains.intellij.platform") version "2.1.0"
}

Expand All @@ -20,7 +20,7 @@ repositories {

dependencies {
intellijPlatform {
intellijIdeaCommunity("2024.2.1")
intellijIdeaCommunity("2024.3")
instrumentationTools()
pluginVerifier()
bundledPlugin("com.intellij.java")
Expand All @@ -29,8 +29,8 @@ dependencies {
}

object Supported {
const val sinceBuild = "242.2.1"
const val untilBuild = "243.*"
const val sinceBuild = "243"
const val untilBuild = "251.*"
}

intellijPlatform {
Expand All @@ -41,7 +41,7 @@ intellijPlatform {
recommended()
select {
types = listOf(IntelliJPlatformType.IntellijIdeaCommunity)
channels = listOf(ProductRelease.Channel.RELEASE, ProductRelease.Channel.EAP)
channels = listOf(ProductRelease.Channel.RELEASE, ProductRelease.Channel.BETA, ProductRelease.Channel.EAP)
sinceBuild = Supported.sinceBuild
untilBuild = Supported.untilBuild
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class EscapedRaiseInspection: AbstractKotlinInspection() {
val visitor = callExpressionRecursiveVisitor loop@{ expr ->
val call = expr.resolveToCall()?.successfulCallOrNull<KaCallableMemberCall<*, *>>() ?: return@loop
val containing = isClassId(RAISE_ID, call.symbol.containingDeclaration as? KaClassSymbol)
val param = isClassId(RAISE_ID, call.symbol.receiverParameter?.type)
val param = isClassId(RAISE_ID, call.symbol.receiverParameter?.returnType)
if (containing || param) { somethingFound = true }
}
visitor.visitLambdaExpression(lambda)
Expand Down

0 comments on commit 3e9fe1b

Please sign in to comment.