mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 11:29:28 +07:00
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)
12 lines
509 B
Java
12 lines
509 B
Java
import java.util.List;
|
|
|
|
class Some {
|
|
public static void appendTokenTypes(StringBuilder sb, List<String> tokenTypes) {
|
|
for (int count = 0, line = 0, size = tokenTypes.size(); count < size; count++) {
|
|
boolean newLine = count == 2 || <warning descr="Condition 'line > 0 && (count - 2) % 6 == 0' is always 'false' when reached"><warning descr="Condition 'line > 0' is always 'false' when reached">line > 0</warning> && (count - 2) % 6 == 0</warning>;
|
|
newLine &= (size - count) > 2;
|
|
}
|
|
}
|
|
|
|
}
|