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 Customer implements Serializable { private String name; private String customerId; private Address billingAddress; private Address shippingAddress; public Address getBillingAddress() { return billingAddress; } public void setBillingAddress(Address billingAddress) { this.billingAddress = billingAddress; } public String getCustomerId() { return customerId; } public void setCustomerId(String customerId) { this.customerId = customerId; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Address getShippingAddress() { return shippingAddress; } public void setShippingAddress(Address shippingAddress) { this.shippingAddress = shippingAddress;
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/typedonetoone/Customer.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class C2 extends B {
1
public class Customer implements Serializable {
2
	private String address;
2
	private String 
3
	private C1 c1;
3
name;
4
	private String c2Name;
4
	private String customerId;
5
	private Collection c1s = new ArrayList();
5
	private 
6
	/**
7
	 * Returns th
6
Address billingAddress;
8
e address.
7
	private Address
9
	 * @return String
10
	 */
11
	public String get
8
 shippingAddress;
12
Address() {
9
	public Address getBillingAddress() {
13
		return address;
10
		return billingAddress;
14
	}
11
	}
15
	
12
	
16
	/**
17
	 * Sets the address.
18
	 * @param address The address to set
19
	 */
20
	public void setAddress(String address) {
13
public void setBillingAddress(Address billingAddress) {
21
		this.address = address;
14
		this.billingAddress = billingAddress;
22
	}
15
	}
23
	
16
	
24
	/**
25
	 * @return Returns the c.
26
	 */
27
	public C1 getC1() {
28
		return c1;
29
	}
30
	/**
31
	 * @param c The c to set.
32
	 */
33
	public void setC1(C1 c) {
34
		this.c1 = c;
35
	}
36
	/**
37
	 * @return Returns the cs.
38
	 */
39
	public Collection getC1s() {
40
		return c1s;
41
	}
42
	/**
43
	 * @param cs The cs to set.
44
	 */
45
	public void setC1s(Collection cs) {
46
		this.c1s = cs
17
public String getCustomerId() {
18
		return customerId;
19
	}
20
	public void setCustomerId(String customerId) {
21
		this.customerId = customerId;
22
	}
23
	public String getName() {
24
		return name;
25
	}
26
	public void setName(String name) {
47
;
27
		this.name = name;
48
	}
28
	}
49
	public String getC2Name() {
29
	public 
50
		return c2Name
30
Address getShippingAddress() {
51
;
31
		return shippingAddress;
52
	}
32
	}
53
	public void setC2Name(String name) {
33
	public void set
54
		c2Name = name
34
ShippingAddress(Address shippingAddress) {
55
;
35
		this.shippingAddress = shippingAddress;
56
	
36
	
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