16 lines
438 B
Java
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);
|
||
|
}
|
||
|
}
|