public class MonetoryAmount implements Serializable { private BigDecimal amount; private Currency currency; public MonetoryAmount(BigDecimal amount, Currency currency) { this.amount = amount; this.currency = currency; } public BigDecimal getAmount() { return amount; } public void setAmount(BigDecimal amount) { this.amount = amount; } public Currency getCurrency() { return currency; } public void setCurrency(Currency currency) { this.currency = currency
public class Item { private String code; private Product product; Item() {} public Item(String code, Product p) { this.code = code; this.product = p; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public Product getProduct() { return product; } public void setProduct(Product product) { this.product = product
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/cut/MonetoryAmount.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/mapcompelem/Item.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class MonetoryAmount implements Serializable {
1
public class 
2
	private BigDecimal amount;
3
	private Currency currency;
4
	
5
	public MonetoryAmount(BigDecimal amount, Currency currency
2
Item {
3
	private String code;
4
	private Product product;
5
	
6
	
7
	Item() {}
6
) {
8
	public Item(String code, Product p) {
7
		this.amount = amount;
9
		this.
8
		this.currency = currency
10
code = code;
9
;
11
		this.product = p;
10
	}
12
	}
11
	
12
	public BigDecimal getAmount() {
13
	public String getCode() {
13
		return amount;
14
		return code;
14
	}
15
	}
15
	
16
	
16
	public void setAmount(BigDecimal amount) {
17
	public void setCode(String code) {
17
		this.amount = amount;
18
		this.code = code;
18
	}
19
	}
20
	
19
	public Currency getCurrency() {
21
	public Product getProduct() {
20
		return currency;
22
		return product;
21
	}
23
	}
24
	
22
	public void setCurrency(Currency currency) {
25
	public void setProduct(Product product) {
23
		this.currency = currency
26
		this.product = product
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