jdk-24/langtools/test/tools/javac/lint/NoWarn.java
2007-12-01 00:00:00 +00:00

16 lines
438 B
Java

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