Files
openide/java/java-tests/testData/inspection/dataFlow/fixture/OrWithAssignment.java
T
Tagir Valeev 3952e04696 DFA instruction visitor refactoring wave#5
CheckReturnValueInstruction replaced with checkReturnValue call (PSI-based)
beforeExpressionPush for typecast result
Control flow: &&/|| handling unified and simplified (less jumps, less states)
ContractChecker rewritten (now visitor-based)

(cherry picked from commit fd66719ce0bd67380aed3cb8023370bc583478ad+a4a84553e407285ceb5758f4a8696ef5a5b1e685)
2018-08-08 16:39:35 +07:00

10 lines
201 B
Java

import java.util.List;
class Test {
void test(String type) {
boolean uint = false;
if ("int".equals(type) || (uint = "uint".equals(type))) {
System.out.println("possible");
}
}
}