From 9206f1cfb2d00f692cffa1f2f7a433d4f47e4f29 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Mon, 23 Dec 2019 16:07:03 +0300 Subject: [PATCH] Remove compatibility hack with reflection usage --- .../idea-maven/src/org/jetbrains/kotlin/idea/maven/PomFile.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/idea/idea-maven/src/org/jetbrains/kotlin/idea/maven/PomFile.kt b/idea/idea-maven/src/org/jetbrains/kotlin/idea/maven/PomFile.kt index 5dd2cbb6c51..685485da2c5 100644 --- a/idea/idea-maven/src/org/jetbrains/kotlin/idea/maven/PomFile.kt +++ b/idea/idea-maven/src/org/jetbrains/kotlin/idea/maven/PomFile.kt @@ -267,10 +267,8 @@ class PomFile private constructor(private val xmlFile: XmlFile, val domModel: Ma return false } - // TODO: getPhase has been added as per https://youtrack.jetbrains.com/issue/IDEA-153582 and available only in latest IDEAs return plugin.executions.filter { it.executionId == executionId }.all { execution -> - execution::class.java.methods.filter { it.name == "getPhase" && it.parameterTypes.isEmpty() } - .all { it.invoke(execution) == DefaultPhases.None } + execution.phase == DefaultPhases.None } }