mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 11:18:16 +07:00
generics: raw type should not be equal to param type (IDEA-60170)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import java.util.*;
|
||||
import Node.Details;
|
||||
|
||||
public class Node<E> {
|
||||
public class Details {
|
||||
public E data;
|
||||
}
|
||||
public Details addNode(Node<E> child) {
|
||||
return new Details();
|
||||
}
|
||||
}
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
Map<String, Details> m = null;
|
||||
Map<String, Node.Details> sorted1;
|
||||
sorted1 = m;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user