Rename: Fix Find Usages/Rename for parameter references in XML files
#KT-11967 Fixed
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
<bean class="a.FactoryObject" factory-method="buildObject" name="fmKotlin">
|
||||
<constructor-arg name="param2" value="1"/>
|
||||
</bean>
|
||||
</beans>
|
||||
@@ -0,0 +1,6 @@
|
||||
package a
|
||||
|
||||
class Construction(param: Int)
|
||||
object FactoryObject {
|
||||
@JvmStatic fun buildObject(param2: Int) = Construction(param2)
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
<bean class="a.FactoryObject" factory-method="buildObject" name="fmKotlin">
|
||||
<constructor-arg name="param" value="1"/>
|
||||
</bean>
|
||||
</beans>
|
||||
@@ -0,0 +1,6 @@
|
||||
package a
|
||||
|
||||
class Construction(param: Int)
|
||||
object FactoryObject {
|
||||
@JvmStatic fun buildObject(/*rename*/param: Int) = Construction(param)
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"fixtureClasses": ["org.jetbrains.kotlin.idea.spring.tests.SpringTestFixtureExtension"],
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test.kt",
|
||||
"springFileSet": ["spring-config.xml"],
|
||||
"newName": "param2",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
<bean class="a.FactoryObject" factory-method="buildObject" name="fmKotlin">
|
||||
<constructor-arg name="param2" value="1"/>
|
||||
</bean>
|
||||
</beans>
|
||||
@@ -0,0 +1,6 @@
|
||||
package a
|
||||
|
||||
class Construction(param: Int)
|
||||
object FactoryObject {
|
||||
@JvmStatic fun buildObject(param2: Int) = Construction(param2)
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
<bean class="a.FactoryObject" factory-method="buildObject" name="fmKotlin">
|
||||
<constructor-arg name="/*rename*/param" value="1"/>
|
||||
</bean>
|
||||
</beans>
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package a
|
||||
|
||||
class Construction(param: Int)
|
||||
object FactoryObject {
|
||||
@JvmStatic fun buildObject(param: Int) = Construction(param)
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"fixtureClasses": ["org.jetbrains.kotlin.idea.spring.tests.SpringTestFixtureExtension"],
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "spring-config.xml",
|
||||
"springFileSet": ["spring-config.xml"],
|
||||
"newName": "param2",
|
||||
"byRef": "true",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
Reference in New Issue
Block a user