Revert "[java-highlighting] IJ-CR-125397 IDEA-344235 support calls with checked exceptions for instanceOf patterns"

This reverts commit a6218b0150d17dc44940b392817e30c17f18adc0.

GitOrigin-RevId: 9283459df91e19bb1ad094a4101bdfebb865013b
This commit is contained in:
Mikhail Pyltsin
2024-02-13 21:44:59 +00:00
committed by intellij-monorepo-bot
parent aa94146c31
commit 35ff272201
@@ -70,15 +70,8 @@ public class ControlFlowOptions {
* @see #shouldEvaluateConstantIfCondition()
*/
public ControlFlowOptions dontEvaluateConstantIfCondition() {
if (myEvaluateConstantIfCondition) {
if (!myOnlyExplicitExceptions) {
return create(myEnableShortCircuit, false, myExceptionAfterAssignment);
}
else {
return new ControlFlowOptions(myEnableShortCircuit, false, myExceptionAfterAssignment, myOnlyExplicitExceptions);
}
}
return this;
return myEvaluateConstantIfCondition ?
create(myEnableShortCircuit, false, myExceptionAfterAssignment) : this;
}
@Override