mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
dfa: don't grow stack infinitely on &= (IDEA-118522)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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' is always 'false' when reached">line > 0</warning> && (count - 2) % 6 == 0;
|
||||
newLine &= (size - count) > 2;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user