mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-17 02:33:48 +07:00
12 lines
406 B
Java
12 lines
406 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' is always 'false' when reached">line > 0</warning> && (count - 2) % 6 == 0;
|
|
newLine &= (size - count) > 2;
|
|
}
|
|
}
|
|
|
|
}
|