mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
ExpressionTypeMemoryState:isSuperStateOf to check additional field
Fixes IDEA-183267 Completion based on instanceof is gone
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import java.math.BigInteger;
|
||||
import java.util.function.Function;
|
||||
|
||||
class Test {
|
||||
private static boolean instanceOfAfterFunction(Integer lambda,
|
||||
Function<Integer, Number> replacer, Object type) {
|
||||
Number function = replacer.apply(lambda);
|
||||
if (function instanceof BigInteger && ((BigInteger)function).bitCount() > 0) {
|
||||
return false;
|
||||
}
|
||||
if (type instanceof String && type.subst<caret>) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user