Files
Mikhail Pyltsinandintellij-monorepo-bot 8813548cbb [java-highlighting] IJ-CR-125397 IDEA-344235 support calls with checked exceptions for instanceOf patterns
- reimplement, changing only mayCompleteNormallyVisitor

GitOrigin-RevId: 67be02c535ec3d5df7a9ec9cd77395305db27e14
2024-02-13 21:45:04 +00:00

15 lines
359 B
Java

// "Replace 'integer' with pattern variable" "false"
class X {
public static void testWithExceptionCall() throws Exception {
Object object = new Object();
if (!(object instanceof Integer)) {
test();
}
Integer int<caret>eger = (Integer)object;
System.out.println(integer);
}
private static void test() throws Exception {
}
}