mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-21 12:20:29 +00:00
15 lines
398 B
Java
15 lines
398 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8382368
|
|
* @compile/ref=DeprecatedNoEffect.out -Xlint:deprecation -XDrawDiagnostics DeprecatedNoEffect.java
|
|
*/
|
|
public class DeprecatedNoEffect {
|
|
void m1() {
|
|
@Deprecated int i1; // there should be a "has no effect" warning here
|
|
}
|
|
@Deprecated
|
|
void m2() {
|
|
@Deprecated int i2; // there should be a "has no effect" warning here also
|
|
}
|
|
}
|