mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
set SPACE_BEFORE_COLON_IN_FOREACH true by default, fix tests
This commit is contained in:
+3
-3
@@ -6,9 +6,9 @@ import static java.util.Arrays.asList;
|
||||
|
||||
public class Main {
|
||||
public static boolean test(List<List<String>> list) {
|
||||
for (List<String> x: list) {
|
||||
for (List<String> x : list) {
|
||||
if (x != null) {
|
||||
for (String s: x) {
|
||||
for (String s : x) {
|
||||
if (s.startsWith("a")) {
|
||||
return true;
|
||||
}
|
||||
@@ -19,7 +19,7 @@ public class Main {
|
||||
}
|
||||
|
||||
String testTernary(String[] strings) {
|
||||
for (String s: strings) {
|
||||
for (String s : strings) {
|
||||
if (s != null) {
|
||||
if (!s.startsWith("xyz")) {
|
||||
return "s";
|
||||
|
||||
Reference in New Issue
Block a user