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