001: /*
002: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
003: */
004: package com.tctest;
005:
006: import com.tc.object.TCObject;
007:
008: import java.io.Serializable;
009:
010: /**
011: * @author steve
012: */
013: public class FooObject implements Serializable {
014: private String one;
015: private long two;
016: private FooObject three;
017: public FooObject four;
018: private FooObject[] five;
019: public TCObject __tcObjecta;
020:
021: public void test() {
022: synchronized (this ) {
023: throw new Error();
024: }
025: }
026:
027: public FooObject(Object t) {
028: super ();
029: }
030:
031: public FooObject() {
032: this (new Object());
033: }
034:
035: public static class InnerClassTest {
036: public InnerClassTest(Object t) {
037: super ();
038: }
039: }
040:
041: public FooObject(String one, long two, FooObject three,
042: FooObject four, FooObject[] five) {
043:
044: this .one = one;
045: this .two = two;
046: this .three = three;
047: this .four = four;
048: this .five = five;
049: }
050:
051: /**
052: * @return
053: */
054: public FooObject getFour() {
055: return four;
056: }
057:
058: /**
059: * @return
060: */
061: public String getOne() {
062: return one;
063: }
064:
065: /**
066: * @return
067: */
068: public FooObject getThree() {
069: return three;
070: }
071:
072: /**
073: * @return
074: */
075: public long getTwo() {
076: return two;
077: }
078:
079: /**
080: * @param object
081: */
082: public void setFour(FooObject object) {
083: four = object;
084: }
085:
086: /**
087: * @param string
088: */
089: public void setOne(String string) {
090: one = string;
091: }
092:
093: /**
094: * @param object
095: */
096: public void setThree(FooObject object) {
097: three = object;
098: }
099:
100: /**
101: * @param l
102: */
103: public void setTwo(long l) {
104: two = l;
105: }
106:
107: /**
108: * @return
109: */
110: public FooObject[] getFive() {
111: return five;
112: }
113:
114: /**
115: * @param objects
116: */
117: public void setFive(FooObject[] objects) {
118: five = objects;
119: }
120:
121: }
|