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 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/C2.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 C2 extends B {
1
public class Person {
2
	private String address;
2
	private String name;
3
	private C1 c1;
3
	private Date dob;
4
	private String c2Name;
4
	private 
5
	private Collection c1s = new ArrayList();
6
	/**
7
	 * Returns the address.
8
	 * @return String
9
	 */
10
	public String getAddress() {
11
		return address;
12
	}
13
	
14
	/**
15
	 * Sets the address.
16
	 * @param address The address to set
17
	 */
18
	public void setAddress(String address) {
19
		this.address = address;
20
	}
21
	
22
	/**
23
	 * @return Returns the c.
24
	 */
25
	public C1 getC1() {
26
		return c1;
27
	}
28
	/**
29
	 * @param c The c to set.
30
	 */
31
	public void setC1(C1 c) {
32
		this.c1 = c;
33
	}
34
	/**
35
	 * @return Returns the cs.
36
	 */
37
	public Collection getC1s() {
38
		return c1s;
39
	}
40
	/**
41
	 * @param cs The cs to set.
42
	 */
43
	public void setC1s(Collection cs) {
44
		this.c1s = cs
5
Employee employee;
6
	private Customer customer;
7
	public Customer getCustomer() {
8
		return customer;
9
	}
10
	public void setCustomer(Customer customer) {
11
		this.customer = customer;
12
	}
13
	public Employee getEmployee() {
14
		return employee;
15
	}
16
	public void setEmployee(Employee employee) {
17
		this.employee = employee;
18
	}
19
	public String getName() {
20
		return name;
21
	}
22
	public void setName(String name) {
45
;
23
		this.name = name;
46
	}
24
	}
47
	public String getC2Name() {
25
	public Date getDob() {
48
		return c2Name;
26
		return dob;
49
	}
27
	}
50
	public void setC2Name(String name) {
28
	public void set
51
		c2Name = name
29
Dob(Date dob) {
52
;
30
		this.dob = dob;
53
	
31
	
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