mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-84489
This commit is contained in:
+3
-2
@@ -289,8 +289,6 @@ public class StandardInstructionVisitor extends InstructionVisitor {
|
||||
}
|
||||
else if (JavaTokenType.PLUS == opSign) {
|
||||
memState.push(instruction.getNonNullStringValue(factory));
|
||||
instruction.setTrueReachable(); // Not a branching instruction actually.
|
||||
instruction.setFalseReachable();
|
||||
}
|
||||
else {
|
||||
if (instruction instanceof InstanceofInstruction) {
|
||||
@@ -319,6 +317,9 @@ public class StandardInstructionVisitor extends InstructionVisitor {
|
||||
memState.push(DfaUnknownValue.getInstance());
|
||||
}
|
||||
|
||||
instruction.setTrueReachable(); // Not a branching instruction actually.
|
||||
instruction.setFalseReachable();
|
||||
|
||||
return nextInstruction(instruction, runner, memState);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
class Main {
|
||||
static class User {
|
||||
public int RegistrationState;
|
||||
}
|
||||
|
||||
public static void fun(User user) {
|
||||
if ((user.RegistrationState == 5 || user.RegistrationState == 10) == true) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -57,4 +57,6 @@ public class DataFlowInspectionFixtureTest extends JavaCodeInsightFixtureTestCas
|
||||
public void testTryCatchInForNotComplex() throws Throwable { doTest(); }
|
||||
public void testFieldChangedBetweenSynchronizedBlocks() throws Throwable { doTest(); }
|
||||
|
||||
public void testIDEA84489() throws Throwable { doTest(); }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user