title: No compilation warning with @Deprecated annotation?
body: <p>According to <a href="https://docs.oracle.com/javase/tutorial/java/annotations/predefined.html" rel="noreferrer">Java tutorial on Oracle</a>, if deprecated method marked with @Deprecated annotation is used, compiler should be giving warning on compilation. But with following code sample, I am not getting any warning in the console.</p>
  
  <p>Java version used: 1.8.0_112</p>
  
  <p>Please let me know what could be missing here.
  Thanks.</p>
  
  <pre><code>public class PreDefinedAnnotationTypesTest {
  
  /**
   * This method is deprecated.
   * @deprecated
   */
  @Deprecated
  public void m1(){
  
  }
  
  public static void main(String[] args) {
      PreDefinedAnnotationTypesTest obj = new PreDefinedAnnotationTypesTest();
      obj.m1();
  }
  </code></pre>
  
  <p>}</p>