Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/newMethodRef/IDEA117311.java

19 lines
373 B
Java

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
class Box<TBox>
{
public TBox getValue()
{
return null;
}
void foo(Stream<Box<String>> stream){
List<String> l1 = stream.map(Box<String>::getValue).collect(Collectors.toList());
List<String> l2 = stream.map(Box::getValue).collect(Collectors.toList());
}
}