From 3e9fe1b633d6f4338c7a0d583c692ae1a6aa5f41 Mon Sep 17 00:00:00 2001 From: Alejandro Serrano Date: Tue, 26 Nov 2024 21:06:13 +0100 Subject: [PATCH] Remove usage of deprecated method in 2024.3 --- build.gradle.kts | 10 +++++----- gradle/wrapper/gradle-wrapper.properties | 2 +- .../arrow/intellij/raise/EscapedRaiseInspection.kt | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index e56e09f..1bbfaf5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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" } @@ -20,7 +20,7 @@ repositories { dependencies { intellijPlatform { - intellijIdeaCommunity("2024.2.1") + intellijIdeaCommunity("2024.3") instrumentationTools() pluginVerifier() bundledPlugin("com.intellij.java") @@ -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 { @@ -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 } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 48c0a02..81aa1c0 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -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 diff --git a/src/main/kotlin/arrow/intellij/raise/EscapedRaiseInspection.kt b/src/main/kotlin/arrow/intellij/raise/EscapedRaiseInspection.kt index 3a52f30..77892eb 100644 --- a/src/main/kotlin/arrow/intellij/raise/EscapedRaiseInspection.kt +++ b/src/main/kotlin/arrow/intellij/raise/EscapedRaiseInspection.kt @@ -75,7 +75,7 @@ class EscapedRaiseInspection: AbstractKotlinInspection() { val visitor = callExpressionRecursiveVisitor loop@{ expr -> val call = expr.resolveToCall()?.successfulCallOrNull>() ?: 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)