KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > bcel > checks > SuperClass


1 package com.puppycrawl.tools.checkstyle.bcel.checks;
2
3 public class SuperClass
4 {
5     // Name reused in subclass
6
protected int reusedName;
7     // Subclass uses private name, still conflict
8
protected int subClassPrivate;
9     // This is a private field, subclass does not shadow
10
private int superClassPrivate;
11     // Test for different data types
12
protected String JavaDoc differentType;
13
14     // Hidden
15
public static int staticMethod() {
16         return 0;
17     }
18     // Not hidden
19
public int nonStaticMethod() {
20         return 0;
21     }
22     // Hidden
23
public static int staticMethodSameParamName(int i) {
24         return 0;
25     }
26     // Hidden
27
public static int staticMethodSameParamType(int i) {
28         return 0;
29     }
30     // Not hidden
31
public static int staticMethodDifferentParamNum(int i, int j) {
32         return 0;
33     }
34     // Not hidden
35
public static int staticMethodDifferentParamType(int i) {
36         return 0;
37     }
38     // Not hidden
39
public static int staticMethodDifferentObjectType(Integer JavaDoc i) {
40         return 0;
41     }
42     // Not hidden (?)
43
public static int staticMethodSuperParamType(Object JavaDoc i) {
44         return 0;
45     }
46 }
47
Popular Tags