01: package testlib;
02:
03: public class MembersChange extends BaseMembers {
04: public static int stat1 = 0; // same
05: public static final int stat2 = 0; // added final
06: public int stat3 = 0; // removed static
07: protected static int stat4 = 0; // public -> protected
08: private static int stat5 = 0; // public -> private
09: static int stat6 = 0; // public -> package
10: // removed stat7
11: public static int stat8 = 0; // new member
12:
13: public static final int fin1 = 0; // same
14: protected static final int fin2 = 0; // public -> protected
15: public final int fin3 = 0; // removed static
16: public static int fin4 = 0; // removed final
17: public static final int fin5 = 1; // changed compile time constant
18: public static final boolean fin6 = Boolean.FALSE.booleanValue(); // removed value of compile time constant
19: // public static final int fin7 = 7; // removed constant field
20:
21: public int pub1 = 0;
22: public static int pub2 = 0; // added static
23: public final int pub3 = 0; // added final
24: public int pub4 = 0;
25: // public int pub5 = 0; // removed non-constant field
26:
27: protected int prot1 = 0;
28: protected int prot2 = 0;
29: protected int prot3 = 0;
30: protected int prot4 = 0;
31:
32: public String obj1 = new String(); // member type changed Object -> String
33: public String obj2 = new String(); // member type changed Boolean -> String
34:
35: private int priv1 = 0; // same
36: public int priv2 = 0; // private -> public
37: }
|