Mon, 16 Sep 2013 14:13:44 +0200
8021112: Spurious unchecked warning reported by javac
6480588: No way to suppress deprecation warnings when implementing deprecated interface
Summary: Fixing DeferredLintHandler configuration, so lint warnings are reported with correct @SuppressWarnings settings
Reviewed-by: jjg, vromero
1 /* /nodynamiccopyright/ */
2 // combinations of methods defined in a base class
3 // and overridden in subtypes
5 // class should compile with warnings as shown
7 class Q extends P {
8 @Deprecated public void pDep_qDep_rDep() { }
9 @Deprecated public void pDep_qDep_rUnd() { }
10 @Deprecated public void pDep_qDep_rInh() { }
11 public void pDep_qUnd_rDep() { } // warn
12 public void pDep_qUnd_rUnd() { } // warn
13 public void pDep_qUnd_rInh() { } // warn
14 // public void pDep_qInh_rDep() { }
15 // public void pDep_qInh_rUnd() { }
16 // public void pDep_qInh_rInh() { }
17 @Deprecated public void pUnd_qDep_rDep() { }
18 @Deprecated public void pUnd_qDep_rUnd() { }
19 @Deprecated public void pUnd_qDep_rInh() { }
20 public void pUnd_qUnd_rDep() { }
21 public void pUnd_qUnd_rUnd() { }
22 public void pUnd_qUnd_rInh() { }
23 // public void pUnd_qInh_rDep() { }
24 // public void pUnd_qInh_rUnd() { }
25 // public void pUnd_qInh_rInh() { }
26 }