summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/redundantTypeArgs/beforeMethodReference.java
blob: 6f812c0a458a4b5f97f075d5f2788ce823cfd79d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// "Remove explicit type arguments" "true"
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

class Box<T>
{
  public T getValue()
  {
    return null;
  }

  void f(Stream<Box<String>> stream) {
    List<String> l3 = stream
      .map(Box<Stri<caret>ng>::getValue)
      .collect(Collectors.toList());
  }
}