[java-inspections] IDEA-326289 Raw type when converting generic constructor method ref to lambda

GitOrigin-RevId: cd8f8d36f5ded99b168e8db0a00a06a82df4044f
This commit is contained in:
Tagir Valeev
2023-07-26 11:33:59 +02:00
committed by intellij-monorepo-bot
parent cfa46d2993
commit fb1eeff810
9 changed files with 68 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ public class LocalClass {
MyObject<Integer, T> h = new MyObject<>(1, x);
MyObject<String, T> h2 = new MyObject<>("1", x);
MyObject raw = new MyObject("1", x);
IntFunction<MyObject<Character, T>> ic = a -> new MyObject(a, x);
IntFunction<MyObject<Character, T>> ic = a -> new MyObject<>(a, x);
System.out.println(new MyObject<Number, T>(1, x) {
void test() {}
});