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

16 lines
408 B
Java

/**
* @test /nodynamiccopyright/
* @bug 6183484
* @summary verify -nowarn is the same as -Xlint:none
* @compile/ref=NoWarn1.out -XDrawDiagnostics NoWarn.java
* @compile/ref=NoWarn2.out -XDrawDiagnostics -nowarn NoWarn.java
* @compile/ref=NoWarn2.out -XDrawDiagnostics -Xlint:none NoWarn.java
*/
class NoWarn {
void m(Object... args) { }
void foo() {
m(null);
}
}