support return in forEach replacement

This commit is contained in:
Roman Ivanov
2017-09-01 12:37:18 +07:00
parent 5acdc9ccdc
commit c3b4d6f849
8 changed files with 53 additions and 18 deletions
@@ -1,13 +0,0 @@
// "Replace with forEach" "true"
import java.util.Collection;
public class Test {
void test(int[] arr) {
for<caret>(int x : arr) {
int y = x*2;
if(x > y) continue;
System.out.println(x);
}
}
}
@@ -1,13 +0,0 @@
// "Replace with forEach" "true"
import java.util.Collection;
public class Test {
void test(int[] arr) {
for<caret>(int x : arr) {
int y = x*2;
if(x > y) continue;
System.out.println(x);
}
}
}