summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/anonymous2lambda/beforeObjectInferredButIntExpected.java
blob: 3a82478ec678f16483af02eb7efbd494830b2013 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// "Replace with lambda" "false"
import java.util.function.Function;

class Test {
  void ab() {
    comparing(new Func<caret>tion<Integer, String>() {
      public String apply(Integer pObj) {
        return Integer.toString(pObj);
      }
    });

  }

  static <T> void comparing(Function<T, String> keyExtractor){}

}