KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > testlib > MembersChange


1 package testlib;
2
3 public class MembersChange extends BaseMembers
4 {
5     public static int stat1 = 0; // same
6
public static final int stat2 = 0; // added final
7
public int stat3 = 0; // removed static
8
protected static int stat4 = 0; // public -> protected
9
private static int stat5 = 0; // public -> private
10
static int stat6 = 0; // public -> package
11
// removed stat7
12
public static int stat8 = 0; // new member
13

14     public static final int fin1 = 0; // same
15
protected static final int fin2 = 0; // public -> protected
16
public final int fin3 = 0; // removed static
17
public static int fin4 = 0; // removed final
18
public static final int fin5 = 1; // changed compile time constant
19
public static final boolean fin6 =
20         Boolean.FALSE.booleanValue(); // removed value of compile time constant
21
// public static final int fin7 = 7; // removed constant field
22

23     public int pub1 = 0;
24     public static int pub2 = 0; // added static
25
public final int pub3 = 0; // added final
26
public int pub4 = 0;
27     // public int pub5 = 0; // removed non-constant field
28

29     protected int prot1 = 0;
30     protected int prot2 = 0;
31     protected int prot3 = 0;
32     protected int prot4 = 0;
33
34     public String JavaDoc obj1 = new String JavaDoc(); // member type changed Object -> String
35
public String JavaDoc obj2 = new String JavaDoc(); // member type changed Boolean -> String
36

37     private int priv1 = 0; // same
38
public int priv2 = 0; // private -> public
39
}
40
Popular Tags