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;
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/typedmanytoone/Customer.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 Customer implements Serializable {
1
public class Customer implements Serializable {
2
	private String name;
2
	private String name;
3
	private String customerId;
3
	private String customerId;
4
	private Address billingAddress;
4
	private Address billingAddress;
5
	private Address shippingAddress;
5
	private Address shippingAddress;
6
	public Address getBillingAddress() {
6
	public Address getBillingAddress() {
7
		return billingAddress;
7
		return billingAddress;
8
	}
8
	}
9
	public void setBillingAddress(Address billingAddress) {
9
	public void setBillingAddress(Address billingAddress) {
10
		this.billingAddress = billingAddress;
10
		this.billingAddress = billingAddress;
11
	}
11
	}
12
	public String getCustomerId() {
12
	public String getCustomerId() {
13
		return customerId;
13
		return customerId;
14
	}
14
	}
15
	public void setCustomerId(String customerId) {
15
	public void setCustomerId(String customerId) {
16
		this.customerId = customerId;
16
		this.customerId = customerId;
17
	}
17
	}
18
	public String getName() {
18
	public String getName() {
19
		return name;
19
		return name;
20
	}
20
	}
21
	public void setName(String name) {
21
	public void setName(String name) {
22
		this.name = name;
22
		this.name = name;
23
	}
23
	}
24
	public Address getShippingAddress() {
24
	public Address getShippingAddress() {
25
		return shippingAddress;
25
		return shippingAddress;
26
	}
26
	}
27
	public void setShippingAddress(Address shippingAddress) {
27
	public void setShippingAddress(Address shippingAddress) {
28
		this.shippingAddress = shippingAddress;
28
		this.shippingAddress = shippingAddress;
29
	
29
	
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