mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
testdata for IDEA-153701
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
|
||||
abstract class CallbackCast {
|
||||
String send(Number... actions) {
|
||||
return executeBlocking(callback -> processNumbers(Arrays.asList(actions), (Runnable) callback));
|
||||
}
|
||||
|
||||
public <T> T executeBlocking(Statement<T> statement) {
|
||||
return null;
|
||||
}
|
||||
|
||||
abstract <T extends Number> List<T> processNumbers(List<T> actions, Runnable callback);
|
||||
}
|
||||
|
||||
interface Statement<T> {
|
||||
void execute(Consumer<T> callback);
|
||||
}
|
||||
@@ -79,6 +79,8 @@ public class LambdaRedundantCastTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testInvalidResolveWithoutCast() { doTest();}
|
||||
|
||||
private void doTest() {
|
||||
doTest(BASE_PATH + "/" + getTestName(false) + ".java", true, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user