redundant cast: ensure cast is not removed if operand changes it's type

This commit is contained in:
Anna.Kozlova
2016-04-29 14:41:28 +02:00
parent f52458abdf
commit b936f89275
2 changed files with 30 additions and 0 deletions
@@ -81,6 +81,10 @@ public class LambdaRedundantCastTest extends LightDaemonAnalyzerTestCase {
public void testInvalidResolveWithoutCast() { doTest();}
public void testRejectReturnTypeChange() throws Exception {
doTest();
}
private void doTest() {
doTest(BASE_PATH + "/" + getTestName(false) + ".java", true, false);
}