jdk-24/langtools/test/tools/javac/rawDiags/Warning.java
Jonathan Gibbons ccd014ed3f 6971882: Remove -XDstdout from javac test
Reviewed-by: darcy
2010-07-26 14:18:45 -07:00

18 lines
396 B
Java

/*
* @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
*/
import java.util.HashSet;
import java.util.Set;
class Warning
{
static void useUnchecked() {
Set s = new HashSet<String>();
s.add("abc");
}
}