Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamToLoop/beforeCommentInBlock.java
Tagir Valeev 1a38128af4 StreamToLoop: do not trim trailing whitespace for block lambdas
Fixes trailing line comment handling
2018-06-26 12:36:58 +07:00

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
});
}
}