mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
90 lines
1.4 KiB
Java
90 lines
1.4 KiB
Java
// deprecated
|
|
|
|
class a {
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
void f() {}
|
|
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
int dep;
|
|
int notdep;
|
|
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
a(int i,int j,int k) {
|
|
new <warning descr="'a(int, int, int)' is deprecated">a</warning>(k+i+j,<warning descr="'dep' is deprecated">dep</warning>,notdep);
|
|
}
|
|
}
|
|
|
|
class b extends a {
|
|
void <warning descr="Overrides deprecated method in 'a'">f</warning>() {
|
|
super.<warning descr="'f()' is deprecated">f</warning>();
|
|
}
|
|
|
|
b() {
|
|
<warning descr="'b(int)' is deprecated">this</warning>(1);
|
|
}
|
|
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
b(int i) {
|
|
<warning descr="'a(int, int, int)' is deprecated">super</warning>(0,0,i);
|
|
System.out.print(i);
|
|
}
|
|
}
|
|
|
|
class c extends b {
|
|
// b.f is not deprecated
|
|
void f() {}
|
|
}
|
|
|
|
interface i1 {
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
void f();
|
|
}
|
|
abstract class ac1 {
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
public abstract void f();
|
|
}
|
|
|
|
class ci1 extends ac1 implements i1 {
|
|
// no chance not to implement it
|
|
public void f() {}
|
|
}
|
|
|
|
class Aaa {
|
|
public Aaa(String s) {
|
|
System.out.println(s);
|
|
}
|
|
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
public Aaa() {}
|
|
|
|
public void foo() {
|
|
new Aaa("asdasdad") {};
|
|
}
|
|
}
|
|
|
|
class Anonym {
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
public Anonym(String sss) {
|
|
System.out.println(sss);
|
|
}
|
|
public void foo() {
|
|
new <warning descr="'Anonym(java.lang.String)' is deprecated">Anonym</warning>("asdasd") {};
|
|
}
|
|
}
|