IDEA-182759 CommentTracker already used exception

This commit is contained in:
Tagir Valeev
2017-11-28 12:57:49 +07:00
parent a3fcfed0a2
commit b435203ca2
3 changed files with 27 additions and 2 deletions
@@ -0,0 +1,12 @@
// "Replace with forEach" "true"
import java.util.Arrays;
public class Test {
public static void main(String[] args) {
for (String module : args) {
VirtualFile[] sourceRoots = foo(module);
Arrays.stream(sourceRoots).forEach((VirtualFile sourceRoot) -> sourceRoot.substring());
}
}
}
@@ -0,0 +1,12 @@
// "Replace with forEach" "true"
public class Test {
public static void main(String[] args) {
for (String module : args) {
VirtualFile[] sourceRoots = foo(module);
fo<caret>r (VirtualFile sourceRoot : sourceRoots) {
sourceRoot.substring();
}
}
}
}