Files
openide/java/java-tests/testData/inspection/streamApiCallChains/beforeStreamForEachMethodRef.java
T

11 lines
281 B
Java

// "Replace Collection.stream().forEach() with Collection.forEach()" "true"
import java.util.Arrays;
import java.util.Collection;
class Test {
void print() {
Collection<Character> def = Arrays.asList('d', 'e', 'f');
def.stream().forE<caret>ach(System.out::print);
}
}