jdk-24/test/langtools/tools/javac/lint/Unchecked.java

15 lines
286 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
2007-12-01 00:00:00 +00:00
* @bug 4821359
* @summary Add -Xlint flag
* @author gafter
*
* @compile/fail/ref=Unchecked.out -XDrawDiagnostics -Xlint:unchecked -Werror Unchecked.java
2007-12-01 00:00:00 +00:00
*/
class Unchecked<T> {
void f(Unchecked u) {
Unchecked<String> us = u;
}
}