2019-08-30 10:24:16 +00:00
|
|
|
/**
|
2020-12-30 17:20:54 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2019-08-30 10:24:16 +00:00
|
|
|
* @bug 8230105
|
|
|
|
* @summary Verify analyzers work reasonably in combination with mandatory warnings
|
|
|
|
* @compile/ref=AnalyzerMandatoryWarnings.out -Xlint:deprecation -XDrawDiagnostics -Xmaxwarns 1 -XDfind=lambda AnalyzerMandatoryWarnings.java
|
|
|
|
*/
|
|
|
|
public class AnalyzerMandatoryWarnings {
|
|
|
|
private void test() {
|
|
|
|
Runnable r = new Runnable() {
|
|
|
|
public void run() {
|
|
|
|
Depr r;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@Deprecated class Depr {}
|