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