mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 07:57:19 +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)
18 lines
621 B
Java
18 lines
621 B
Java
class X {
|
|
|
|
public static void buildRegexp(String pattern, int exactPrefixLen, boolean forCompletion) {
|
|
System.out.println(!forCompletion && pattern.endsWith(" "));
|
|
System.out.println(exactPrefixLen == 0);
|
|
boolean prevIsUppercase = false;
|
|
for (int i = 0; i < pattern.length(); i++) {
|
|
final char c = pattern.charAt(i);
|
|
if (c == '*') { }
|
|
else if (c == ' ') { }
|
|
else if (c == ':' || <warning descr="Condition 'prevIsUppercase' is always 'false' when reached">prevIsUppercase</warning>) { }
|
|
}
|
|
System.out.println(forCompletion);
|
|
System.out.println(exactPrefixLen);
|
|
}
|
|
|
|
}
|