01: package field;
02:
03: public class UsesFieldTest {
04: private String simple;
05: private int code;
06:
07: public UsesFieldTest() {
08: code = RenameFieldTest.CODE_OFF;
09: simple = "high";
10: }
11:
12: public void run() {
13: RenameFieldTest rft = new RenameFieldTest();
14:
15: rft.setCode(RenameFieldTest.CODE_ON);
16: rft.height = 32;
17:
18: code = RenameFieldTest.CODE_ON;
19: simple = "turn it on!";
20: }
21:
22: }
|