View Javadoc
1   class Super {
2       public void test1() {
3       }
4
5       public int test2(String s) {
6           return 1;
7       }
8
9       public double test3(double d, int i, Object o, float f, long l) {
10          return 0.0;
11      }
12
13      protected void test4(String s) {
14      }
15
16      public void test5(String[] s) {
17      }
18  }
19
20  public class UselessSCMethods extends Super {
21      @Override
22      public void test1() {
23          super.test1();
24      }
25
26      @Override
27      public int test2(String s) {
28          return super.test2(s);
29      }
30
31      @Override
32      public double test3(double d, int i, Object o, float f, long l) {
33          return super.test3(d, i, o, f, l);
34      }
35
36      @Override
37      public void test4(String s) { // don't report this, although suspect, access
38                                    // has been widened
39          // perhaps this should be reported as another bug type, dunno
40          super.test4(s);
41      }
42
43      @Override
44      public void test5(String[] s) {
45          super.test5(s);
46      }
47  }