In Java 6 I can use a technique like this:
@Deprecated
public final class Test {
public static void main(String[] args) {
System.out.println(Test.class.isAnnotationPresent(Deprecated.class));
}
}
to decide if a type is deprecated. Is there any way at all to do this in 1.4 with the old style (Javadoc-based) deprecation?