Cleanup: apply RemoveRedundantQualifierNameInspection to idea
This commit is contained in:
@@ -257,11 +257,11 @@ class PomFile private constructor(private val xmlFile: XmlFile, val domModel: Ma
|
||||
}
|
||||
|
||||
if (isPluginExecutionMissing(plugin, "default-compile", "compile")) {
|
||||
addExecution(javacPlugin, "compile", PomFile.DefaultPhases.Compile, listOf("compile"))
|
||||
addExecution(javacPlugin, "compile", DefaultPhases.Compile, listOf("compile"))
|
||||
}
|
||||
|
||||
if (isPluginExecutionMissing(plugin, "default-testCompile", "testCompile")) {
|
||||
addExecution(javacPlugin, "testCompile", PomFile.DefaultPhases.TestCompile, listOf("testCompile"))
|
||||
addExecution(javacPlugin, "testCompile", DefaultPhases.TestCompile, listOf("testCompile"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -30,10 +30,10 @@ import org.jetbrains.kotlin.platform.TargetPlatform
|
||||
import org.jetbrains.kotlin.platform.jvm.JvmPlatforms
|
||||
|
||||
class KotlinJavaMavenConfigurator : KotlinMavenConfigurator(
|
||||
KotlinJavaMavenConfigurator.TEST_LIB_ID,
|
||||
TEST_LIB_ID,
|
||||
false,
|
||||
KotlinJavaMavenConfigurator.NAME,
|
||||
KotlinJavaMavenConfigurator.PRESENTABLE_TEXT
|
||||
NAME,
|
||||
PRESENTABLE_TEXT
|
||||
) {
|
||||
|
||||
override fun isKotlinModule(module: Module) =
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ import org.jetbrains.kotlin.platform.TargetPlatform
|
||||
import org.jetbrains.kotlin.platform.js.JsPlatforms
|
||||
|
||||
class KotlinJavascriptMavenConfigurator :
|
||||
KotlinMavenConfigurator(null, false, KotlinJavascriptMavenConfigurator.NAME, KotlinJavascriptMavenConfigurator.PRESENTABLE_TEXT) {
|
||||
KotlinMavenConfigurator(null, false, NAME, PRESENTABLE_TEXT) {
|
||||
|
||||
override fun getStdlibArtifactId(module: Module, version: String) = MAVEN_JS_STDLIB_ID
|
||||
|
||||
|
||||
+3
-3
@@ -205,7 +205,7 @@ protected constructor(
|
||||
forTests: Boolean
|
||||
) {
|
||||
fun doUpdateMavenLanguageVersion(): PsiElement? {
|
||||
val psi = KotlinMavenConfigurator.findModulePomFile(module) as? XmlFile ?: return null
|
||||
val psi = findModulePomFile(module) as? XmlFile ?: return null
|
||||
val pom = PomFile.forFileOrNull(psi) ?: return null
|
||||
return pom.changeLanguageVersion(
|
||||
languageVersion,
|
||||
@@ -307,7 +307,7 @@ protected constructor(
|
||||
messageTitle: String
|
||||
): PsiElement? {
|
||||
fun doChangeMavenCoroutineConfiguration(): PsiElement? {
|
||||
val psi = KotlinMavenConfigurator.findModulePomFile(module) as? XmlFile ?: return null
|
||||
val psi = findModulePomFile(module) as? XmlFile ?: return null
|
||||
val pom = PomFile.forFileOrNull(psi) ?: return null
|
||||
return pom.changeCoroutineConfiguration(value)
|
||||
}
|
||||
@@ -329,7 +329,7 @@ protected constructor(
|
||||
state: LanguageFeature.State,
|
||||
messageTitle: String
|
||||
): PsiElement? {
|
||||
val psi = KotlinMavenConfigurator.findModulePomFile(module) as? XmlFile ?: return null
|
||||
val psi = findModulePomFile(module) as? XmlFile ?: return null
|
||||
val pom = PomFile.forFileOrNull(psi) ?: return null
|
||||
val element = pom.changeFeatureConfiguration(feature, state)
|
||||
if (element == null) {
|
||||
|
||||
Reference in New Issue
Block a user