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