3789983e89
Reviewed-by: darcy, ihse
16 lines
408 B
Java
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);
|
|
}
|
|
}
|