author | jlahoda |
Fri, 30 Aug 2019 12:24:16 +0200 | |
changeset 57963 | ed7eb20871c5 |
permissions | -rw-r--r-- |
57963 | 1 |
/** |
2 |
* @test |
|
3 |
* @bug 8230105 |
|
4 |
* @summary Verify analyzers work reasonably in combination with mandatory warnings |
|
5 |
* @compile/ref=AnalyzerMandatoryWarnings.out -Xlint:deprecation -XDrawDiagnostics -Xmaxwarns 1 -XDfind=lambda AnalyzerMandatoryWarnings.java |
|
6 |
*/ |
|
7 |
public class AnalyzerMandatoryWarnings { |
|
8 |
private void test() { |
|
9 |
Runnable r = new Runnable() { |
|
10 |
public void run() { |
|
11 |
Depr r; |
|
12 |
} |
|
13 |
}; |
|
14 |
} |
|
15 |
} |
|
16 |
@Deprecated class Depr {} |