diff --git a/plugins/kotlin/code-insight/inspections-shared/tests/k1/test/org/jetbrains/kotlin/idea/codeInsight/inspections/shared/SharedK1LocalInspectionTestGenerated.java b/plugins/kotlin/code-insight/inspections-shared/tests/k1/test/org/jetbrains/kotlin/idea/codeInsight/inspections/shared/SharedK1LocalInspectionTestGenerated.java index f5bb1476834d..092c07fb550f 100644 --- a/plugins/kotlin/code-insight/inspections-shared/tests/k1/test/org/jetbrains/kotlin/idea/codeInsight/inspections/shared/SharedK1LocalInspectionTestGenerated.java +++ b/plugins/kotlin/code-insight/inspections-shared/tests/k1/test/org/jetbrains/kotlin/idea/codeInsight/inspections/shared/SharedK1LocalInspectionTestGenerated.java @@ -1784,6 +1784,11 @@ public abstract class SharedK1LocalInspectionTestGenerated extends AbstractShare public void testReverseImmutableList() throws Exception { runTest("../testData/inspectionsLocal/javaCollectionsStaticMethodOnImmutableList/reverseImmutableList.kt"); } + + @TestMetadata("reverseMutableList.kt") + public void testReverseMutableList() throws Exception { + runTest("../testData/inspectionsLocal/javaCollectionsStaticMethodOnImmutableList/reverseMutableList.kt"); + } } @RunWith(JUnit3RunnerWithInners.class) diff --git a/plugins/kotlin/code-insight/inspections-shared/tests/k2/test/org/jetbrains/kotlin/idea/k2/codeInsight/inspections/shared/SharedK2LocalInspectionTestGenerated.java b/plugins/kotlin/code-insight/inspections-shared/tests/k2/test/org/jetbrains/kotlin/idea/k2/codeInsight/inspections/shared/SharedK2LocalInspectionTestGenerated.java index 73f8b81b3ac6..be108dec56d6 100644 --- a/plugins/kotlin/code-insight/inspections-shared/tests/k2/test/org/jetbrains/kotlin/idea/k2/codeInsight/inspections/shared/SharedK2LocalInspectionTestGenerated.java +++ b/plugins/kotlin/code-insight/inspections-shared/tests/k2/test/org/jetbrains/kotlin/idea/k2/codeInsight/inspections/shared/SharedK2LocalInspectionTestGenerated.java @@ -1784,6 +1784,11 @@ public abstract class SharedK2LocalInspectionTestGenerated extends AbstractShare public void testReverseImmutableList() throws Exception { runTest("../testData/inspectionsLocal/javaCollectionsStaticMethodOnImmutableList/reverseImmutableList.kt"); } + + @TestMetadata("reverseMutableList.kt") + public void testReverseMutableList() throws Exception { + runTest("../testData/inspectionsLocal/javaCollectionsStaticMethodOnImmutableList/reverseMutableList.kt"); + } } @RunWith(JUnit3RunnerWithInners.class) diff --git a/plugins/kotlin/code-insight/inspections-shared/tests/testData/inspectionsLocal/javaCollectionsStaticMethodOnImmutableList/reverseMutableList.kt b/plugins/kotlin/code-insight/inspections-shared/tests/testData/inspectionsLocal/javaCollectionsStaticMethodOnImmutableList/reverseMutableList.kt new file mode 100644 index 000000000000..6afadd67e84b --- /dev/null +++ b/plugins/kotlin/code-insight/inspections-shared/tests/testData/inspectionsLocal/javaCollectionsStaticMethodOnImmutableList/reverseMutableList.kt @@ -0,0 +1,8 @@ +// WITH_STDLIB +// PROBLEM: none +import java.util.Collections + +fun test() { + val mutableList = mutableListOf(1, 2) + Collections.reverse(mutableList) +}