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;
public class Person { private String name; private Date dob; private Employee employee; private Customer customer; public Customer getCustomer() { return customer; } public void setCustomer(Customer customer) { this.customer = customer; } public Employee getEmployee() { return employee; } public void setEmployee(Employee employee) { this.employee = employee; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Date getDob() { return dob; } public void setDob(Date dob) { this.dob = dob;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Circular.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/onetoone/link/Person.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Circular {
1
public class 
2
	
2
Person {
3
	private String id;
3
	private String name;
4
	private Class clazz;
4
	private 
5
	private Circular other;
6
	private Object anyEntity;
7
	
8
	/**
9
	 * Constructor for Circular.
10
	 */
11
	public Circular() {
12
		super();
13
	}
14
	
15
	/**
16
	 * Returns the clazz.
17
	 * @return Class
18
	 */
19
	public Class getClazz() {
20
		return clazz;
21
	}
22
	
23
	/**
24
	 * Returns the id.
25
	 * @return String
26
	 */
27
	public String getId() {
28
		return id;
29
	}
30
	
31
	/**
32
	 * Sets the clazz.
33
	 * @param clazz The clazz to set
34
	 */
35
	public void setClazz(Class clazz) {
36
		this.clazz = clazz;
37
	}
38
	
39
	/**
40
	 * Sets the id.
41
	 * @param id The id to set
42
	 */
43
	public void setId(String id) {
44
		this.id = id;
45
	}
46
	
47
	/**
48
	 * Returns the other.
49
	 * @return Circular
50
	 */
51
	public Circular getOther
5
Date dob;
6
	private Employee employee;
7
	private Customer customer;
8
	public Customer getCustomer() {
9
		return customer;
10
	}
11
	public void setCustomer(Customer customer) {
12
		this.customer = customer;
13
	}
14
	public Employee getEmployee() {
15
		return employee;
16
	}
17
	public void setEmployee(Employee employee) {
18
		this.employee = employee;
19
	}
52
() {
20
	public String getName() {
53
		return other;
21
		return name;
54
	}
22
	}
55
	
23
	
56
	/**
57
	 * Sets the other.
58
	 * @param other The other to set
59
	 */
60
	public void setOther(Circular other) {
61
		this.other = other;
62
	}
63
	
64
	/**
65
	 * Returns the anyEntity.
66
	 * @return Object
67
	 */
68
	public Object getAnyEntity() {
69
		return anyEntity;
70
	}
71
	
72
	/**
73
	 * Sets the anyEntity.
74
	 * @param anyEntity The anyEntity to set
75
	 */
76
	public void setAnyEntity(Object anyEntity) {
77
		this.anyEntity = anyEntity
24
public void setName(String name) {
25
		this.name = name;
26
	}
27
	public Date getDob() {
28
		return dob;
29
	}
30
	public void setDob(Date dob) {
78
;
31
		this.dob = dob;
79
	
32
	
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