I have a java program like this:
public class Demo {
/**
* @deprecated use of func is discouraged.
*/
@Deprecated
static void func() {}
public static void main(String[] args){
func();
}
}
Why when I try to compile it using javac, it does not give me any warnings.
http://docs.oracle.com/javase/7/docs/technotes/guides/javadoc/deprecation/deprecation.html
It says
If you compile your class, you see that you are using a deprecated method. The issue is when you compile a class that uses a deprecated method.