author | jjg |
Fri, 09 Apr 2010 15:39:39 -0700 | |
changeset 5319 | 63dc7f367a37 |
parent 10 | 06bc494ca11e |
child 6150 | d055fa8ced62 |
permissions | -rw-r--r-- |
10 | 1 |
/** |
2 |
* @test /nodynamiccopyright/ |
|
3 |
* @bug 6183484 |
|
4 |
* @summary verify -nowarn is the same as -Xlint:none |
|
5 |
* @compile/ref=NoWarn1.out -XDstdout -XDrawDiagnostics NoWarn.java |
|
6 |
* @compile/ref=NoWarn2.out -XDstdout -XDrawDiagnostics -nowarn NoWarn.java |
|
7 |
* @compile/ref=NoWarn2.out -XDstdout -XDrawDiagnostics -Xlint:none NoWarn.java |
|
8 |
*/ |
|
9 |
||
10 |
class NoWarn { |
|
11 |
void m(Object... args) { } |
|
12 |
void foo() { |
|
13 |
m(null); |
|
14 |
} |
|
15 |
} |