mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
set SPACE_BEFORE_COLON_IN_FOREACH true by default, fix tests
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
public class Foo {
|
||||
void m() {
|
||||
int[] xs = {1, 2, 3};
|
||||
for (int x: xs) {
|
||||
for (int x : xs) {
|
||||
|
||||
}
|
||||
xs = new int[0];
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
public class Foo {
|
||||
void m() {
|
||||
Object[] xs = new Object[]{1, 2, 3};
|
||||
for (final Object x: xs) {
|
||||
for (final Object x : xs) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ class Example {
|
||||
new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
for (T t: foo) {
|
||||
for (T t : foo) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
public class Foo {
|
||||
void m() {
|
||||
int[] xs = {1, 2, 3};
|
||||
for (int x: xs) {
|
||||
for (int x : xs) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import java.util.ArrayList;
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
ArrayList<Object> list = new ArrayList<Object>();
|
||||
for (Object o: list) {
|
||||
for (Object o : list) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user