public class C2 extends B { private String address; private C1 c1; private String c2Name; private Collection c1s = new ArrayList(); /** * Returns the address. * @return String */ public String getAddress() { return address; } /** * Sets the address. * @param address The address to set */ public void setAddress(String address) { this.address = address; } /** * @return Returns the c. */ public C1 getC1() { return c1; } /** * @param c The c to set. */ public void setC1(C1 c) { this.c1 = c; } /** * @return Returns the cs. */ public Collection getC1s() { return c1s; } /** * @param cs The cs to set. */ public void setC1s(Collection cs) { this.c1s = cs; } public String getC2Name() { return c2Name; } public void setC2Name(String name) { c2Name = name
public class Circular { private String id; private Class clazz; private Circular other; private Object anyEntity; /** * Constructor for Circular. */ public Circular() { super(); } /** * Returns the clazz. * @return Class */ public Class getClazz() { return clazz; } /** * Returns the id. * @return String */ public String getId() { return id; } /** * Sets the clazz. * @param clazz The clazz to set */ public void setClazz(Class clazz) { this.clazz = clazz; } /** * Sets the id. * @param id The id to set */ public void setId(String id) { this.id = id; } /** * Returns the other. * @return Circular */ public Circular getOther() { return other; } /** * Sets the other. * @param other The other to set */ public void setOther(Circular other) { this.other = other; } /** * Returns the anyEntity. * @return Object */ public Object getAnyEntity() { return anyEntity; } /** * Sets the anyEntity. * @param anyEntity The anyEntity to set */ public void setAnyEntity(Object anyEntity) { this.anyEntity = anyEntity
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/C2.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Circular.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class C2 extends B {
1
public class Circular {
2
	
2
	private String address;
3
	private String id;
3
	private C1 c1;
4
	private Class clazz;
4
	private String c2Name;
5
	private 
5
	private Collection c1s = new ArrayList();
6
Circular other;
7
	private Object anyEntity;
8
	
9
	/**
10
	 * Constructor for Circular.
11
	 */
12
	public Circular() {
13
		super();
14
	}
15
	
16
	/**
17
	 * Returns the clazz.
18
	 * @return Class
19
	 */
20
	public Class getClazz() {
21
		return clazz;
22
	}
23
	
6
	/**
24
	/**
7
	 * Returns the address.
25
	 * Returns the id.
8
	 * @return String
26
	 * @return String
9
	 */
27
	 */
10
	public String getAddress() {
28
	public String getId() {
11
		return address;
29
		return id;
12
	}
30
	}
13
	
31
	
14
	/**
32
	/**
15
	 * Sets the address.
33
	 * Sets the clazz.
16
	 * @param address The address to set
34
	 * @param clazz The clazz to set
17
	 */
35
	 */
18
	public void setAddress(String address) {
36
	public void setClazz(Class clazz) {
19
		this.address = address;
37
		this.
20
	}
21
	
22
	/**
23
	 * @return Returns the c.
24
	 */
25
	public C1 getC1() {
26
		return c1;
27
	}
28
	/**
38
clazz = clazz;
39
	}
40
	
41
	/**
42
	 * Sets the id.
29
	 * @param c The c to set.
43
	 * @param id The id to set
30
	 */
44
	 */
31
	public void setC1(C1 c) {
45
	public void setId(String id) {
32
		this.c1 = c;
46
		this.id = id;
33
	}
47
	}
48
	
34
	/**
49
	/**
35
	 * @return Returns the cs.
50
	 * Returns the 
36
	 */
37
	public Collection getC1s
51
other.
52
	 * @return Circular
53
	 */
38
() {
54
	public Circular getOther() {
39
		return c1s;
55
		return other;
40
	}
56
	}
57
	
41
	/**
58
	/**
42
	 * @param cs The cs
59
	 * Sets the other.
43
 to set.
60
	 * @param other The other to set
44
	 */
61
	 */
45
	public void setC1s(Collection cs) {
62
	public void set
46
		this.c1s = cs;
47
	}
48
	public String getC2Name() {
49
		return c2Name;
50
	}
51
	public void setC2Name(String name) {
52
		c2Name = name
63
Other(Circular other) {
64
		this.other = other;
65
	}
66
	
67
	/**
68
	 * Returns the anyEntity.
69
	 * @return Object
70
	 */
71
	public Object getAnyEntity() {
72
		return anyEntity;
73
	}
74
	
75
	/**
76
	 * Sets the anyEntity.
77
	 * @param anyEntity The anyEntity to set
78
	 */
79
	public void setAnyEntity(Object anyEntity) {
80
		this.anyEntity = anyEntity
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0