public class Stock { private Long id; private String tradeSymbol; private Valuation currentValuation; private Set valuations = new HashSet(); public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTradeSymbol() { return tradeSymbol; } public void setTradeSymbol(String tradeSymbol) { this.tradeSymbol = tradeSymbol; } public Valuation getCurrentValuation() { return currentValuation; } public void setCurrentValuation(Valuation currentValuation) { this.currentValuation = currentValuation; } public Set getValuations() { return valuations; } public void setValuations(Set valuations) { this.valuations = valuations;
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/Stock.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 Stock {
1
public class Customer implements Serializable {
2
	private Long id;
2
	private String name;
3
	private String tradeSymbol;
3
	private String 
4
	private Valuation currentValuation;
5
	private Set valuations = new HashSet();
6
	public Long getId() {
7
		return id
4
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 String getTradeSymbol() {
14
	public String getCustomerId() {
15
		return tradeSymbol;
15
		return customerId;
16
	}
16
	}
17
	public void setTradeSymbol(String tradeSymbol) {
17
	public void set
18
		this.tradeSymbol = tradeSymbol
18
CustomerId(String customerId) {
19
;
19
		this.customerId = customerId;
20
	}
20
	}
21
	public Valuation getCurrentValuation() {
21
	public 
22
		return currentValuation
22
String getName() {
23
;
23
		return name;
24
	}
24
	}
25
	public void setCurrentValuation(Valuation currentValuation) {
25
	public void set
26
		this.currentValuation = currentValuation
26
Name(String name) {
27
;
27
		this.name = name;
28
	}
28
	}
29
	public Set getValuations() {
29
	public Address getShippingAddress() {
30
		return valuations;
30
		return shippingAddress;
31
	}
31
	}
32
	public void setValuations(Set valuations) {
32
	public void set
33
		this.valuations = valuation
33
ShippingAddress(Address shippingAddress) {
34
s;
34
		this.shippingAddress = shippingAddress;
35
	
35
	
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