mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 08:45:34 +07:00
convert to diamonds: ensure check for applicability is performed on static factory as otherwise it would be just skipped (IDEA-170813)
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// "Replace with <>" "false"
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
||||
class Test {
|
||||
public static <T extends Comparable<T>> Foo<T> test(Consumer<? super T> function) {
|
||||
return new Foo<<caret>T>(function);
|
||||
}
|
||||
|
||||
public static class Foo<T extends Comparable<T>> {
|
||||
Foo(Consumer<? super T> function) { }
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user