Don't suggest making interface member final

(which was possible in leaking this inspection)
So #KT-14443 Fixed
This commit is contained in:
Mikhail Glukhikh
2017-05-18 19:52:07 +03:00
committed by Mikhail Glukhikh
parent a73cf0e1fe
commit 17869abfaf
5 changed files with 46 additions and 0 deletions
@@ -63,6 +63,21 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
}
}
@TestMetadata("idea/testData/inspectionsLocal/leakingThis")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class LeakingThis extends AbstractLocalInspectionTest {
public void testAllFilesPresentInLeakingThis() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/inspectionsLocal/leakingThis"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("noOpenForInterface.kt")
public void testNoOpenForInterface() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/inspectionsLocal/leakingThis/noOpenForInterface.kt");
doTest(fileName);
}
}
@TestMetadata("idea/testData/inspectionsLocal/moveSuspiciousCallableReferenceIntoParentheses")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)