jdk-24/test/langtools/tools/javac/rawDiags/Warning.java

18 lines
396 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
* @bug 6177732
* @summary add hidden option to have compiler generate diagnostics in more machine-readable form
* @compile/ref=Warning.out -XDrawDiagnostics -Xlint:unchecked Warning.java
2007-12-01 00:00:00 +00:00
*/
import java.util.HashSet;
import java.util.Set;
class Warning
{
static void useUnchecked() {
Set s = new HashSet<String>();
s.add("abc");
}
}