2007-12-01 00:00:00 +00:00
|
|
|
/**
|
|
|
|
* @test /nodynamiccopyright/
|
|
|
|
* @bug 6183484
|
|
|
|
* @summary verify -nowarn is the same as -Xlint:none
|
2010-07-26 21:18:45 +00:00
|
|
|
* @compile/ref=NoWarn1.out -XDrawDiagnostics NoWarn.java
|
|
|
|
* @compile/ref=NoWarn2.out -XDrawDiagnostics -nowarn NoWarn.java
|
|
|
|
* @compile/ref=NoWarn2.out -XDrawDiagnostics -Xlint:none NoWarn.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class NoWarn {
|
|
|
|
void m(Object... args) { }
|
|
|
|
void foo() {
|
|
|
|
m(null);
|
|
|
|
}
|
|
|
|
}
|