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:
+1
-1
@@ -4,7 +4,7 @@ import java.util.Map;
|
||||
|
||||
class Foo {
|
||||
void foo(Map<File, Object> files, File file, Object filx) {
|
||||
for (File file1 : file.<caret>) {
|
||||
for (File file1: file.) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@ class BarGoo {}
|
||||
class Foo {
|
||||
{
|
||||
List<BarGoo> goos;
|
||||
for (BarGoo goo : goos) {
|
||||
<caret>
|
||||
for (BarGoo goo: goos) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ public class C {
|
||||
}
|
||||
|
||||
void foo(List<Inner> inners) {
|
||||
for (Inner <selection>inner<caret></selection> : inners) {
|
||||
for (Inner inner: inners) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ public class LiveTemplateTest {
|
||||
|
||||
void one() {
|
||||
List<A.B<String>> list;
|
||||
for (A.B<String> stringB : <selection>list</selection><caret>) {
|
||||
for (A.B<String> stringB: list) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ class Foo {
|
||||
<T> void method1(final T[] val) {
|
||||
class Inner {
|
||||
void method2() {
|
||||
for (T t : <selection>val</selection><caret>) {
|
||||
for (T t: val) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+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