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 SubClassB extends SuperClassWithFields implements
07: Cloneable {
08:
09: public synchronized void method1() {
10: i = 10;
11: super .method1();
12: }
13:
14: public SubClassB getCopy() {
15: try {
16: return (SubClassB) super .clone();
17: } catch (CloneNotSupportedException e) {
18: throw new RuntimeException(e);
19: }
20: }
21:
22: public String toString() {
23: return "SubClassB::" + super .toString();
24: }
25:
26: public boolean equals(Object o) {
27: if (this == o)
28: return true;
29: if (o instanceof SubClassB) {
30: return super .equals(o);
31: }
32: return false;
33: }
34: }
|