01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tctest.transparency;
05:
06: public class SuperClassWithFields {
07:
08: protected int i;
09:
10: public synchronized void method1() {
11: System.err.println(this + " = " + i);
12: }
13:
14: public String toString() {
15: return "SuperClassWithFields";
16: }
17:
18: public boolean equals(Object o) {
19: if (this == o)
20: return true;
21: if (o instanceof SuperClassWithFields) {
22: return this .i == ((SuperClassWithFields) o).i;
23: }
24: return false;
25: }
26:
27: }
|