mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
redundant type args: process nested calls (IDEA-117945)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import java.io.Serializable;
|
||||
|
||||
final class Expected {
|
||||
public static <P extends Serializable> Expected make(final P good) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
interface Serializer {
|
||||
<T> T deserialize(final Class<T> type);
|
||||
}
|
||||
|
||||
class FooBar {
|
||||
<T extends Serializable> void invoke(final Class<T> rpc, final Serializer serializer) {
|
||||
Expected.make(serializer.<warning descr="Explicit type arguments can be inferred"><T></warning>deserialize(rpc));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user