...
Code Block |
---|
List l = new ArrayList<Integer>(); List<String> ls = l; // Produces unchecked warning |
It is not enough insufficient to rely on unchecked warnings alone , to detect violations of this guideline. According to the Java Language Specification [JLS 05] section 4.12.2.1 "Heap Pollution":
...