mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00

6598104: javac should not warn about imports of deprecated classes Suppressing the deprecation warnings when importing a deprecated element (deprecations in import qualifier will be produced). Reviewed-by: darcy, jjg, mcimadamore
12 lines
191 B
Java
12 lines
191 B
Java
package p;
|
|
|
|
class Dep1 {
|
|
@Deprecated
|
|
static class A { }
|
|
@Deprecated
|
|
static class B { }
|
|
@Deprecated
|
|
static void method() { }
|
|
@Deprecated
|
|
static String field;
|
|
}
|