mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
15 lines
365 B
Java
15 lines
365 B
Java
// "Fix all 'Stream API call chain can be replaced with loop' problems in file" "true"
|
|
|
|
import java.io.File;
|
|
import java.util.Arrays;
|
|
|
|
class X {
|
|
|
|
void x(File[] files) {
|
|
Arrays.stream(files).forEachOrdered(s -> {
|
|
File dest = new File(s.getAbsolutePath());<caret>
|
|
System.out.println("unable to rename " + s + " to " + dest); //comment
|
|
});
|
|
}
|
|
|
|
} |