Removed test which did not work by some reason
This commit is contained in:
@@ -1,12 +0,0 @@
|
|||||||
import java.util.List;
|
|
||||||
|
|
||||||
public abstract class JavaMethods implements List<String> {
|
|
||||||
@Override
|
|
||||||
public String get(int i) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int get(String s, int p) {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-9
@@ -61,13 +61,4 @@
|
|||||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Explicit 'get'</problem_class>
|
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Explicit 'get'</problem_class>
|
||||||
<description>Replace 'get' call with index operator</description>
|
<description>Replace 'get' call with index operator</description>
|
||||||
</problem>
|
</problem>
|
||||||
|
|
||||||
<problem>
|
|
||||||
<file>javaMethods.kt</file>
|
|
||||||
<line>6</line>
|
|
||||||
<module>light_idea_test_case</module>
|
|
||||||
<entry_point TYPE="file" FQNAME="javaMethods.kt" />
|
|
||||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Explicit 'get'</problem_class>
|
|
||||||
<description>Replace 'get' call with index operator</description>
|
|
||||||
</problem>
|
|
||||||
</problems>
|
</problems>
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
// DISABLE-ERRORS
|
|
||||||
// IS_APPLICABLE: false
|
|
||||||
import JavaMethods
|
|
||||||
|
|
||||||
fun foo(javaClass: JavaMethods) {
|
|
||||||
val v1 = javaClass.get(1)
|
|
||||||
val v2 = javaClass.get("a", 1)
|
|
||||||
}
|
|
||||||
@@ -2765,12 +2765,6 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("javaMethods.kt")
|
|
||||||
public void testJavaMethods() throws Exception {
|
|
||||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/conventionNameCalls/replaceGet/javaMethods.kt");
|
|
||||||
doTest(fileName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("missingDefaultArgument.kt")
|
@TestMetadata("missingDefaultArgument.kt")
|
||||||
public void testMissingDefaultArgument() throws Exception {
|
public void testMissingDefaultArgument() throws Exception {
|
||||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/conventionNameCalls/replaceGet/missingDefaultArgument.kt");
|
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/conventionNameCalls/replaceGet/missingDefaultArgument.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user