public class Valuation { private Long id; private Stock stock; private Date valuationDate; private Double value; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Stock getStock() { return stock; } public void setStock(Stock stock) { this.stock = stock; } public Date getValuationDate() { return valuationDate; } public void setValuationDate(Date valuationDate) { this.valuationDate = valuationDate; } public Double getValue() { return value; } public void setValue(Double value) { this.value = value
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/entitymode/multi/Valuation.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/typedmanytoone/Customer.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Valuation {
1
public class Customer implements Serializable {
2
	private Long id;
2
	private String name;
3
	private Stock stock;
3
	private St
4
	private Date valuationDate;
5
	private Double value;
6
	public Long getId() {
7
		return id
4
ring customerId;
5
	private Address billingAddress;
6
	private Address shippingAddress;
7
	public Address getBillingAddress() {
8
;
8
		return billingAddress;
9
	}
9
	}
10
	public void setId(Long id) {
10
	public void set
11
		this.id = id
11
BillingAddress(Address billingAddress) {
12
;
12
		this.billingAddress = billingAddress;
13
	}
13
	}
14
	public Stock getStock() {
14
	public String getCustomerId() {
15
		return stock;
15
		return customerId;
16
	}
16
	}
17
	public void setStock(Stock stock) {
17
	public void setCustomerId(String customerId) {
18
		this.stock = stock;
18
		this.customerId = customerId;
19
	}
19
	}
20
	public Date getValuationDate() {
20
	public String getName() {
21
		return valuationDate;
21
		return name;
22
	}
22
	}
23
	public void setValuationDate(Date valuationDate) {
23
	public void set
24
		this.valuationDate = valuationDat
24
Name(String name) {
25
e;
25
		this.name = name;
26
	}
26
	}
27
	public Double getValue() {
27
	public 
28
		return value
28
Address getShippingAddress() {
29
;
29
		return shippingAddress;
30
	}
30
	}
31
	public void setValue(Double value) {
31
	public void set
32
		this.value = value
32
ShippingAddress(Address shippingAddress) {
33
		this.shippingAddress = shippingAddress
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